diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-05-24 17:31:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-05-24 17:31:53 +0000 |
commit | c77370a9ebd58dedac42ae0a7b8a045650f80ebc (patch) | |
tree | 2d0c26c8a967c6db161ef6e1857f5ceb97f5c807 /app/views/issue_categories | |
parent | 6206c88dfabf4b320ab35026c2833dbb4e9a593c (diff) | |
download | redmine-c77370a9ebd58dedac42ae0a7b8a045650f80ebc.tar.gz redmine-c77370a9ebd58dedac42ae0a7b8a045650f80ebc.zip |
Use a modal form to create a category from the issue form.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9707 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issue_categories')
-rw-r--r-- | app/views/issue_categories/_new_modal.html.erb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/issue_categories/_new_modal.html.erb b/app/views/issue_categories/_new_modal.html.erb new file mode 100644 index 000000000..402391192 --- /dev/null +++ b/app/views/issue_categories/_new_modal.html.erb @@ -0,0 +1,9 @@ +<h3 class="title"><%=l(:label_issue_category_new)%></h3> + +<%= labelled_remote_form_for @category, :as => 'issue_category', :url => project_issue_categories_path(@project) do |f| %> +<%= render :partial => 'issue_categories/form', :locals => { :f => f } %> + <p class="buttons"> + <%= submit_tag l(:button_create), :name => nil %> + <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %> + </p> +<% end %> |