changeset 213:0993715b455d

Add make private checkbox
author Edho Arief <edho@myconan.net>
date Sun, 12 May 2013 02:42:43 +0900
parents 186b4674bcbe
children 22c4b5f90e24
files app/views/pastes/_form.html.erb
diffstat 1 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/pastes/_form.html.erb	Sun May 12 02:41:35 2013 +0900
+++ b/app/views/pastes/_form.html.erb	Sun May 12 02:42:43 2013 +0900
@@ -14,8 +14,20 @@
   <div class="field">
     <%= f.text_area :paste, :class => 'span12', :rows => 10 %>
 
-    <%= f.text_field :key %>
-    <span class="help-inline"><%= f.label :key, 'Deletion key' %></span>
+    <div class="form-horizontal">
+      <div class="control-group">
+        <%= f.label :key, "Deletion key", class: "control-label" %>
+        <div class="controls">
+          <%= f.text_field :key %>
+        </div>
+      </div>
+      <div class="control-group">
+        <%= f.label :is_private, "Make private", class: "control-label" %>
+        <div class="controls">
+          <%= f.check_box :is_private %>
+        </div>
+      </div>
+    </div>
   </div>
 
   <div class="form-actions">