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" %> <%= f.email_field :email, autofocus: true, autocomplete: "email" %>
</div> </div>
<div class="field">
<%= f.label :display_name %><br />
<%= f.text_field :display_name %>
</div>
<div class="field"> <div class="field">
<%= f.label :password %> <%= f.label :password %>
<% if @minimum_password_length %> <% 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"> <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Email Email
</th> </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"> <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Created at Created at
</th> </th>
@ -35,6 +38,9 @@
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
<%= user.email %> <%= user.email %>
</td> </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"> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<%= user.created_at %> <%= user.created_at %>
</td> </td>