Feature #23555
open
Add cancel button to create/edit item page (issues, files, news, etc.)
Added by Anonymous over 8 years ago.
Updated about 6 years ago.
Description
As discussed in #4285, a cancel button while creating or editing an item is very useful. It should allow the user to return to the previous page.
While this was implemented for wiki pages, it currently does not apply to the "+" function in Redmine 3.3, see Screenshot:
The button should be available for any item, i.e.
- issues
- categories
- versions
- files
- documents
- wiki pages
- news
Files
- Description updated (diff)
Do you consider that the "Cancel" button should behave exactly like the "Back" button from the browser or it should have predefined paths?
For example: Cancel button from Files should redirect to Files index even if you opened the Files new page from "+" button.
Marius BALTEANU wrote:
Do you consider that the "Cancel" button should behave exactly like the "Back" button from the browser or it should have predefined paths?
For example: Cancel button from Files should redirect to Files index even if you opened the Files new page from "+" button.
Predefined paths could be quite confusing, so I suggest it should work exactly like a browser's "back" button.
Totally agree with JW Fuchs, a cancel button will improve the UX. Even if you have the "Back" button available to return to the previous page, for me and our users is more natural to click on a cancel button when you don't want to go forward with the submit/save operation.
Attached is a patch proposal which adds the cancel button in most of the pages. JW Fuchs, can you test it and tell me your feedback?
I don't think that tests are necessary.
Marius BALTEANU wrote:
Attached is a patch proposal which adds the cancel button in most of the pages. JW Fuchs, can you test it and tell me your feedback?
Thanks for the patch Marius but linking to
url_for(:back)
does not work after a validation error:
- go to
/time_entries/new
- don't fill anything and hit Create => you get a validation error
- clicking Cancel then sends you back to
/time_entries/new
Thanks for your feedback, Jean-Philippe. Unfortunately, I didn't test this scenario. I'll look for another solution.
- Related to Feature #8888: Add a link / button to get back to the Issue/Time tracking screen from the "Log time" screen added
Jean-Philippe Lang wrote:
Thanks for the patch Marius but linking to url_for(:back)
does not work after a validation error:
- go to
/time_entries/new
- don't fill anything and hit Create => you get a validation error
- clicking Cancel then sends you back to
/time_entries/new
I think I've found a solution to this issue and I've attached a patch to #8888 to validate the implementation.
- Assignee set to Marius BĂLTEANU
Also available in: Atom
PDF