<h1><%= t ".heading" %></h1>
<% end %>
-<%= form_for(@redaction, :html => { :class => "standard-form" }) do |f| %>
- <%= f.error_messages %>
-
- <p>
- <%= f.label :title, t(".title") %><br />
- <%= f.text_field :title %>
- </p>
- <p>
- <%= f.label :description, t(".description") %><br />
- <%= richtext_area :redaction, :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
- </p>
- <p>
- <%= f.submit %>
- </p>
+<%= 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 %>
<h1><%= t ".heading" %></h1>
<% end %>
-<%= form_for(@redaction, :html => { :class => "standard-form" }) do |f| %>
- <%= f.error_messages %>
-
- <p>
- <%= f.label :title, t(".title") %><br />
- <%= f.text_field :title %>
- </p>
- <p>
- <%= f.label :description, t(".description") %><br />
- <%= richtext_area :redaction, :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
- </p>
- <p>
- <%= f.submit %>
- </p>
+<%= 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 %>
</div>
<% if can?(:edit, Redaction) || can?(:destroy, Redaction) %>
-<div class="buttons">
+<div>
<% if can?(:edit, Redaction) %>
- <%= button_to t(".edit"), edit_redaction_path(@redaction), :method => :get %></td>
+ <%= link_to t(".edit"), edit_redaction_path(@redaction), :class => "btn btn-outline-primary" %>
<% end %>
<% if can?(:destroy, Redaction) %>
- <%= button_to t(".destroy"), @redaction, :method => "delete", :remote => true, :data => { :confirm => t(".confirm") } %>
+ <%= link_to t(".destroy"), @redaction, :method => "delete", :class => "btn btn-outline-danger", :remote => true, :data => { :confirm => t(".confirm") } %>
<% end %>
</div>
<% end %>
title: "Subject"
body: "Body"
recipient: "Recipient"
+ redaction:
+ title: Title
+ description: Description
report:
category: Select a reason for your report
details: Please provide some more details about the problem (required).
centre_map: Centre map here
redactions:
edit:
- description: "Description"
heading: "Edit redaction"
title: "Edit redaction"
index:
heading: "List of redactions"
title: "List of redactions"
new:
- description: "Description"
heading: "Enter information for new redaction"
title: "Creating new redaction"
show: