=semantic_form_for [:admin, @reseaux] do |f| .content =f.hidden_field :parent_id -if @reseaux.parent %p Sous réseau de %strong =@reseaux.parent.name =f.inputs do =f.input :name, :label => "Nom du réseau : " =f.input :baseline, :label => "Baseline :" =f.input :description, :label => "A propos : ", :input_html => {:class => "redactor_textarea"} -if !@reseaux.parent =f.input :chef_reseau, :label => "Chef réseau : ", :collection => Customer.where(:chef_reseau => true).pluck(Arel.sql("CONCAT(`firstname`, ' ', `name`)"), :id) =f.input :sub_domain, :label => "Sous domaine (pour l'url) :" =f.input :logo_image_file_id, :label => "Logo :", :as => :qi_image_select =f.input :background_image_file_id, :label => "Image de fond :", :as => :qi_image_select =f.input :abo_needed, :label => "Abonnement nécessaire ?" =f.input :abo_price, :label => "Prix de l'abonnement ?" =f.input :offres_enabled, :label => "Besoins activés ?" =f.input :needs_enabled, :label => "Offres activées ?" .actions= f.submit "Sauvegarder", :class => "btn btn-primary" :javascript $(".redactor_textarea").redactor({ }); :css .redactor-editor{ padding: 24px 32px; border: 1px solid rgba(0, 0, 0, 0.07); }