Sha256: 8608bfeba4e44df2c2f07fc1d10ff54aa158d367387b74346637f80e6f819a5f

Contents?: true

Size: 705 Bytes

Versions: 3

Compression:

Stored size: 705 Bytes

Contents

=form_for @<%= table_name.singularize %> do |f|
	%table.outer
	<% @attr_cols.each do |col| %>
		%tr
		<% if options.datepicker? && [:date, :time, :datetime].include?(col.type) %>
			%td= f.hd_label :<%= col.name %>
			%td.field= f.<%= col.type %>_picker :<%= col.name %>
		<% else %>
			%td= f.label :<%= col.name %>
			%td.field= f.<%= col.field_type %> :<%= col.name %>
		<% end %>
	<% 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

3 entries across 3 versions & 1 rubygems

Version Path
controller_scaffolding-1.4.1 lib/templates/haml/controller/_form.html.haml
controller_scaffolding-1.4.0 lib/templates/haml/controller/_form.html.haml
controller_scaffolding-1.3.0 lib/templates/haml/controller/_form.html.haml