/
new.html.erb
31 lines (29 loc) · 1.34 KB
/
new.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<div id="contentHeader">
<h2><%= @page_name %></h2>
</div>
<%= render(:partial => 'layouts/flash', :locals => {:flash => flash}) -%>
<div id="contentMainNew">
<%= form_tag(rails_admin_create_path(:model_name => @abstract_model.to_param)) do %>
<fieldset>
<h2>BASIC INFO</h2>
<div class="formSection">
<%= render(:partial => 'properties', :properties => @properties) -%>
</div>
<%= render(:partial => 'belongs_to_association', :collection => @abstract_model.belongs_to_associations) -%>
<%= render(:partial => 'has_one_association', :collection => @abstract_model.has_one_associations) -%>
<%= render(:partial => 'has_many_association', :collection => @abstract_model.has_many_associations) -%>
<ul id="submitArea">
<li id="saveContainer">
<%= submit_tag "Save", :class => "default", :name => "_save", :id => "save_btn" %>
</li>
<li id="saveAddContainer">
<%= submit_tag "Save and add another", :name => "_add_another", :id => "saveAdd_btn" %>
</li>
<li id="cancelContainer">
<%= submit_tag "cancel", :name => "_continue", :id => "cancel_btn" %>
</li>
</ul>
</fieldset>
</div>
<% end %>
</div>