Sha256: fc2830dc002d882dba6b69327d4238ae8dd4c47bfa8eaf324e24b9f16eda4703
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
<%%= semantic_form_for(@<%= singular_table_name %>) do |f| %> <%%= f.inputs do %> <%- attributes.each do |attribute| -%> <%- case attribute.type when :date -%> <%%= f.input :<%= attribute.name %>, :as => :string, :input_html => { :class => 'calendar', :maxlength => 10 } %> <%- else -%> <%%= f.input :<%= attribute.name %> %> <%- end -%> <%- end -%> <%% end %> <%%= f.buttons do %> <%%= f.commit_button :button_html => { :class => "button large" } %> <%% end %> <%% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
leonardo-1.5.0 | lib/generators/erb/leosca/templates/formtastic/_form.html.erb |
leonardo-1.4.0 | lib/generators/erb/leosca/templates/formtastic/_form.html.erb |