Mercurial > zeropaste
annotate app/views/pastes/_form.html.erb @ 276:42e70577c962
Code climate yay.
author | edogawaconan <me@myconan.net> |
---|---|
date | Wed, 16 Oct 2013 03:35:44 +0900 |
parents | 6cca1ab53337 |
children | dff632a63ada |
rev | line source |
---|---|
260 | 1 <%= form_for @paste do |f| %> |
2 <div class="form-group"> | |
3 <%= f.text_area :paste, :rows => 10, :class => "form-control" %> | |
2 | 4 </div> |
189
b4b7a29b70f6
Initial work for paste deletion.
Edho Arief <edho@myconan.net>
parents:
56
diff
changeset
|
5 |
260 | 6 <div class="form-group"> |
7 <%= f.label :key, "Deletion key", class: "control-label" %> | |
8 <div class="row"><div class="col-sm-3"> | |
9 <%= f.text_field :key, :class => "form-control" %> | |
10 </div></div> | |
2 | 11 </div> |
260 | 12 <div class="checkbox"> |
13 <%= f.label :is_private do %> | |
14 <%= f.check_box :is_private %> | |
15 Private | |
16 <% end %> | |
17 </div> | |
18 <%= f.submit :class => 'btn btn-primary' %> | |
19 <%= link_to 'Clear', root_path, :class => 'btn btn-danger', :id => 'reset_paste' %> | |
2 | 20 <% end %> |