Sha256: 557ea1655bd05504e6fe78b879217fa6eec5bc0a7563df4fc266badc5526dfc5

Contents?: true

Size: 509 Bytes

Versions: 10

Compression:

Stored size: 509 Bytes

Contents

=form_for @<%= table_name.singularize %> do |f|
	%table.outer
	<% @attr_cols.each do |col| %>
		%tr
			%td= f.label :<%= col.name %>
			%td.field= f.<%= col.field_type %> :<%= col.name %>
	<% end %>
		%tr
		<% if options.ext_form_submit? %>
			%td{:colspan => "2", :style => "text-align: center;"}
				= f.submit "Save & Back to List", name: "btn_index"
				= f.submit "Save & Reload", name: "btn_reload"
		<% else %>
			%td{:colspan => "2"}= f.submit
		<% end %>
%br/
= link_to "Back", <%= table_name %>_path

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
controller_scaffolding-1.2.0 lib/templates/haml/controller/_form.html.haml
controller_scaffolding-1.1.1 lib/templates/haml/controller/_form.html.haml
controller_scaffolding-1.1.0 lib/templates/haml/controller/_form.html.haml
controller_scaffolding-1.0.4 lib/templates/haml/controller/_form.html.haml
controller_scaffolding-1.0.3 lib/templates/haml/controller/_form.html.haml
controller_scaffolding-1.0.2 lib/templates/haml/controller/_form.html.haml
controller_scaffolding-1.0.1 lib/templates/haml/controller/_form.html.haml
controller_scaffolding-1.0.0 lib/templates/haml/controller/_form.html.haml
controller_scaffolding-0.1.5 lib/templates/haml/controller/_form.html.haml
controller_scaffolding-0.0.52 lib/templates/haml/controller/_form.html.haml