Feature #23555
openAdd cancel button to create/edit item page (issues, files, news, etc.)
0%
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
Related issues
Updated by Marius BĂLTEANU almost 8 years ago
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.
Updated by Anonymous almost 8 years ago
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.
Updated by Marius BĂLTEANU over 7 years ago
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.
Updated by Jean-Philippe Lang over 7 years ago
Marius BALTEANU wrote:
Thanks for the patch Marius but linking toAttached 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?
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
Updated by Marius BĂLTEANU over 7 years ago
Thanks for your feedback, Jean-Philippe. Unfortunately, I didn't test this scenario. I'll look for another solution.
Updated by Toshi MARUYAMA over 7 years ago
- Related to Feature #8888: Add a link / button to get back to the Issue/Time tracking screen from the "Log time" screen added
Updated by Marius BĂLTEANU over 6 years ago
Jean-Philippe Lang wrote:
Thanks for the patch Marius but linking tourl_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.