Sha256: 08edbda91d1c2437db1008b23ea2137266eb6023698ec7a14a24a09245cc8f5a

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

        <div id="content-main">
        <%= form_for(@object, :action => slice_url(:admin_create, :model_name => @model_name.snake_case)) do %>
          <div>
            <fieldset class="module aligned">
              <% @properties.each do |property| %>
                <% next if [:id, :created_at, :created_on, :updated_at, :updated_on].include?(property.name) %>
              <div class="<%= @object.errors[property.name] ? "form-row errors" : "form-row"%>">
                <% if @object.errors[property.name] %>
                <ul class="errorlist">
                  <% @object.errors[property.name].each do |error| %>
                  <li><%= error %></li>
                  <% end %>
                </ul>
                <% end %>
<%= partial(property.primitive.to_s.snake_case, :property => property) -%>
              </div>
              <% end %>
            </fieldset>
            <div class="submit-row" >
              <%= submit "Save", :class => "default", :name => "_save" %>
              <%= submit "Save and add another", :name => "_add_another" %>
              <%= submit "Save and continue editing", :name => "_continue" %>
            </div>
          </div>
        <% end =%>

        </div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sferik-merb-admin-0.2.7 app/views/main/new.html.erb