Sha256: 0a01b7dae9599e3b209820484e65f047a3fe67883ecac23d084d7a91e4aa69dd
Contents?: true
Size: 837 Bytes
Versions: 10
Compression:
Stored size: 837 Bytes
Contents
<%%= semantic_form_for(<%= form_resource_path %>) do |f| %> <%%= f.inputs do %> <%- attributes.each do |attribute| -%> <%- case attribute.type when :references, :belongs_to -%> <%% if @<%= singular_table_name %>.new_record? -%> <%%= f.input :<%= attribute.name %> if can?(:manage, <%=class_name %>) %> <%% else -%> <%%= f.input :<%= attribute.name %> %> <%% end -%> <%- 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
10 entries across 10 versions & 1 rubygems