negos_app/app/views/admin/reseauxes/_form.html.haml
2017-09-19 11:33:15 +02:00

21 lines
726 B
Plaintext
Executable File

=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 : "
-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 :logo_image_file_id, :label => "Logo :", :as => :qi_image_select
=f.input :background_image_file_id, :label => "Image de fond :", :as => :qi_image_select
.actions= f.submit "Sauvegarder", :class => "btn btn-primary"