Sha256: 85cedd26eba7464f64b03205f315adb6146dfdf5ae1cdd6fea6eea5f7221f4c8

Contents?: true

Size: 1.23 KB

Versions: 10

Compression:

Stored size: 1.23 KB

Contents

        <div id="content-main">
        <%= form_for(@object, :action => url(:admin_update, :model_name => @abstract_model.singular_name, :id => @object.id)) do %>
          <div>
<%= partial('properties', :properties => @properties) -%>
            <% @abstract_model.belongs_to_associations.each do |association| %>
<%= partial('belongs_to', :association => association) -%>
            <% end %>
            <% @abstract_model.has_one_associations.each do |association| %>
<%= partial('has_one', :association => association) -%>
            <% end %>
            <% @abstract_model.has_many_associations.each do |association| %>
<%= partial('has_many', :association => association) -%>
            <% end %>
            <div class="submit-row" >
              <%= submit "Save", :class => "default", :name => "_save" %>
              <p class="deletelink-box">
                <%= link_to("Delete", url(:admin_delete, :model_name => @abstract_model.singular_name, :id => @object.id), :class => "deletelink") %>
              </p>
              <%= submit "Save and add another", :name => "_add_another" %>
              <%= submit "Save and continue editing", :name => "_continue" %>
            </div>
          </div>
        <% end =%>

        </div>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
sferik-merb-admin-0.4.0 app/views/main/edit.html.erb
sferik-merb-admin-0.4.1 app/views/main/edit.html.erb
sferik-merb-admin-0.4.2 app/views/main/edit.html.erb
sferik-merb-admin-0.4.3 app/views/main/edit.html.erb
merb-admin-0.4.8 app/views/main/edit.html.erb
merb-admin-0.4.7 app/views/main/edit.html.erb
merb-admin-0.4.6 app/views/main/edit.html.erb
merb-admin-0.4.5 app/views/main/edit.html.erb
merb-admin-0.4.4 app/views/main/edit.html.erb
merb-admin-0.4.3 app/views/main/edit.html.erb