Skip to content

Commit

Permalink
Fixes for renaming controller
Browse files Browse the repository at this point in the history
  • Loading branch information
inulty-dfe committed Dec 19, 2024
1 parent 8dff805 commit 4a2758e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def update
@provider_partnership_form = ProviderPartnershipForm.new(current_user, @provider_partnership, params: partnership_params)

if @provider_partnership_form.save!
flash[:success] = t('publish.providers.provider_partnerships.edit.updated')
flash[:success] = t('.edit.updated')
redirect_to publish_provider_recruitment_cycle_accredited_partnerships_path(@provider.provider_code, recruitment_cycle.year)
else
render :edit
Expand All @@ -50,7 +50,7 @@ def destroy
@partnership = provider.accredited_partnerships.find_by(accredited_provider_id: partner.id)

if @partnership.destroy
flash[:success] = t('publish.providers.provider_partnerships.delete.updated')
flash[:success] = t('.delete.updated')
redirect_to publish_provider_recruitment_cycle_accredited_partnerships_path(@provider.provider_code, recruitment_cycle.year)
else
render :delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<p class="govuk-body">There are no accredited providers for <%= @provider.provider_name %>.</p>
<% else %>
<% @provider.accredited_partnerships.each do |partnership| %>
<%= render AccreditedProviderComponent.new(provider_name: partnership.accredited_provider.provider_name, remove_path: delete_publish_provider_recruitment_cycle_accredited_partnership_path(accredited_provider_code: partnership.accredited_provider.provider_code), about_accredited_provider: partnership.description, change_about_accredited_provider_path: edit_publish_provider_recruitment_cycle_provider_partnership_path(accredited_provider_code: partnership.accredited_provider.provider_code)) %>
<%= render AccreditedProviderComponent.new(provider_name: partnership.accredited_provider.provider_name, remove_path: delete_publish_provider_recruitment_cycle_accredited_partnership_path(accredited_provider_code: partnership.accredited_provider.provider_code), about_accredited_provider: partnership.description, change_about_accredited_provider_path: edit_publish_provider_recruitment_cycle_accredited_partnership_path(accredited_provider_code: partnership.accredited_provider.provider_code)) %>
<% end %>
<% end %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ en:
new:
title: *new_search
cannot_find: *cannot_find
provider_partnerships:
accredited_partnerships:
new:
title: About the accredited partnership
hint: Tell candidates about the accredited provider. You could mention their academic specialities and achievements.
Expand Down

0 comments on commit 4a2758e

Please sign in to comment.