Sha256: 9726fecf66ecb0f359b96cd81b7f940a0469670adf374e03f3be34099efc6b68

Contents?: true

Size: 699 Bytes

Versions: 2

Compression:

Stored size: 699 Bytes

Contents

<%%= form_for @<%= model_name.underscore  %>, :url => url, :html => { :class => :form } do |f| -%>
	<% columns.each do |column| %>
	  <div class="group">
	    <%%= f.label :<%= column.name %>, t("activerecord.attributes.<%= model_name.underscore %>.<%= column.name %>", :default => "<%= column.name.humanize %>"), :class => :label %>
	    <%%= f.<%= column.field_type %> :<%= column.name %>, :class => '<%= column.field_type %>' %>
	    <span class="description">Ex: a simple text</span>
	  </div>
	<%- end -%>
	<div class="group navform wat-cf">
	  <%%= submit_button t("activoate.save", :default => "Save"), 'tick' %>
		<%%= cancel_button <%= controller_routing_path %>_path %>
	</div>
<%% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activoate-0.7.9 lib/generators/activoate/activoated/templates/view_form.html.erb
activoate-0.7.5 lib/generators/activoate/activoated/templates/view_form.html.erb