Sha256: 596bc8c964109dae1bf0c41bb1c38b20c1ac8728109c7d7575120cc4c66b120a

Contents?: true

Size: 683 Bytes

Versions: 5

Compression:

Stored size: 683 Bytes

Contents

<%= form_for @item, :url  => options, :html => { :multipart => true } do |form| %>

  <% if @item.errors.any? %>
  <div id="errorExplanation">
    <h3><%= pluralize(@item.errors.count, "error") %> prohibited this page from being saved:</h3>
    <ul>
    <% @item.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
    </ul>
  </div>
  <% end %>

  <fieldset class="inputs">
    <ol>
      <%= raw build_form(@fields, form) %>
    </ol>
  </fieldset>

  <fieldset class="buttons">
    <ol>
      <li><%= submit_tag button , :class => "commit" %> or <%= link_to _("Cancel and go back").downcase, :action => "index" %></li>
    </ol>
  </fieldset>

<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typus-1.0.0.pre5 app/views/admin/resources/_form.html.erb
typus-1.0.0.pre4 app/views/admin/resources/_form.html.erb
typus-1.0.0.pre3 app/views/admin/resources/_form.html.erb
typus-1.0.0.pre2 app/views/admin/resources/_form.html.erb
typus-1.0.0.pre app/views/admin/resources/_form.html.erb