Sha256: 2a349911457ea4230d1b06f3ad93e7ca4976528ba39a6e2eebb34c449aaa6df8

Contents?: true

Size: 920 Bytes

Versions: 4

Compression:

Stored size: 920 Bytes

Contents

<%
  page_title = Typus::I18n.t("Edit %{resource}", :resource => @resource.model_name.human)
  title(page_title)
%>

<% content_for :main_grid do %>
  <h2>
    <%= page_title %>
    <small><%= list_actions %></small>
  </h2>

  <% if flash[:notice] && headless_mode? %>
    <script>
      $(document).ready(function() { parent.location.reload(); });
    </script>
  <% end %>

  <%= display_flash_message %>
  <%= render 'edit' %>

  <%
    options = params.dup.cleanup.merge!(:action => 'update')
    button = Typus::I18n.t("Save %{resource}", :resource => @resource.model_name.human)
  %>

  <%= render :partial => 'form', :locals => { :options => options, :button => button } %>

  <%= typus_relationships unless headless_mode? %>
<% end %>

<div class="grid_2">
  <%= build_sidebar.present? ? build_sidebar : render("admin/templates/profile_sidebar") %>
</div>

<div class="grid_8">
  <%= yield :main_grid %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
typus-3.1.0.rc18 app/views/admin/resources/edit.html.erb
typus-3.1.0.rc17 app/views/admin/resources/edit.html.erb
typus-3.1.0.rc16 app/views/admin/resources/edit.html.erb
typus-3.1.0.rc15 app/views/admin/resources/edit.html.erb