ajout changement statut devis
This commit is contained in:
@@ -1,99 +1,157 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
<br />
|
||||
<!-- ENTETE -->
|
||||
<div class="row">
|
||||
<!-- CHANTIER -->
|
||||
<div class="col-md-6">
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
<td><h4>CHANTIER</h4><h4 class="text-primary">${entete.societe}-${entete.nochantier}</h4>
|
||||
</td>
|
||||
<td>
|
||||
<h4>${entete.C_QUALITE} ${entete.C_NOM}</h4>
|
||||
${entete.C_ADR}<br />
|
||||
<span tal:condition="entete.C_ADR2">${entete.C_ADR2}<br /></span>
|
||||
${entete.C_CP} ${entete.C_VILLE}<br />
|
||||
${entete.C_EMAIL}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Etage - Code<br />
|
||||
Tél. domicile - prof.<br />
|
||||
Tél. mobile - fax
|
||||
</td>
|
||||
<td>
|
||||
${entete.C_ETAGE} - ${entete.C_CODE}<br />
|
||||
${entete.C_TEL1} - ${entete.C_TEL2}<br />
|
||||
${entete.C_TELP} - ${entete.C_FAX}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- Mon compte -->
|
||||
<div class="col-md-6 ${bg_color}">
|
||||
<table class="table table-condensed ">
|
||||
<tr>
|
||||
<td><h4>CLIENT</h4></td>
|
||||
<td>
|
||||
<h4>${entete.QUALITE} ${entete.NOM}</h4>
|
||||
${entete.ADRESSE}<br />
|
||||
<span tal:condition="entete.ADRESSE2">${entete.ADRESSE2}<br /></span>
|
||||
${entete.CP} ${entete.VILLE}<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Responsable<br />
|
||||
Tél. 1 - 2<br />
|
||||
Tél. mobile - fax
|
||||
</td>
|
||||
<td>
|
||||
${entete.NOMRESP}<br />
|
||||
${entete.TEL1} - ${entete.TEL2}<br />
|
||||
${entete.TELP} - ${entete.FAX}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<h4>Statut : ${entete.STATUS}</h4>
|
||||
</div> <!-- row -->
|
||||
<!-- ENTETE entete -->
|
||||
<table class="table table-bordered table-condensed">
|
||||
<tr class="well">
|
||||
<th class="text-right">Total HT</th>
|
||||
<th class="text-right">Total TVA</th>
|
||||
<th class="text-right">Total TTC</th>
|
||||
<th class="text-right">TVA</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-right">${layout.to_euro(entete.TOTALHT)}</td>
|
||||
<td class="text-right">${layout.to_euro(entete.TOTALTVA)}</td>
|
||||
<td class="text-right">${layout.to_euro(entete.TOTALTTC)}</td>
|
||||
<td class="text-right">${entete.TAUXTVA} %</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table table-bordered table-condensed">
|
||||
<tr class="well">
|
||||
<th>Réf</th>
|
||||
<th>Désignation</th>
|
||||
<th class="text-right">Qté</th>
|
||||
<th class="text-right">PU HT</th>
|
||||
<th class="text-right">Montant HT</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr tal:repeat="detail details">
|
||||
<td>${detail.REF}</td>
|
||||
<td>${detail.LIB}</td>
|
||||
<td class="text-right">${layout.to_euro(detail.QTE)}</td>
|
||||
<td class="text-right">${layout.to_euroz(detail.PRIXHT)}</td>
|
||||
<td class="text-right">${layout.to_euroz(detail.MTHT)}</td>
|
||||
<td class="text-center">${detail.USERMAJ}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</metal:block>
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
<br />
|
||||
<!-- ENTETE -->
|
||||
<div class="row">
|
||||
<!-- CHANTIER -->
|
||||
<div class="col-md-6">
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
<td><h4>CHANTIER</h4><h4 class="text-primary">${entete.societe}-${entete.nochantier}</h4>
|
||||
</td>
|
||||
<td>
|
||||
<h4>${entete.C_QUALITE} ${entete.C_NOM}</h4>
|
||||
${entete.C_ADR}<br />
|
||||
<span tal:condition="entete.C_ADR2">${entete.C_ADR2}<br /></span>
|
||||
${entete.C_CP} ${entete.C_VILLE}<br />
|
||||
${entete.C_EMAIL}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Etage - Code<br />
|
||||
Tél. domicile - prof.<br />
|
||||
Tél. mobile - fax
|
||||
</td>
|
||||
<td>
|
||||
${entete.C_ETAGE} - ${entete.C_CODE}<br />
|
||||
${entete.C_TEL1} - ${entete.C_TEL2}<br />
|
||||
${entete.C_TELP} - ${entete.C_FAX}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- Mon compte -->
|
||||
<div class="col-md-6 ${bg_color}">
|
||||
<table class="table table-condensed ">
|
||||
<tr>
|
||||
<td><h4>CLIENT</h4></td>
|
||||
<td>
|
||||
<h4>${entete.QUALITE} ${entete.NOM}</h4>
|
||||
${entete.ADRESSE}<br />
|
||||
<span tal:condition="entete.ADRESSE2">${entete.ADRESSE2}<br /></span>
|
||||
${entete.CP} ${entete.VILLE}<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Responsable<br />
|
||||
Tél. 1 - 2<br />
|
||||
Tél. mobile - fax
|
||||
</td>
|
||||
<td>
|
||||
${entete.NOMRESP}<br />
|
||||
${entete.TEL1} - ${entete.TEL2}<br />
|
||||
${entete.TELP} - ${entete.FAX}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h4>Statut : ${entete.libelle}</h4>
|
||||
<div tal:condition="type_doc=='DE'">
|
||||
<p>Dernière modif. le <b>${entete.DATEMAJ.strftime('%d/%m/%Y à %H:%M')}</b> par <b>${entete.USERMAJ}</b></p>
|
||||
<p>
|
||||
<a class="btn btn-warning" role="button" href="#"
|
||||
data-toggle="modal" data-target="#confirmCloture"><span class="glyphicon glyphicon-check"></span> Modif. statut</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div> <!-- row -->
|
||||
<!-- ENTETE entete -->
|
||||
<table class="table table-bordered table-condensed">
|
||||
<tr class="well">
|
||||
<th class="text-right">Total HT</th>
|
||||
<th class="text-right">Total TVA</th>
|
||||
<th class="text-right">Total TTC</th>
|
||||
<th class="text-right">TVA</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-right">${layout.to_euro(entete.TOTALHT)}</td>
|
||||
<td class="text-right">${layout.to_euro(entete.TOTALTVA)}</td>
|
||||
<td class="text-right">${layout.to_euro(entete.TOTALTTC)}</td>
|
||||
<td class="text-right">${entete.TAUXTVA} %</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table table-bordered table-condensed">
|
||||
<tr class="well">
|
||||
<th>Réf</th>
|
||||
<th>Désignation</th>
|
||||
<th class="text-right">Qté</th>
|
||||
<th class="text-right">PU HT</th>
|
||||
<th class="text-right">Montant HT</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr tal:repeat="detail details">
|
||||
<td>${detail.REF}</td>
|
||||
<td>${detail.LIB}</td>
|
||||
<td class="text-right">${layout.to_euro(detail.QTE)}</td>
|
||||
<td class="text-right">${layout.to_euroz(detail.PRIXHT)}</td>
|
||||
<td class="text-right">${layout.to_euroz(detail.MTHT)}</td>
|
||||
<td class="text-center">${detail.USERMAJ}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- Modal : Confirmation CLOTURE -->
|
||||
<div class="modal fade" id="confirmCloture" role="dialog" aria-labelledby="confirmClotureLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title">Clôturer le devis</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<!-- The form is placed inside the body of modal -->
|
||||
<form id="add_justif-form" class="form-horizontal" action="${url}" method="post">
|
||||
<div class="form-group">
|
||||
<p class="text-center"><b>Voulez-vous changer le status du devis ?</b></p>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label class="control-label col-xs-4" for="status">Sélectionner le statut :</label>
|
||||
<div class="col-xs-8">
|
||||
<select class="form-control" id="status" name="status">
|
||||
<div tal:repeat="item status">
|
||||
<option tal:attributes="selected entete.STATUS==item.code and 'selected' or None">${item.code} | ${item.libelle}</option>
|
||||
</div>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<label class="control-label col-xs-4" for="motif">Motif :</label>
|
||||
<div class="col-xs-8">
|
||||
<input class="form-control" type="text" id="motif" name="motif" value=""
|
||||
placeholder="65 caractères maximum"
|
||||
data-fv-notempty="true"
|
||||
data-fv-notempty-message="Veuillez remplir un motif"
|
||||
data-fv-stringlength="true"
|
||||
data-fv-stringlength-max="65"
|
||||
data-fv-stringlength-message="65 caractères maximum"/>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
||||
<button type="submit" class="btn btn-warning" name="form.close">Clôturer</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</metal:block>
|
||||
|
||||
Reference in New Issue
Block a user