]> git.openstreetmap.org Git - rails.git/blob - app/views/redactions/edit.html.erb
No need for explicit h() escaping in new code
[rails.git] / app / views / redactions / edit.html.erb
1 <% @title = t 'redaction.edit.title' %>
2 <h1><%= t 'redaction.edit.heading' %></h1>
3
4 <%= form_for(@redaction) do |f| %>
5   <%= f.error_messages %>
6
7   <p>
8     <%= f.label :title, t('redaction.edit.title') %><br />
9     <%= f.text_field :title %>
10   </p>
11   <p>
12     <%= f.label :description, t('redaction.edit.description') %><br />
13     <%= richtext_area :redaction, :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
14   </p>
15   <p>
16     <%= f.submit t('redaction.edit.submit') %>
17   </p>
18 <% end %>
19