diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-11 10:26:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-11 10:26:12 +0000 |
commit | 0471de41ff4828345ca0afa393f4b8f3bf0098d2 (patch) | |
tree | ba8c101be1d1d5adda486d06f32836d5ed59e041 /app/views/enumerations/new.html.erb | |
parent | 1ad16c2238be1b1e0cc29435203b8fd8c233a85c (diff) | |
download | redmine-0471de41ff4828345ca0afa393f4b8f3bf0098d2.tar.gz redmine-0471de41ff4828345ca0afa393f4b8f3bf0098d2.zip |
Resourcified enumerations.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8189 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/enumerations/new.html.erb')
-rw-r--r-- | app/views/enumerations/new.html.erb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/enumerations/new.html.erb b/app/views/enumerations/new.html.erb index 34882834a..f0e6bd343 100644 --- a/app/views/enumerations/new.html.erb +++ b/app/views/enumerations/new.html.erb @@ -1,6 +1,7 @@ -<h2><%= link_to l(@enumeration.option_name), :controller => 'enumerations', :action => 'index' %> » <%=l(:label_enumeration_new)%></h2> +<h2><%= link_to l(@enumeration.option_name), enumerations_path %> » <%=l(:label_enumeration_new)%></h2> -<% form_tag({:action => 'create'}, :class => "tabular") do %> - <%= render :partial => 'form' %> +<% labelled_form_for :enumeration, @enumeration, :url => enumerations_path do |f| %> + <%= f.hidden_field :type %> + <%= render :partial => 'form', :locals => {:f => f} %> <%= submit_tag l(:button_create) %> <% end %> |