comparison 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
comparison
equal deleted inserted replaced
212:186b4674bcbe 213:0993715b455d
12 <% end %> 12 <% end %>
13 13
14 <div class="field"> 14 <div class="field">
15 <%= f.text_area :paste, :class => 'span12', :rows => 10 %> 15 <%= f.text_area :paste, :class => 'span12', :rows => 10 %>
16 16
17 <%= f.text_field :key %> 17 <div class="form-horizontal">
18 <span class="help-inline"><%= f.label :key, 'Deletion key' %></span> 18 <div class="control-group">
19 <%= f.label :key, "Deletion key", class: "control-label" %>
20 <div class="controls">
21 <%= f.text_field :key %>
22 </div>
23 </div>
24 <div class="control-group">
25 <%= f.label :is_private, "Make private", class: "control-label" %>
26 <div class="controls">
27 <%= f.check_box :is_private %>
28 </div>
29 </div>
30 </div>
19 </div> 31 </div>
20 32
21 <div class="form-actions"> 33 <div class="form-actions">
22 <%= f.submit :class => 'btn btn-primary' %> 34 <%= f.submit :class => 'btn btn-primary' %>
23 <%= link_to 'Clear', root_path, :class => 'btn', :id => 'reset_paste' %> 35 <%= link_to 'Clear', root_path, :class => 'btn', :id => 'reset_paste' %>