Sha256: e2e02661b1070383321211e4b77e106a24ea2c9a61dadbde32fc7151deb18c35

Contents?: true

Size: 1.21 KB

Versions: 3

Compression:

Stored size: 1.21 KB

Contents

        <div id="content-main">
        <%= form_for(@instance, :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="<%= @instance.errors[property.name] ? "form-row errors" : "form-row"%>">
                <% if @instance.errors[property.name] %>
                <ul class="errorlist">
                  <% @instance.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

3 entries across 3 versions & 1 rubygems

Version Path
sferik-merb-admin-0.2.4 app/views/forms/new.html.erb
sferik-merb-admin-0.2.5 app/views/forms/new.html.erb
sferik-merb-admin-0.2.6 app/views/forms/new.html.erb