Mercurial > zeropaste
annotate app/views/pastes/_form.html.erb @ 25:faf30647205e
Use bootstrap.
| author | Edho Arief <edho@myconan.net> |
|---|---|
| date | Mon, 10 Sep 2012 03:48:01 +0700 |
| parents | 42de15334db1 |
| children | 7746fd53bd9c |
| rev | line source |
|---|---|
| 2 | 1 <%= form_for(@paste) do |f| %> |
| 2 <% if @paste.errors.any? %> | |
| 3 <div id="error_explanation"> | |
| 4 <h2><%= pluralize(@paste.errors.count, "error") %> prohibited this paste from being saved:</h2> | |
| 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"> | |
| 25 | 15 <%= f.text_area :paste, :class => 'span12' %> |
| 2 | 16 </div> |
| 17 <div class="actions"> | |
| 25 | 18 <%= f.submit :class => 'btn' %> |
| 2 | 19 </div> |
| 20 <% end %> |
