adjust templates, add timezone and locale

This commit is contained in:
Alex Turchyn
2023-06-30 01:26:13 +03:00
parent d0c7d449d5
commit c904d51302
47 changed files with 331 additions and 171 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
<%= f.password_field :password, required: user.new_record?, class: 'base-input' %>
</div>
</div>
<div class="form-control">
<div class="form-control pt-2">
<%= f.button button_title, class: 'base-button' %>
</div>
<% end %>
+2 -2
View File
@@ -43,7 +43,7 @@
</span>
</td>
<td>
<%= user.last_sign_in_at ? l(user.last_sign_in_at, format: :short) : '-' %>
<%= user.last_sign_in_at ? l(user.last_sign_in_at.in_time_zone(current_account.timezone), format: :short, locale: current_account.locale) : '-' %>
</td>
<td class="flex items-center space-x-2 justify-end">
<%= link_to edit_user_path(user), class: 'btn btn-outline btn-xs', title: 'Edit', data: { turbo_frame: 'modal' } do %>
@@ -58,6 +58,6 @@
</tbody>
</table>
</div>
<%= render 'shared/pagination', pagy: @pagy, items_name: 'Users' %>
<%= render 'shared/pagination', pagy: @pagy, items_name: 'users' %>
</div>
</div>