Sha256: f1f8943384357804af5d578d978c768dd685dac9eb30799e42eb9a2171d3eb8f

Contents?: true

Size: 1.19 KB

Versions: 27

Compression:

Stored size: 1.19 KB

Contents

<h1>New <%= @item.class.to_s.tableize.singularize.humanize %></h1>

<% if File.exists?(File.join(controller_full_path, '_modify_after_title.html.erb')) -%>
  <%= render :partial => 'modify_after_title' %>
<% elsif File.exists?(File.join(controller_full_path, '_new_after_title.html.erb')) -%>
  <%= render :partial => 'new_after_title' %>
<% end -%>

<% if File.exists?(File.join(controller_full_path, '_after_title.html.erb')) -%>
  <%= render :partial => 'after_title' %>
<% end -%>

<%= semantic_form_for(@item, :url => eval("admin_#{@item.class.to_s.underscore.pluralize}_path"), :html => { :multipart => true }) do |f| %>
  <%= f.inputs do %>
    <%= render :partial => 'form', :locals => {:f => f} %>
  <% end -%>
  <%= f.buttons do %>
    <%= f.commit_button 'Submit' %>
  <% end -%>
<% end -%>

<% if File.exists?(File.join(controller_full_path, '_modify_after_form.html.erb')) -%>
  <%= render :partial => 'modify_after_form' %>
<% elsif File.exists?(File.join(controller_full_path, '_new_after_form.html.erb')) -%>
  <%= render :partial => 'new_after_form' %>
<% end -%>

<% if File.exists?(File.join(controller_full_path, '_after_form.html.erb')) -%>
  <%= render :partial => 'after_form' %>
<% end -%>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
easy_admin_ui-0.5.12 app/views/easy_admin_ui/new.html.erb
easy_admin_ui-0.5.11 app/views/easy_admin_ui/new.html.erb
easy_admin_ui-0.5.9 app/views/easy_admin_ui/new.html.erb
easy_admin_ui-0.5.8 app/views/easy_admin_ui/new.html.erb
easy_admin_ui-0.5.7 app/views/easy_admin_ui/new.html.erb
easy_admin_ui-0.5.6 app/views/easy_admin_ui/new.html.erb
easy_admin_ui-0.5.5 app/views/easy_admin_ui/new.html.erb
easy_admin_ui-0.5.4 app/views/easy_admin_ui/new.html.erb
easy_admin_ui-0.5.3 app/views/easy_admin_ui/new.html.erb
easy_admin_ui-0.5.2 app/views/easy_admin_ui/new.html.erb
easy_admin_ui-0.5.1 app/views/easy_admin_ui/new.html.erb
easy_admin_ui-0.5.0 app/views/easy_admin_ui/new.html.erb
easy_admin_ui-0.4.0 templates/easy_admin_ui/new.html.erb
easy_admin_ui-0.3.0 templates/easy_admin_ui/new.html.erb
easy_admin_ui-0.2.12 templates/easy_admin_ui/new.html.erb
easy_admin_ui-0.2.11 templates/easy_admin_ui/new.html.erb
easy_admin_ui-0.2.10 templates/easy_admin_ui/new.html.erb
easy_admin_ui-0.2.9 templates/easy_admin_ui/new.html.erb
easy_admin_ui-0.2.8 templates/easy_admin_ui/new.html.erb
easy_admin_ui-0.2.7 templates/easy_admin_ui/new.html.erb