Mercurial > zeropaste
annotate app/views/pastes/_form.html.erb @ 29:5cfc0b956083
Better action area.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Mon, 10 Sep 2012 04:00:51 +0700 |
parents | 7746fd53bd9c |
children | e09a3be8dd14 |
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"> | |
28
7746fd53bd9c
Disable cols and rows in textarea.
Edho Arief <edho@myconan.net>
parents:
25
diff
changeset
|
15 <%= f.text_area :paste, :class => 'span12', :cols => nil, :rows => nil %> |
2 | 16 </div> |
29 | 17 <div class="form-actions"> |
18 <%= f.submit :class => 'btn btn-primary' %> | |
2 | 19 </div> |
20 <% end %> |