diff app/views/pastes/_form.html.erb @ 213:0993715b455d

Add make private checkbox
author Edho Arief <edho@myconan.net>
date Sun, 12 May 2013 02:42:43 +0900
parents b4b7a29b70f6
children c4aba8990c5e
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">