Sha256: a521f0b5255103ec94a73658e47b57bfde2488f575e3813198e3ada0b030bff2

Contents?: true

Size: 777 Bytes

Versions: 4

Compression:

Stored size: 777 Bytes

Contents

===entity_code===
<%%= <%= 'nested_' unless @model.attributes.select{|a| a.nested_many?}.count.zero? %>form_for(<%= @model.to_route_object('@') %><%= ', :remote => true, :html => {:class => :mdwa_ajax}' if @entity.ajax %>) do |f| %>

	<div id="mdwa_error">
	   	<%%= render '/template/mdwa/crud_error', :object => @<%= @model.singular_name %> %>
	</div>
	
	<div class="yui3-g">
		<div class="yui3-u">
			<%%= render 'form_fields', :f => f %>
  	  	</div>
	</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 :class => :button %>
	</div>

<%% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mdd-3.0.10 lib/generators/mdwa/templates/templates/scaffold/views/_form.html.erb
mdd-3.0.9 lib/generators/mdwa/templates/templates/scaffold/views/_form.html.erb
mdd-3.0.8 lib/generators/mdwa/templates/templates/scaffold/views/_form.html.erb
mdd-3.0.7 lib/generators/mdwa/templates/templates/scaffold/views/_form.html.erb