Skip to content

Commit

Permalink
Merge pull request #6979 from samvera/cancel_link_fixes
Browse files Browse the repository at this point in the history
fix cancel link for content blocks and pages
  • Loading branch information
dlpierce authored Dec 10, 2024
2 parents 54e28d2 + f32fa61 commit 95ca39b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/views/hyrax/content_blocks/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand All @@ -45,7 +45,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand All @@ -61,7 +61,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.content_blocks.cancel'), hyrax.edit_content_blocks_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand Down
8 changes: 4 additions & 4 deletions app/views/hyrax/pages/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand All @@ -52,7 +52,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand All @@ -68,7 +68,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand All @@ -84,7 +84,7 @@
</div>
<div class="card-footer d-flex justify-content-end">
<%= f.button :submit, class: 'btn btn-primary text-white mr-2' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-light' %>
<%= link_to t(:'hyrax.pages.cancel'), hyrax.edit_pages_path, class: 'btn btn-light' %>
</div>
<% end %>
</div>
Expand Down

0 comments on commit 95ca39b

Please sign in to comment.