Skip to content

Commit

Permalink
making the cancel button route the the user dashboard for the new sub…
Browse files Browse the repository at this point in the history
…mission and edit wizard (#1744)
  • Loading branch information
JaymeeH authored Apr 9, 2024
1 parent ff0f39c commit 559d58c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/works_update_additional/_form_wizard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<hr />
<div class="actions">
<%= link_to 'Cancel', @work, class: "btn btn-secondary" %>
<%= link_to 'Cancel', user_path(current_user), class: "btn btn-secondary" %>
<%= form.submit "Next", class: "btn btn-primary wizard-next-button", id: "btn-submit" %>
<%= form.button 'Save', type: 'submit', name: 'save_only', value: 'true', class: "btn btn-save wizard-next-button" %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/works_wizard/_form_wizard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<hr />
<div class="actions">
<%= link_to 'Cancel', @work, class: "btn btn-secondary" %>
<%= link_to 'Cancel', user_path(current_user), class: "btn btn-secondary" %>
<%= form.submit "Next", class: "btn btn-primary wizard-next-button", id: "btn-submit" %>
<%= form.button 'Save', type: 'submit', name: 'save_only', value: 'true', class: "btn btn-save wizard-next-button" %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/works_wizard/new_submission.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<%= render '/works/form_hidden_fields' %>
<hr />
<div class="actions">
<%= link_to "Cancel", root_path, class: "btn btn-secondary" %>
<%= link_to "Cancel", user_path(current_user), class: "btn btn-secondary" %>
<%= submit_tag "Create New", class: "btn btn-primary wizard-next-button", id: "btn-create-new" %>
</div>
<% end %>
Expand Down

0 comments on commit 559d58c

Please sign in to comment.