Feature #4285 » cancel_button_for_issue.diff
| app/controllers/issues_controller.rb (working copy) | ||
|---|---|---|
|
end
|
||
|
def create
|
||
|
if params[:cancel]
|
||
|
respond_to do |format|
|
||
|
format.html {
|
||
|
redirect_to( { :action => 'index', :project_id => @project })
|
||
|
}
|
||
|
format.api { render :action => 'index', :project_id => @project }
|
||
|
end
|
||
|
return
|
||
|
end
|
||
|
call_hook(:controller_issues_new_before_save, { :params => params, :issue => @issue })
|
||
|
if @issue.save
|
||
|
attachments = Attachment.attach_files(@issue, params[:attachments])
|
||
| app/views/issues/new.rhtml (working copy) | ||
|---|---|---|
|
</div>
|
||
|
<%= submit_tag l(:button_create) %>
|
||
|
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
|
||
|
<%= link_to_remote l(:label_preview),
|
||
|
<%= submit_tag l(:button_cancel), :name => 'cancel' %>
|
||
|
<%= link_to_remote l(:label_preview),
|
||
|
{ :url => preview_issue_path(:project_id => @project),
|
||
|
:method => 'post',
|
||
|
:update => 'preview',
|
||
| config/locales/en.yml (working copy) | ||
|---|---|---|
|
button_expand_all: Expand all
|
||
|
button_delete: Delete
|
||
|
button_create: Create
|
||
|
button_cancel: Cancel
|
||
|
button_create_and_continue: Create and continue
|
||
|
button_test: Test
|
||
|
button_edit: Edit
|
||