affichage de User#display_name

This commit is contained in:
Jérémy Lecour 2022-01-22 12:43:19 +01:00 committed by Jérémy Lecour
parent 5337aec5cc
commit 605e8944ff
2 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,11 @@
<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
</div>
<div class="field">
<%= f.label :display_name %><br />
<%= f.text_field :display_name %>
</div>
<div class="field">
<%= f.label :password %>
<% if @minimum_password_length %>

View File

@ -18,6 +18,9 @@
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Email
</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Display name
</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Created at
</th>
@ -35,6 +38,9 @@
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
<%= user.email %>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
<%= user.display_name %>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<%= user.created_at %>
</td>