=semantic_form_for [:public, @kap], :remote => true do |f| .content =f.inputs do = f.input :kaps_type_id, :label => "Type de kaps :", :collection => [["Jour", 1],["Semaine", 2],["Mois", 3]], :as => :select, :include_blank => false = f.input :name, :label => "Nom :" = f.input :public, :label => "Public :" = f.input :points, :label => "Points :", :collection => 0..5, :as => :radio, :include_blank => false =f.input :start_at, :label => "Date de début :", :as => :date =f.input :end_at, :label => "Date de fin :", :as => :date %h3 Alternance : =f.input :active_days, :label => "Jours actifs :" =f.input :pause_days, :label => "Jours de pause : " .actions=f.submit "sauvegarder", :class => "btn btn-primary"