diff --git a/app/components/create_log_actions_component.html.erb b/app/components/create_log_actions_component.html.erb index 39ab17214..53e2bb57b 100644 --- a/app/components/create_log_actions_component.html.erb +++ b/app/components/create_log_actions_component.html.erb @@ -1,4 +1,4 @@ -
"> +
"> <% if display_actions? %> <%= govuk_button_to create_button_copy, create_button_href, class: "govuk-!-margin-right-3" %> <% unless user.support? %> diff --git a/app/views/organisations/schemes.html.erb b/app/views/organisations/schemes.html.erb index fb0674d49..a6f225bd8 100644 --- a/app/views/organisations/schemes.html.erb +++ b/app/views/organisations/schemes.html.erb @@ -23,7 +23,7 @@
<% display_actions = SchemePolicy.new(current_user, nil).create? %> -
"> +
"> <% if display_actions %> <%= govuk_button_link_to "Create a new supported housing scheme", new_scheme_path, html: { method: :post } %> <% end %> diff --git a/app/views/organisations/users.html.erb b/app/views/organisations/users.html.erb index da5a5db1e..109d8c24a 100644 --- a/app/views/organisations/users.html.erb +++ b/app/views/organisations/users.html.erb @@ -14,7 +14,7 @@
<% display_actions = current_user.data_coordinator? || current_user.support? %> -
"> +
"> <% if display_actions %> <%= govuk_button_link_to "Invite user", new_user_path(organisation_id: @organisation.id), html: { method: :get } %> <% end %> diff --git a/app/views/schemes/index.html.erb b/app/views/schemes/index.html.erb index f246ec072..1ca69691e 100644 --- a/app/views/schemes/index.html.erb +++ b/app/views/schemes/index.html.erb @@ -7,7 +7,7 @@
<% display_actions = SchemePolicy.new(current_user, nil).create? %> -
"> +
"> <% if display_actions %> <%= govuk_button_link_to "Create a new supported housing scheme", new_scheme_path, html: { method: :post } %> <% end %> diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 40d639a3b..47d714dbc 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -7,7 +7,7 @@
<% display_actions = current_user.data_coordinator? || current_user.support? %> -
"> +
"> <% if display_actions %> <%= govuk_button_link_to "Invite user", new_user_path, html: { method: :get } %> <% end %>