プロジェクト

全般

プロフィール

Vote #77716

未完了

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

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
0
issue_org_id:
23555
author_id:
154757
assigned_to_id:
107353
comments:
10
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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:

!new_wiki.png!

The button should be available for any item, i.e.

  • issues
  • categories
  • versions
  • files
  • documents
  • wiki pages
  • news

journals

Related to #18051

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
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.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,8888,Add a link / button to get back to the Issue/Time tracking screen from the "Log time" screen

Admin Redmine さんが約2年前に更新

  • カテゴリUI_10 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0