Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix cancel link for content blocks and pages #6979

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading