This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/app/views/admin/v_contacts/_form.html.haml
2021-08-23 10:26:02 +02:00

70 lines
3.1 KiB
Plaintext

=semantic_form_for [:admin, @v_contact], :remote => true do |f|
.content
=f.inputs do
-if current_admin.super_admin
= f.input :enabled, :label => "Actif ?"
-if !f.object.id
= f.input :codeproprietaire, :label => "Centre :", :as => :select, :collection => current_admin.societes.where(:enabled => true).map{|s| [s.nom,s.socmanaginn]}, :include_blank => false
= f.input :codemanaginn, :label => "Numéro CCV :" if !f.object.id
= #f.input :nomgroupe, :label => "nomgroupe :"
= #f.input :societe, :label => "societe :"
= f.input :civilite, :label => "Civilité :", :collection => ["Mme", "Mr"], :include_blank => false
= f.input :nom, :label => "Nom :"
= f.input :prenom, :label => "Prénom :"
= #f.input :titre, :label => "titre :"
= f.input :mailto, :label => "Mail :"
= #f.input :mailcc, :label => "mailcc :"
= #f.input :mailbcc, :label => "mailbcc :"
= f.input :numportable, :label => "Portable :"
= f.input :numtel, :label => "Tel :"
= #f.input :numfax, :label => "numfax :"
= f.input :adresse1, :label => "Adresse :"
= f.input :adresse2, :label => "Adresse (suite) :"
= f.input :codepostal, :label => "Code postal :"
= f.input :ville, :label => "Ville :"
= #f.input :anniversaire, :label => "anniversaire :"
=# f.input :pays, :label => "pays :"
=# f.input :photo, :label => "photo :"
=# f.input :login, :label => "login :"
=# f.input :password, :label => "password :"
=# f.input :typeuser, :label => "typeuser :"
=# f.input :commentaire, :label => "commetaire :"
=# f.input :typepartage, :label => "typepartage :"
= #f.input :libre1, :label => "libre1 :"
= #f.input :libre2, :label => "libre2 :"
= #f.input :libre2, :label => "libre2 :"
= #f.input :libre4, :label => "libre4 :"
= #f.input :libre5, :label => "libre5 :"
= #f.input :accesbloque, :label => "accesbloque :"
= #f.input :corbeille, :label => "corbeille :"
= #f.input :codecreateur, :label => "codecreateur :"
= #f.input :partagedefaut, :label => "partagedefaut :"
= #f.input :npai, :label => "npai :"
= #f.input :npaimail, :label => "npaimail :"
= #f.input :npaisms, :label => "napisms :"
= #f.input :rate, :label => "rate :"
= #f.input :cumul, :label => "cumul :"
= #f.input :cagnotte, :label => "cagnotte :"
= #f.input :prime, :label => "prime :"
= #f.input :nbr_vidanges, :label => "nbr_vidanges :"
= #f.input :vidanges_seuil, :label => "vidanges_seuil :"
= #f.input :vidanges_offerte, :label => "vidanges_offerte :"
= #f.input :last_volume_at, :label => "last_volume_at :"
= #f.input :datecreation, :label => "datecreation :"
= #f.input :ac_rate, :label => "ac_rate :"
= #f.input :nbr_mvt, :label => "nbr_mvt :"
= #f.input :cc_centre, :label => "cc_centre :"
= #f.input :ac_centre, :label => "ac_centre :"
.actions=f.submit "sauvegarder", :class => "btn btn-primary"