Converge redaction forms to use bootstrap
This commit is contained in:
parent
c0adab7aba
commit
eabc7f330b
4 changed files with 14 additions and 33 deletions
|
@ -4,18 +4,8 @@
|
||||||
<h1><%= t ".heading" %></h1>
|
<h1><%= t ".heading" %></h1>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= form_for(@redaction, :html => { :class => "standard-form" }) do |f| %>
|
<%= bootstrap_form_for(@redaction) do |f| %>
|
||||||
<%= f.error_messages %>
|
<%= f.text_field :title %>
|
||||||
|
<%= f.richtext_field :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
|
||||||
<p>
|
<%= f.primary %>
|
||||||
<%= 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>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -3,18 +3,8 @@
|
||||||
<h1><%= t ".heading" %></h1>
|
<h1><%= t ".heading" %></h1>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= form_for(@redaction, :html => { :class => "standard-form" }) do |f| %>
|
<%= bootstrap_form_for(@redaction) do |f| %>
|
||||||
<%= f.error_messages %>
|
<%= f.text_field :title %>
|
||||||
|
<%= f.richtext_field :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
|
||||||
<p>
|
<%= f.primary %>
|
||||||
<%= 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>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -13,12 +13,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if can?(:edit, Redaction) || can?(:destroy, Redaction) %>
|
<% if can?(:edit, Redaction) || can?(:destroy, Redaction) %>
|
||||||
<div class="buttons">
|
<div>
|
||||||
<% if can?(:edit, Redaction) %>
|
<% 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 %>
|
<% end %>
|
||||||
<% if can?(:destroy, Redaction) %>
|
<% 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 %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -116,6 +116,9 @@ en:
|
||||||
title: "Subject"
|
title: "Subject"
|
||||||
body: "Body"
|
body: "Body"
|
||||||
recipient: "Recipient"
|
recipient: "Recipient"
|
||||||
|
redaction:
|
||||||
|
title: Title
|
||||||
|
description: Description
|
||||||
report:
|
report:
|
||||||
category: Select a reason for your report
|
category: Select a reason for your report
|
||||||
details: Please provide some more details about the problem (required).
|
details: Please provide some more details about the problem (required).
|
||||||
|
@ -2841,7 +2844,6 @@ en:
|
||||||
centre_map: Centre map here
|
centre_map: Centre map here
|
||||||
redactions:
|
redactions:
|
||||||
edit:
|
edit:
|
||||||
description: "Description"
|
|
||||||
heading: "Edit redaction"
|
heading: "Edit redaction"
|
||||||
title: "Edit redaction"
|
title: "Edit redaction"
|
||||||
index:
|
index:
|
||||||
|
@ -2849,7 +2851,6 @@ en:
|
||||||
heading: "List of redactions"
|
heading: "List of redactions"
|
||||||
title: "List of redactions"
|
title: "List of redactions"
|
||||||
new:
|
new:
|
||||||
description: "Description"
|
|
||||||
heading: "Enter information for new redaction"
|
heading: "Enter information for new redaction"
|
||||||
title: "Creating new redaction"
|
title: "Creating new redaction"
|
||||||
show:
|
show:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue