Skip to content

Commit

Permalink
Fix after review
Browse files Browse the repository at this point in the history
  • Loading branch information
saenom committed Apr 18, 2024
1 parent f6f77f3 commit e62da86
Show file tree
Hide file tree
Showing 3 changed files with 287 additions and 243 deletions.
25 changes: 12 additions & 13 deletions app/views/admin/lieutenants/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,19 @@
.govuk-grid-row
= render "shared/users/search_count"
.govuk-button-group
- if controller_name == "lieutenants"
- if action_name == "deleted"
= link_to "Show active users",
admin_lieutenants_path,
class: "new-user govuk-button pull-right",
role: "button",
aria: { label: "Show active users" }
- if action_name == "deleted"
= link_to "Show active users",
admin_lieutenants_path,
class: "new-user govuk-button pull-right",
role: "button",
aria: { label: "Show active users" }

- else
= link_to "Show deleted users",
deleted_admin_lieutenants_path,
class: "new-user govuk-button pull-right",
role: "button",
aria: { label: "Show deleted users" }
- else
= link_to "Show deleted users",
deleted_admin_lieutenants_path,
class: "new-user govuk-button pull-right",
role: "button",
aria: { label: "Show deleted users" }

= link_to public_send("new_admin_#{controller_name.singularize}_path", search: params[:search], page: params[:page]), class: 'new-user govuk-button pull-right', role: 'button' do
= t("admin.users.new_button.#{controller_name}")
Expand Down
4 changes: 2 additions & 2 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
unless Admin.exists?
admin_args = {
email: "[email protected]",
password: SecureRandom.alphanumeric(12),
password: SecureRandom.alphanumeric(14),
first_name: "First name",
last_name: "Last name",
confirmed_at: DateTime.now
Expand All @@ -17,7 +17,7 @@
assessor_args = {
email: "[email protected]",
sub_group: "sub_group_1",
password: SecureRandom.alphanumeric(12),
password: SecureRandom.alphanumeric(14),
first_name: "First name",
last_name: "Last name",
confirmed_at: DateTime.now
Expand Down
Loading

0 comments on commit e62da86

Please sign in to comment.