diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-20 15:55:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-20 15:55:19 +0000 |
commit | 6f4fb8b8920cc8bd414e98671b6025a4378d6c25 (patch) | |
tree | 4548c25ff2e01c12ee41fdbf39b365e49ec71217 /app/views/issue_categories | |
parent | 30556f8cbfac04d5d6c6e3a9331874b7e83954d6 (diff) | |
download | redmine-6f4fb8b8920cc8bd414e98671b6025a4378d6c25.tar.gz redmine-6f4fb8b8920cc8bd414e98671b6025a4378d6c25.zip |
Resourcified issue categories (#9553).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7881 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issue_categories')
-rw-r--r-- | app/views/issue_categories/destroy.html.erb | 2 | ||||
-rw-r--r-- | app/views/issue_categories/edit.html.erb | 2 | ||||
-rw-r--r-- | app/views/issue_categories/new.html.erb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/issue_categories/destroy.html.erb b/app/views/issue_categories/destroy.html.erb index fb169c868..882a75e4a 100644 --- a/app/views/issue_categories/destroy.html.erb +++ b/app/views/issue_categories/destroy.html.erb @@ -1,6 +1,6 @@ <h2><%=l(:label_issue_category)%>: <%=h @category.name %></h2> -<% form_tag({}) do %> +<% form_tag(issue_category_path(@category), :method => :delete) do %> <div class="box"> <p><strong><%= l(:text_issue_category_destroy_question, @issue_count) %></strong></p> <p><label><%= radio_button_tag 'todo', 'nullify', true %> <%= l(:text_issue_category_destroy_assignments) %></label><br /> diff --git a/app/views/issue_categories/edit.html.erb b/app/views/issue_categories/edit.html.erb index bc627797b..1e1a8fe7d 100644 --- a/app/views/issue_categories/edit.html.erb +++ b/app/views/issue_categories/edit.html.erb @@ -1,6 +1,6 @@ <h2><%=l(:label_issue_category)%></h2> -<% labelled_tabular_form_for :category, @category, :url => { :action => 'edit', :id => @category } do |f| %> +<% labelled_tabular_form_for :category, @category, :url => issue_category_path(@category), :html => {:method => :put} do |f| %> <%= render :partial => 'issue_categories/form', :locals => { :f => f } %> <%= submit_tag l(:button_save) %> <% end %> diff --git a/app/views/issue_categories/new.html.erb b/app/views/issue_categories/new.html.erb index ac7936a41..ccd88c5cd 100644 --- a/app/views/issue_categories/new.html.erb +++ b/app/views/issue_categories/new.html.erb @@ -1,6 +1,6 @@ <h2><%=l(:label_issue_category_new)%></h2> -<% labelled_tabular_form_for :category, @category, :url => { :action => 'new' } do |f| %> +<% labelled_tabular_form_for :category, @category, :url => project_issue_categories_path(@project) do |f| %> <%= render :partial => 'issue_categories/form', :locals => { :f => f } %> <%= submit_tag l(:button_create) %> <% end %> |