Sha256: 96b419c7ba9040f2276d8beb30a8f2278b69b5383c43d4a2dd57e5155c851c98

Contents?: true

Size: 684 Bytes

Versions: 3

Compression:

Stored size: 684 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 _t("Cancel and go back").downcase, :action => "index" %></li>
    </ol>
  </fieldset>

<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typus-1.0.0.pre8 app/views/admin/resources/_form.html.erb
typus-1.0.0.pre7 app/views/admin/resources/_form.html.erb
typus-1.0.0.pre6 app/views/admin/resources/_form.html.erb