Feature #23555

Add cancel button to create/edit item page (issues, files, news, etc.)

Added by JW Fuchs about 2 years ago. Updated 3 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:UI
Target version:-
Resolution:

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

new_wiki.PNG (11 KB) JW Fuchs, 2016-08-10 09:02

rm_23555_add_cancel_button.patch Magnifier (17.5 KB) Marius BALTEANU, 2017-03-08 07:09


Related issues

Related to Redmine - Feature #8888: Add a link / button to get back to the Issue/Time trackin... New 2011-07-23

History

#1 Updated by JW Fuchs about 2 years ago

Related to #18051

#2 Updated by Toshi MARUYAMA about 2 years ago

  • Description updated (diff)

#3 Updated by Marius BALTEANU over 1 year 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.

#4 Updated by JW Fuchs over 1 year 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.

#5 Updated by Marius BALTEANU over 1 year 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.

#6 Updated by Jean-Philippe Lang over 1 year ago

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

#7 Updated by Marius BALTEANU over 1 year ago

Thanks for your feedback, Jean-Philippe. Unfortunately, I didn't test this scenario. I'll look for another solution.

#8 Updated by Toshi MARUYAMA over 1 year ago

  • Related to Feature #8888: Add a link / button to get back to the Issue/Time tracking screen from the "Log time" screen added

#9 Updated by Marius BALTEANU 3 months ago

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.

Also available in: Atom PDF