lib/generators/mdwa/templates/templates/scaffold/views/_form.html.erb in mdd-3.1.1 vs lib/generators/mdwa/templates/templates/scaffold/views/_form.html.erb in mdd-3.1.2
- old
+ new
@@ -1,23 +1,21 @@
===entity_code===
<%%= <%= 'nested_' if @model.nested_many? %>form_for(<%= @model.to_route_object('@') %><%= ", :remote => true, :html => {:class => :mdwa_ajax #{',:multipart => true' unless @model.attributes.select{|attr| attr.type.to_sym == :file}.count.zero?}}" if @entity.ajax %>) do |f| %>
<div id="mdwa_error">
- <%%= render '/template/mdwa/crud_error', :object => @<%= @model.singular_name %> %>
+ <%%= render '/template/mdwa/crud_error', :object => @<%= @model.singular_name %> %>
</div>
<div class="yui3-g">
- <div class="yui3-u">
- <%%= render 'form_fields', :f => f %>
- </div>
+ <%%= render 'form_fields', :f => f %>
</div>
<div class="actions">
<%- if !@entity.ajax -%>
<%%= link_to t('system.cancel_button'), <%= @model.object_name.pluralize %>_path, :class => :cancel %>
<%- else -%>
<%%= link_to t('system.cancel_button'), '#', :class => :cancel %>
<%- end -%>
- <%%= f.submit t('system.save_button'), :class => :button %>
+ <%%= f.submit t('system.save_button'), :class => :button %>
</div>
<%% end %>
\ No newline at end of file