Mercurial > zeropaste
view app/views/pastes/_form.html.erb @ 44:6a9e0c09bbd8
Ensure input box's width is always 100%.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 04 Oct 2012 02:37:41 +0700 |
parents | a930c717654c |
children | 8ef70e8c239d |
line wrap: on
line source
<%= form_for(@paste) do |f| %> <% if @paste.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@paste.errors.count, "error") %> prohibited this paste from being saved:</h2> <ul> <% @paste.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.text_area :paste, :class => 'span12', :rows => 10 %> </div> <div class="form-actions"> <%= f.submit :class => 'btn btn-primary' %> <%= link_to 'Clear', root_path, :class => 'btn', :id => 'reset_paste' %> </div> <% end %>