app/views/cmsedit/new.html.erb in drg_cms-0.6.1.9 vs app/views/cmsedit/new.html.erb in drg_cms-0.6.1.11
- old
+ new
@@ -1,8 +1,12 @@
-<%= dc_table_title dc_new_title %>
+<% dc_form_update %>
-<%= form_tag(@parms, method: :post, id: params['form_name'] || params['table'],
- class: 'cmsform', multipart: @form['form']['multipart']) do %>
- <%= render partial: 'form' %>
-<% end %>
+<div <%= dc_form_id %>>
+ <%= dc_table_title dc_new_title %>
+
+ <%= form_tag(@form_params, method: :post, id: CmsHelper.form_param(params) || CmsHelper.table_param(params),
+ class: 'cmsform', multipart: @form['form']['multipart']) do %>
+ <%= render partial: 'form' %>
+ <% end %>
+</div>
<div id="popup" style="display: none;"></div>