dossier_view.pt : remplacer panels par tabs
This commit is contained in:
@@ -113,17 +113,19 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a data-toggle="tab" href="#tab_suivi"><b>SUIVI du DOSSIER</b></a></li>
|
||||
<li tal:condition="documents">
|
||||
<a data-toggle="tab" href="#tab_documents"><b>DEVIS - FACTURES</b></a></li>
|
||||
<li tal:condition="docs_attaches">
|
||||
<a data-toggle="tab" href="#tab_attaches"><b>DOCUMENTS ATTACHES</b></a></li>
|
||||
<li tal:condition="nodossier.startswith('PL')">
|
||||
<a data-toggle="tab" href="#tab_rdf"><b>RAPPORTS DE RDF</b></a></li>
|
||||
</ul>
|
||||
<!-- PANEL SUIVI -->
|
||||
<div class="panel-group" id="accordion">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#panel-suivi">
|
||||
<span class="glyphicon glyphicon-plus"></span> SUIVI du DOSSIER</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="panel-suivi" class="panel-collapse collapse">
|
||||
<div class="panel-body">
|
||||
<div class="tab-content">
|
||||
<div id="tab_suivi" class="tab-pane fade in active">
|
||||
<h3>SUIVI du DOSSIER</h3>
|
||||
<p>
|
||||
<a class="btn btn-success" role="button" href="${request.route_url('suivi_edit', nodossier=nodossier, nolig='0')}">
|
||||
<span class="glyphicon glyphicon-plus"></span> Nouvelle ligne</a>
|
||||
@@ -167,19 +169,66 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- PANEL DOCUMENTS -->
|
||||
<div id="tab_documents" class="tab-pane fade">
|
||||
<h3>DEVIS - FACTURES</h3>
|
||||
<table class="table table-bordered table-condensed">
|
||||
<tr>
|
||||
<th>Numéro</th>
|
||||
<th>Date</th>
|
||||
<th>Client</th>
|
||||
<th class="text-right">Montant</th>
|
||||
<th class="text-center">Statut</th>
|
||||
</tr>
|
||||
<tr tal:repeat="detail documents">
|
||||
<td>
|
||||
<a href="/devis_view/${detail.nodossier}">${detail.nodossier}</a>
|
||||
</td>
|
||||
<td>${detail.date.strftime('%d-%m-%Y')}</td>
|
||||
<td>${detail.nomcli}</td>
|
||||
<td class="text-right">${layout.to_euro(detail.montant)}</td>
|
||||
<td class="text-center">${detail.status}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- PANEL RDF -->
|
||||
<div class="panel panel-default" tal:condition="nodossier.startswith('PL')">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#panel-rdf">
|
||||
<span class="glyphicon glyphicon-plus"></span> RECHERCHE DE FUITE</a>
|
||||
</h4>
|
||||
<!-- PANEL DOCS ATTACHES -->
|
||||
<div id="tab_attaches" class="tab-pane fade">
|
||||
<h3>DOCUMENTS ATTACHES</h3>
|
||||
<p>
|
||||
<a href="${request.application_url}/upload_doc/${nodossier}" class="btn btn-success" role="button">
|
||||
<span class="glyphicon glyphicon-cloud-upload"></span> Ajouter un document</a>
|
||||
</p>
|
||||
<table class="table table-bordered table-condensed">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Nom du fichier</th>
|
||||
<th class="text-right">Taille</th>
|
||||
<th>Crée le</th>
|
||||
<th class="text-center">par</th>
|
||||
</tr>
|
||||
<tr tal:repeat="detail docs_attaches">
|
||||
<td class="text-center">
|
||||
<span class="glyphicon glyphicon-file" tal:condition="detail.nomfichier[-3:]=='pdf'"></span>
|
||||
<span class="glyphicon glyphicon-picture" tal:condition="detail.nomfichier.lower()[-3:]=='jpg'"></span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="${docs_url}${detail.nomrep}/${detail.societe}/${detail.nochantier}/${detail.nomfichier}"
|
||||
target="popup"
|
||||
onclick="window.open('${docs_url}${detail.nomrep}/${detail.societe}/${detail.nochantier}/${detail.nomfichier},'popup','width=900,height=768'); return false;">
|
||||
${detail.nomfichier}
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-right">${detail.taillefichier}</td>
|
||||
<td>${detail.cree_le.strftime('%d-%m-%Y')}</td>
|
||||
<td class="text-center">${detail.usermaj}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="panel-rdf" class="panel-collapse collapse">
|
||||
<div class="panel-body">
|
||||
<!-- PANEL RDF -->
|
||||
<div id="tab_rdf" class="tab-pane fade">
|
||||
<h3>RECHERCHE DE FUITE</h3>
|
||||
<p>
|
||||
<a class="btn btn-success" role="button" href="${request.route_url('rdf_edit', nodossier=nodossier, date_inter='new')}">
|
||||
<span class="glyphicon glyphicon-plus"></span> Nouveau rapport</a>
|
||||
@@ -205,75 +254,9 @@
|
||||
<td>${rapport.modif_le.strftime('%d-%m-%Y')} - ${rapport.auteur_code}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- PANEL DOCUMENTS -->
|
||||
<div class="panel panel-default" tal:condition="documents">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#panel-documents">
|
||||
<span class="glyphicon glyphicon-plus"></span> DEVIS - FACTURES</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="panel-documents" class="panel-collapse collapse">
|
||||
<div class="panel-body">
|
||||
<table class="table table-bordered table-condensed">
|
||||
<tr>
|
||||
<th>Numéro</th>
|
||||
<th>Date</th>
|
||||
<th>Client</th>
|
||||
<th class="text-right">Montant</th>
|
||||
<th class="text-center">Statut</th>
|
||||
</tr>
|
||||
<tr tal:repeat="detail documents">
|
||||
<td>
|
||||
<a href="/devis_view/${detail.nodossier}">${detail.nodossier}</a>
|
||||
</td>
|
||||
<td>${detail.date.strftime('%d-%m-%Y')}</td>
|
||||
<td>${detail.nomcli}</td>
|
||||
<td class="text-right">${layout.to_euro(detail.montant)}</td>
|
||||
<td class="text-center">${detail.status}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- PANEL DOCS ATTACHES -->
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#panel-attaches">
|
||||
<span class="glyphicon glyphicon-plus"></span> DOCUMENTS ATTACHES</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="panel-attaches" class="panel-collapse collapse">
|
||||
<div class="panel-body">
|
||||
<p>
|
||||
<a href="${request.application_url}/upload_doc/${nodossier}" class="btn btn-success" role="button">
|
||||
<span class="glyphicon glyphicon-cloud-upload"></span> Ajouter un document</a>
|
||||
</p>
|
||||
<ul>
|
||||
<div tal:repeat="detail docs_attaches">
|
||||
<li>
|
||||
<span class="glyphicon glyphicon-file" tal:condition="detail.nomfichier[-3:]=='pdf'"></span>
|
||||
<span class="glyphicon glyphicon-picture" tal:condition="detail.nomfichier[-3:]=='jpg'"></span>
|
||||
<a href="${docs_url}${detail.nomrep}/${detail.societe}/${detail.nochantier}/${detail.nomfichier}"
|
||||
target="popup"
|
||||
onclick="window.open('${docs_url}${detail.nomrep}/${detail.societe}/${detail.nochantier}/${detail.nomfichier},'popup','width=900,height=768'); return false;">
|
||||
${detail.nomfichier}
|
||||
</a>
|
||||
- crée le ${detail.cree_le.strftime('%d-%m-%Y')} par ${detail.usermaj}
|
||||
</li>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</metal:block>
|
||||
|
||||
@@ -728,7 +728,7 @@ def demandes(request):
|
||||
liste=[]
|
||||
# lire les demandes de la MAIF puis de DOMUS
|
||||
demandes_afficher(conn, mbx_name, mbx_search1, liste)
|
||||
# demandes_afficher(conn, mbx_name, mbx_search2, liste)
|
||||
demandes_afficher(conn, mbx_name, mbx_search2, liste)
|
||||
# messages lus
|
||||
msglus = bool(liste)
|
||||
conn.logout()
|
||||
|
||||
Reference in New Issue
Block a user