Sha256: fba3755a59bafd9ed5c61b88b851c3c7875f7fb89d379b18a33124b5eea79219
Contents?: true
Size: 876 Bytes
Versions: 1
Compression:
Stored size: 876 Bytes
Contents
<%- attributes.each do |attribute| -%> <div class="field"> <%%= f.label :<%= attribute.name %>, t('attributes.<%= singular_table_name %>.<%= attribute.name %>') %><br /> <%- case attribute.type when :references, :belongs_to -%> <%% if @<%= singular_table_name %>.new_record? -%> <%%= f.collection_select :<%= attribute.name %>_id, <%= attribute.name.classify %>.all, :id, :name, :prompt => true if can?(:manage, <%=class_name %>) %> <%% else -%> <%%= f.collection_select :<%= attribute.name %>_id, <%= attribute.name.classify %>.all, :id, :name, :prompt => true %> <%% end -%> <%- when :date -%> <%%= f.<%= attribute.field_type %> :<%= attribute.name %> <%=", :class => \"calendar\"" if jquery_ui?%> %> <%- else -%> <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> <%- end -%> </div> <%- end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
leonardo-1.9.0.beta1 | lib/generators/erb/leosca/templates/_fields.html.erb |