]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/redactions/new.html.erb
Added redactions resource
[rails.git] / app / views / redactions / new.html.erb
diff --git a/app/views/redactions/new.html.erb b/app/views/redactions/new.html.erb
new file mode 100644 (file)
index 0000000..c714acd
--- /dev/null
@@ -0,0 +1,20 @@
+<% @title = t 'redaction.new.title' %>
+<h1><%= t 'redaction.new.heading' %></h1>
+
+<%= form_for(@redaction) do |f| %>
+  <%= f.error_messages %>
+
+  <p>
+    <%= f.label :title, t('redaction.new.title') %><br />
+    <%= f.text_field :title %>
+  </p>
+  <p>
+    <%= f.label :description, t('redaction.new.description') %><br />
+    <%= richtext_area :redaction, :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
+  </p>
+  <p>
+    <%= f.submit t('redaction.new.submit') %>
+  </p>
+<% end %>
+
+