]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/redactions/edit.html.erb
Merge remote-tracking branch 'upstream/pull/4735'
[rails.git] / app / views / redactions / edit.html.erb
index 2a5e69d0a51f2664049ac990622be7bf1beae38d..e9b5beaacde0f636b7a68a1d561147ef02aec6d3 100644 (file)
@@ -1,19 +1,11 @@
-<% @title = t 'redaction.edit.title' %>
-<h1><%= t 'redaction.edit.heading' %></h1>
+<% @title = t ".title" %>
 
-<%= form_for(@redaction) do |f| %>
-  <%= f.error_messages %>
-
-  <p>
-    <%= f.label :title, t('redaction.edit.title') %><br />
-    <%= f.text_field :title %>
-  </p>
-  <p>
-    <%= f.label :description, t('redaction.edit.description') %><br />
-    <%= richtext_area :redaction, :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
-  </p>
-  <p>
-    <%= f.submit t('redaction.edit.submit') %>
-  </p>
+<% content_for :heading do %>
+  <h1><%= t ".heading" %></h1>
 <% end %>
 
+<%= bootstrap_form_for(@redaction) do |f| %>
+  <%= f.text_field :title %>
+  <%= f.richtext_field :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
+  <%= f.primary %>
+<% end %>