Project

General

Profile

Actions

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.

Status:
New
Priority:
Normal
Category:
UI
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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


Files

new_wiki.PNG (11 KB) new_wiki.PNG Anonymous, 2016-08-10 09:02
rm_23555_add_cancel_button.patch (17.5 KB) rm_23555_add_cancel_button.patch Marius BĂLTEANU, 2017-03-08 07:09

Related issues

Related to Redmine - Feature #8888: Add a link / button to get back to the Issue/Time tracking screen from the "Log time" screenClosedJean-Philippe Lang2011-07-23

Actions
Actions #1

Updated by Anonymous over 8 years ago

Related to #18051

Actions #2

Updated by Toshi MARUYAMA over 8 years ago

  • Description updated (diff)
Actions #3

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.

Actions #4

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.

Actions #5

Updated by Marius BĂLTEANU almost 8 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.

Actions #6

Updated by Jean-Philippe Lang over 7 years 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
Actions #7

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.

Actions #8

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
Actions #9

Updated by Marius BĂLTEANU over 6 years 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.

Actions #10

Updated by Marius BĂLTEANU about 6 years ago

  • Assignee set to Marius BĂLTEANU
Actions

Also available in: Atom PDF