142 lines
2.4 KiB
Plaintext
142 lines
2.4 KiB
Plaintext
.qi_header
|
|
.right
|
|
= link_to i(:pencil), edit_admin_societe_path(@societe), :remote => true
|
|
%h1
|
|
Centre
|
|
|
|
%span
|
|
=@societe.codepostal
|
|
=@societe.ville
|
|
|
|
%span
|
|
=@societe.socmanaginn
|
|
|
|
%span
|
|
=@societe.nom
|
|
|
|
|
|
.qi_row
|
|
.qi_pannel
|
|
%table.table.table-striped.table-hover.table-bordered
|
|
|
|
-if current_admin.super_admin
|
|
|
|
%tr
|
|
%td Enseigne
|
|
%td=@societe.enseigne
|
|
|
|
%tr
|
|
%td Type société
|
|
%td=@societe.soc_type
|
|
|
|
%tr
|
|
%td Libre 5
|
|
%td=@societe.libre5
|
|
|
|
%tr
|
|
%td Actif ?
|
|
%td=@societe.enabled ? "Oui" : "Non"
|
|
|
|
%tr
|
|
%td Adresse
|
|
%td=@societe.adresse1
|
|
|
|
%tr
|
|
%td Adresse (suite)
|
|
%td=@societe.adresse2
|
|
|
|
%tr
|
|
%td Code postal
|
|
%td=@societe.codepostal
|
|
|
|
%tr
|
|
%td Ville
|
|
%td=@societe.ville
|
|
|
|
%tr
|
|
%td Tel
|
|
%td=@societe.numtel
|
|
|
|
%tr
|
|
%td Email
|
|
%td=@societe.mail
|
|
|
|
|
|
%tr
|
|
%td
|
|
%br
|
|
%td
|
|
|
|
|
|
-if @societe.bon_type == "Bon d'achat"
|
|
|
|
|
|
%tr
|
|
%td Type de remise
|
|
%td Bon d'achat
|
|
|
|
%tr
|
|
%td Seuil
|
|
%td=number_to_currency @societe.seuil
|
|
%tr
|
|
%td Montant
|
|
%td=number_to_currency @societe.bon_amount
|
|
|
|
%tr
|
|
%td Envoyer par
|
|
%td=@societe.send_via
|
|
|
|
|
|
|
|
-else
|
|
%tr
|
|
%td Type de remise
|
|
%td Remise immédiate
|
|
|
|
%tr
|
|
%td Remises
|
|
%td=number_to_currency @societe.remise_percent, :unit => "%"
|
|
|
|
|
|
|
|
|
|
-if current_admin.super_admin
|
|
|
|
.qi_kpi
|
|
|
|
.right
|
|
|
|
=link_to ic(:plus)+" Ajouter une carte", new_admin_v_contact_path(:codesociete => @societe.socmanaginn), :remote => true, :class => "btn btn-primary"
|
|
|
|
.kpi{:style => "background:#57a36d;"}
|
|
.number
|
|
=number_to_currency @societe.cagnotte
|
|
|
|
.label
|
|
|
|
.desc
|
|
Cumul
|
|
|
|
|
|
.kpi{:style => "background:#3B7DDD;"}
|
|
.number
|
|
=number_to_currency @societe.total
|
|
|
|
.label
|
|
|
|
.desc
|
|
Historique CA
|
|
|
|
.kpi{:style => "background:#3B7DDD;"}
|
|
.number
|
|
= @societe.cartes.count
|
|
|
|
.label
|
|
|
|
.desc
|
|
Cartes
|
|
|
|
|
|
|
|
.clear
|