=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 : " %h3 Contacts de l'adresse : .kaps_rappels_form =f.semantic_fields_for :kaps_rappels do |form| =render :partial => "public/kaps_rappels/form", :locals => {:form => form} %p= link_to_add_fields ic(:plus)+" Ajouter un rappel", f, :kaps_rappels .actions=f.submit "sauvegarder", :class => "btn btn-primary"