=semantic_form_for [:admin, @<%= singular_name %>], :remote => true do |f|

  .content
    =f.inputs do
      <% attributes.each do |attribute| -%>
= f.input :<%= attribute.name %>, :label => "<%= attribute.name %> :" <%=(attribute.type == "date" ? ", :as => :date" : "") %>
      <% end -%>
      
      
      
      
      
  .actions=f.submit "sauvegarder", :class => "btn btn-primary"
  