diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-09-01 03:54:08 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-09-01 03:54:08 +0000 |
commit | 312f3e9dd11c84bd56e53f2bcc9d010c8420da19 (patch) | |
tree | f3589f89fa8d24a55c44f54a58d26fd93d5214e3 /app/views/custom_fields/new.html.erb | |
parent | b19e5c5c0100908d5f82c19b1fff1b13555960fb (diff) | |
download | redmine-312f3e9dd11c84bd56e53f2bcc9d010c8420da19.tar.gz redmine-312f3e9dd11c84bd56e53f2bcc9d010c8420da19.zip |
rename .rhtml to .html.erb of app/views/custom_fields/new.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6963 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/custom_fields/new.html.erb')
-rw-r--r-- | app/views/custom_fields/new.html.erb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/custom_fields/new.html.erb b/app/views/custom_fields/new.html.erb new file mode 100644 index 000000000..85f6ef53e --- /dev/null +++ b/app/views/custom_fields/new.html.erb @@ -0,0 +1,9 @@ +<h2><%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %> + » <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %> + » <%= l(:label_custom_field_new) %></h2> + +<% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "new" } do |f| %> +<%= render :partial => 'form', :locals => { :f => f } %> +<%= hidden_field_tag 'type', @custom_field.type %> +<%= submit_tag l(:button_save) %> +<% end %> |