Sha256: 39a36ae045809f0b2972983d464f40a7272ee5668c3df84bca8672a97c7ce447
Contents?: true
Size: 700 Bytes
Versions: 2
Compression:
Stored size: 700 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("activoated.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.2 | lib/generators/activoate/activoated/templates/view_form.html.erb |
activoate-0.6.8 | lib/generators/activoate/activoated/templates/view_form.html.erb |