diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-08 17:56:12 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-08 17:56:12 +1100 |
commit | 328aff4b7dc95595662a31892a8498083d5fa2ad (patch) | |
tree | 3a18a0a950ec8529cd0d735a01128eeb5ffdfb0d | |
parent | 4bf5025402c4ca1c93fd8e89cb09b5e3e1aa826c (diff) |
Give the editing of censor rule a bootstrap layout
-rw-r--r-- | app/views/admin_censor_rule/edit.rhtml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/app/views/admin_censor_rule/edit.rhtml b/app/views/admin_censor_rule/edit.rhtml index 3e11b6f7a..4eb99ce57 100644 --- a/app/views/admin_censor_rule/edit.rhtml +++ b/app/views/admin_censor_rule/edit.rhtml @@ -2,15 +2,17 @@ <h1><%=@title%></h1> -<% form_tag admin_rule_update_path(@censor_rule) do %> +<% form_tag admin_rule_update_path(@censor_rule), :class => "form form-horizontal" do %> <%= render :partial => 'form', :locals => { :info_request => @censor_rule.info_request, :user => @censor_rule.user } %> - <p><%= submit_tag 'Save', :accesskey => 's' %></p> + <div class="form-actions"> + <%= submit_tag 'Save', :accesskey => 's', :class => "btn btn-primary" %> + </div> <% end %> -<% form_tag admin_rule_destroy_path(@censor_rule) do %> - <p> - <%= hidden_field_tag(:censor_rule_id, @censor_rule.id) %> - Permanent! --> <%= submit_tag "Destroy rule" %> - </p> +<% form_tag admin_rule_destroy_path(@censor_rule), :class => "form form-horizontal" do %> + <%= hidden_field_tag(:censor_rule_id, @censor_rule.id) %> + <div class="form-actions"> + Permanent! --> <%= submit_tag "Destroy rule", :class => "btn btn-primary" %> + </div> <% end %> |