]> source.dussan.org Git - redmine.git/commitdiff
rename .rhtml to .html.erb of app/views/enumerations/_form.rhtml.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 24 Aug 2011 07:18:41 +0000 (07:18 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 24 Aug 2011 07:18:41 +0000 (07:18 +0000)
: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@6590 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/enumerations/_form.html.erb [new file with mode: 0644]
app/views/enumerations/_form.rhtml [deleted file]

diff --git a/app/views/enumerations/_form.html.erb b/app/views/enumerations/_form.html.erb
new file mode 100644 (file)
index 0000000..21b9481
--- /dev/null
@@ -0,0 +1,19 @@
+<%= error_messages_for 'enumeration' %>
+<div class="box">
+<!--[form:optvalue]-->
+<%= hidden_field 'enumeration', 'type'  %>
+
+<p><label for="enumeration_name"><%=l(:field_name)%></label>
+<%= text_field 'enumeration', 'name'  %></p>
+
+<p><label for="enumeration_active"><%=l(:field_active)%></label>
+<%= check_box 'enumeration', 'active'  %></p>
+
+<p><label for="enumeration_is_default"><%=l(:field_is_default)%></label>
+<%= check_box 'enumeration', 'is_default'  %></p>
+<!--[eoform:optvalue]-->
+
+<% @enumeration.custom_field_values.each do |value| %>
+       <p><%= custom_field_tag_with_label :enumeration, value %></p>
+<% end %>
+</div>
diff --git a/app/views/enumerations/_form.rhtml b/app/views/enumerations/_form.rhtml
deleted file mode 100644 (file)
index 21b9481..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<%= error_messages_for 'enumeration' %>
-<div class="box">
-<!--[form:optvalue]-->
-<%= hidden_field 'enumeration', 'type'  %>
-
-<p><label for="enumeration_name"><%=l(:field_name)%></label>
-<%= text_field 'enumeration', 'name'  %></p>
-
-<p><label for="enumeration_active"><%=l(:field_active)%></label>
-<%= check_box 'enumeration', 'active'  %></p>
-
-<p><label for="enumeration_is_default"><%=l(:field_is_default)%></label>
-<%= check_box 'enumeration', 'is_default'  %></p>
-<!--[eoform:optvalue]-->
-
-<% @enumeration.custom_field_values.each do |value| %>
-       <p><%= custom_field_tag_with_label :enumeration, value %></p>
-<% end %>
-</div>