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