ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Cancel / Back Button (Feature #509)


Added by Gilbert Flamino at 2011-07-06 03:38 pm. Updated at 2011-08-18 01:22 pm.


Status:Ready for review Start date:2011-07-06
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:User interface
Target version:-
Remote issue URL: Affected version:

Description

It would be nice to have a 'cancel'/'back' button on at minimum the Administration views. The single Save button present on these views tends to leave the user uncertainty in some circumstances.

This snippet on the views does a decent job but is not optimal as the Settings views are rendered.

<%= submit_tag l(:button_cancel), { :name => 'reset', :id => 'reset_button', :type => "reset", :onClick => "javascript:history.back()" } %>

As an example:


cancel.png (36.3 kB) Gilbert Flamino, 2011-07-06 03:38 pm


History

Updated by Eric Davis at 2011-07-06 10:55 pm

That is a good idea. We should use a hyperlink instead of a button and use the back_url instead of relying on JavaScript.

Thank you for reporting this.

Updated by Gilbert Flamino at 2011-07-06 11:02 pm

I sort of like the button but the hyperlink is straightforward:

<% link_to l(:button_cancel), :back %>

What's nice about the hyperlink is it does differentiate nicely.

Updated by Nick Peelman at 2011-08-08 10:53 pm

I have added these, will submit a pull request shortly...

Updated by Nick Peelman at 2011-08-18 01:22 pm

Pull Request #94.

I also contemplated adding one to the New Issue view, but since its currently:

[Create] [Create and Continue] Preview

making it:

[Create] [Create and Continue] Preview Cancel

doesn't look right. Not sure if the answer is some form of separator, making Preview a button instead of a link, or something else altogether.

  • Status changed from Open to Ready for review

Also available in: Atom PDF