Mercurial > zeropaste
view app/views/pastes/_form.html.erb @ 192:1da19a81f5d7
Update rails to 3.2.13 and various other gems.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Wed, 20 Mar 2013 04:55:49 +0900 |
parents | b4b7a29b70f6 |
children | 0993715b455d |
line wrap: on
line source
<%= form_for(@paste) do |f| %> <% if @paste.errors.any? %> <div class="alert alert-error" id="error_explanation"> <h5><%= pluralize(@paste.errors.count, "error") %> prohibited this paste from being saved:</h5> <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 %> <%= f.text_field :key %> <span class="help-inline"><%= f.label :key, 'Deletion key' %></span> </div> <div class="form-actions"> <%= f.submit :class => 'btn btn-primary' %> <%= link_to 'Clear', root_path, :class => 'btn', :id => 'reset_paste' %> </div> <% end %>