Sha256: 3b3eb84a490f1844e037d368a5412ebaf65e5fa12d82ea2ca6ebadddb55124bb

Contents?: true

Size: 800 Bytes

Versions: 8

Compression:

Stored size: 800 Bytes

Contents

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

<% content_for :sidebar do %>
  <% build_sidebar.present? ? build_sidebar : render("admin/templates/profile_sidebar") %>
<% end %>

<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? %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typus-3.1.0.rc14 app/views/admin/resources/edit.html.erb
typus-3.1.0.rc13 app/themes/default/views/admin/resources/edit.html.erb
typus-3.1.0.rc12 app/themes/default/views/admin/resources/edit.html.erb
typus-3.1.0.rc11 app/themes/default/views/admin/resources/edit.html.erb
typus-3.1.0.rc10 app/themes/default/views/admin/resources/edit.html.erb
typus-3.1.0.rc9 app/themes/default/views/admin/resources/edit.html.erb
typus-3.1.0.rc8 app/views/admin/resources/edit.html.erb
typus-3.1.0.rc7 app/views/admin/resources/edit.html.erb