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>
|
||||
<% 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 %>
|
||||
|
|
|
@ -3,18 +3,8 @@
|
|||
<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 %>
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
</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 %>
|
||||
|
|
|
@ -116,6 +116,9 @@ en:
|
|||
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).
|
||||
|
@ -2841,7 +2844,6 @@ en:
|
|||
centre_map: Centre map here
|
||||
redactions:
|
||||
edit:
|
||||
description: "Description"
|
||||
heading: "Edit redaction"
|
||||
title: "Edit redaction"
|
||||
index:
|
||||
|
@ -2849,7 +2851,6 @@ en:
|
|||
heading: "List of redactions"
|
||||
title: "List of redactions"
|
||||
new:
|
||||
description: "Description"
|
||||
heading: "Enter information for new redaction"
|
||||
title: "Creating new redaction"
|
||||
show:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue