85 lines
2.1 KiB
Smarty
85 lines
2.1 KiB
Smarty
{include file="_head.tpl" title="Client — %s"|args:$plugin.name current="plugin_%s"|args:$plugin.id js=0}
|
|
{include file="%s/templates/_menu_client.tpl"|args:$plugin_root current="client"}
|
|
|
|
<dl class="describe">
|
|
<dt>Numéro de client</dt>
|
|
<dd>{$client.id}</dd>
|
|
|
|
|
|
<dt>Nom</dt>
|
|
<dd>{$client.nom|escape|rtrim|nl2br}
|
|
|
|
<dt>Adresse</dt>
|
|
<dd>{$client.adresse|escape|rtrim|nl2br}</dd>
|
|
|
|
<dt>Ville</dt>
|
|
<dd>{$client.ville|escape|rtrim|nl2br}</dd>
|
|
|
|
<dt>Code postal</dt>
|
|
<dd>{$client.code_postal|escape|rtrim|nl2br}</dd>
|
|
|
|
<dt>Adresse électronique</dt>
|
|
<dd>
|
|
{if empty($client.email)}
|
|
<em>(Non renseigné)</em>
|
|
{else}
|
|
<a href="mailto:{$client.email|escape:'url'}">{$client.email}</a>
|
|
{/if}
|
|
</dd>
|
|
|
|
<dt>Numéro de téléphone</dt>
|
|
<dd>
|
|
{if empty($client.telephone)}
|
|
<em>(Non renseigné)</em>
|
|
{else}
|
|
<a href="tel:{$client.telephone}">{$client.telephone}</a>
|
|
{/if}
|
|
</dd>
|
|
|
|
<dt>Date d'ajout</dt>
|
|
<dd>{$client.date_creation|date:'d/m/Y'}</dd>
|
|
|
|
</dl>
|
|
|
|
{if $docs}
|
|
<div style="display: block;">
|
|
<h4>Documents associés</h4>
|
|
<table class="list">
|
|
<thead>
|
|
<td>Type</td>
|
|
<td>Numéro</td>
|
|
<td>Emission</td>
|
|
<td>Echéance</td>
|
|
<td>Réglée</td>
|
|
<td>Archivée</td>
|
|
<td>Moyen paiement</td>
|
|
<td>Contenu</td>
|
|
<td>Total</td>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$docs item=facture}
|
|
<tr>
|
|
<td>{$f_obj->types[$facture.type_facture]['label'] }</td>
|
|
<td><a href="{$plugin_admin_url}facture.php?id={$facture.id}">{$facture.numero}</a></td>
|
|
<td>{$facture.date_emission|date:'d/m/Y'}</td>
|
|
<td>{$facture.date_echeance|date:'d/m/Y'}</td>
|
|
<td>{$facture.reglee}</td>
|
|
<td>{$facture.archivee}</td>
|
|
<td>{$facture.moyen_paiement}</td>
|
|
<td>
|
|
{foreach from=$facture.contenu item=contenu}
|
|
{$contenu.designation} : {$contenu.prix|escape|money_currency}
|
|
{/foreach}
|
|
</td>
|
|
<td>{$facture.total|escape|money_currency}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
|
|
</table>
|
|
</div>
|
|
{else}
|
|
<p class="alert block">Ce client n'a pas de document associé.</p>
|
|
{/if}
|
|
|
|
{include file="_foot.tpl"} |