Mercurial > zeropaste
annotate app/views/pastes/_form.html.erb @ 239:a8942fab1f34
Update gems.
author | edogawaconan <me@myconan.net> |
---|---|
date | Mon, 07 Oct 2013 12:53:21 +0900 |
parents | 0993715b455d |
children | c4aba8990c5e |
rev | line source |
---|---|
2 | 1 <%= form_for(@paste) do |f| %> |
2 <% if @paste.errors.any? %> | |
56
8ef70e8c239d
Bootstrap-styled error message.
Edho Arief <edho@myconan.net>
parents:
39
diff
changeset
|
3 <div class="alert alert-error" id="error_explanation"> |
8ef70e8c239d
Bootstrap-styled error message.
Edho Arief <edho@myconan.net>
parents:
39
diff
changeset
|
4 <h5><%= pluralize(@paste.errors.count, "error") %> prohibited this paste from being saved:</h5> |
2 | 5 |
6 <ul> | |
7 <% @paste.errors.full_messages.each do |msg| %> | |
8 <li><%= msg %></li> | |
9 <% end %> | |
10 </ul> | |
11 </div> | |
12 <% end %> | |
13 | |
14 <div class="field"> | |
35 | 15 <%= f.text_area :paste, :class => 'span12', :rows => 10 %> |
189
b4b7a29b70f6
Initial work for paste deletion.
Edho Arief <edho@myconan.net>
parents:
56
diff
changeset
|
16 |
213 | 17 <div class="form-horizontal"> |
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> | |
2 | 31 </div> |
189
b4b7a29b70f6
Initial work for paste deletion.
Edho Arief <edho@myconan.net>
parents:
56
diff
changeset
|
32 |
29 | 33 <div class="form-actions"> |
34 <%= f.submit :class => 'btn btn-primary' %> | |
39 | 35 <%= link_to 'Clear', root_path, :class => 'btn', :id => 'reset_paste' %> |
2 | 36 </div> |
37 <% end %> |