summaryrefslogtreecommitdiffstats
path: root/app/views/custom_fields/new.html.erb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-09-01 03:54:08 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-09-01 03:54:08 +0000
commit312f3e9dd11c84bd56e53f2bcc9d010c8420da19 (patch)
treef3589f89fa8d24a55c44f54a58d26fd93d5214e3 /app/views/custom_fields/new.html.erb
parentb19e5c5c0100908d5f82c19b1fff1b13555960fb (diff)
downloadredmine-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.erb9
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' %>
+ &#187; <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %>
+ &#187; <%= 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 %>