ajout : création du rapport de RDF
This commit is contained in:
@@ -109,8 +109,8 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- PANEL SUIVI -->
|
||||
<div class="panel-group" id="accordion">
|
||||
<!-- PANEL SUIVI -->
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
@@ -165,7 +165,44 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- PANEL DOCUMENTS -->
|
||||
|
||||
<!-- 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-documents">
|
||||
<span class="glyphicon glyphicon-plus"></span> RECHERCHE DE FUITE</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="panel-documents" class="panel-collapse collapse">
|
||||
<div class="panel-body">
|
||||
<p>
|
||||
<a class="btn btn-success" role="button" href="${request.route_url('rdf_edit', nodossier=nodossier)}">
|
||||
<span class="glyphicon glyphicon-plus"></span> Nouvelle recherche</a>
|
||||
</p>
|
||||
<table class="table table-bordered table-condensed" tal:condition="rapport">
|
||||
<tr>
|
||||
<th>Numéro</th>
|
||||
<th>Date</th>
|
||||
<th>Chantier</th>
|
||||
<th>No sinistre</th>
|
||||
<th>Modif le</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/rdf_edit/${nodossier}">${rapport.nochantier}</a>
|
||||
</td>
|
||||
<td>${rapport.DATE.strftime('%d-%m-%Y')}</td>
|
||||
<td>${rapport.C_QUALITE} ${rapport.C_NOM}</td>
|
||||
<td>${rapport.NOSIN}</td>
|
||||
<td>${rapport.modif_le.strftime('%d-%m-%Y')}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- PANEL DOCUMENTS -->
|
||||
<div class="panel panel-default" tal:condition="documents">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
@@ -198,7 +235,7 @@
|
||||
</div>
|
||||
|
||||
<!-- PANEL DOCS ATTACHES -->
|
||||
<div class="panel panel-default" tal:condition="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">
|
||||
@@ -208,8 +245,8 @@
|
||||
<div id="panel-attaches" class="panel-collapse collapse">
|
||||
<div class="panel-body">
|
||||
<p>
|
||||
<a href="${request.application_url}/upload_doc/${nodossier}" class="btn btn-primary" role="button">
|
||||
<span class="glyphicon glyphicon-cloud-upload"></span> Télécharger un document</a>
|
||||
<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">
|
||||
|
||||
124
mondumas/templates/dossier/rdf_edit.pt
Normal file
124
mondumas/templates/dossier/rdf_edit.pt
Normal file
@@ -0,0 +1,124 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
<br />
|
||||
<!-- ENTETE -->
|
||||
<div class="row">
|
||||
<h4>ADRESSE d'INTERVENTION</h4>
|
||||
<table class="table table-condensed ">
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<h4>${rapport.C_QUALITE} ${rapport.C_NOM}</h4>
|
||||
${rapport.C_ADR}<br />
|
||||
<span tal:condition="rapport.C_ADR2">${rapport.C_ADR2}<br /></span>
|
||||
${rapport.C_CP} ${rapport.C_VILLE}<br />
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Assureur : <b>${rapport.NOMCLI}</b><br />
|
||||
No Sinistre : ${rapport.NOSIN}
|
||||
<br />
|
||||
Etage : ${rapport.C_ETAGE}<br />
|
||||
Téléphone : ${rapport.C_TEL1}<br />
|
||||
Mobile: ${rapport.C_TELP}<br />
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div> <!-- row -->
|
||||
|
||||
<div class="row">
|
||||
<form id="rdv_edit-form" action="${url}" method="post"
|
||||
data-fv-framework="bootstrap"
|
||||
data-fv-icon-valid="glyphicon glyphicon-ok"
|
||||
data-fv-icon-invalid="glyphicon glyphicon-remove"
|
||||
data-fv-icon-validating="glyphicon glyphicon-refresh">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="comment">Caractéristique du risque sinistré :</label>
|
||||
<select class="form-control" id="caracteristique" name="caracteristique">
|
||||
<div tal:repeat="item caracteristiques">
|
||||
<option value="${item}" tal:attributes="selected str(rapport.caracteristique)==item[0] and 'selected' or None">${item}</option>
|
||||
</div>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<h4 class="text-center">ANALYSE</h4>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="equipement">Les dommages sont-ils causés par un bien d'équipement ?</label>
|
||||
<select class="form-control" id="equipement" name="equipement">
|
||||
<div tal:repeat="item equipements">
|
||||
<option value="${item.libelle}" tal:attributes="selected str(rapport.equipement)==item.libelle and 'selected' or None">${item.libelle}</option>
|
||||
</div>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="reseau_int">Les dommages sont-ils causés par un bien d'équipement ?</label>
|
||||
<select class="form-control" id="reseau_int" name="reseau_int">
|
||||
<div tal:repeat="item reseaux_int">
|
||||
<option value="${item.libelle}" tal:attributes="selected str(rapport.reseau_int)==item.libelle and 'selected' or None">${item.libelle}</option>
|
||||
</div>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<h4 class="text-center">TRAVAUX relatifs à la DETECTION de la fuite</h4>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="descr_detect">Descriptif détection</label>
|
||||
<textarea class="form-control" rows="6" cols="40" id="descr_detect" name="descr_detect"
|
||||
data-fv-stringlength="true"
|
||||
data-fv-stringlength-max="2000"
|
||||
data-fv-stringlength-message="2000 caractères maximum">${rapport.descr_detect}
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<h4 class="text-center">TRAVAUX relatifs à la REPARATION de la fuite</h4>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="descr_repar">Descriptif réparation</label>
|
||||
<textarea class="form-control" rows="6" cols="40" id="descr_repar" name="descr_repar"
|
||||
data-fv-stringlength="true"
|
||||
data-fv-stringlength-max="2000"
|
||||
data-fv-stringlength-message="2000 caractères maximum">${rapport.descr_repar}
|
||||
</textarea>
|
||||
</div>
|
||||
<h4 class="text-center">PHOTOS</h4>
|
||||
<p>
|
||||
<a href="${request.application_url}/upload_doc/${nodossier}" class="btn btn-success" role="button">
|
||||
<span class="glyphicon glyphicon-cloud-upload"></span> Ajouter une photo</a>
|
||||
</p>
|
||||
|
||||
<h4 class="text-center">CONCLUSIONS</h4>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="conclusions">Conclusions</label>
|
||||
<textarea class="form-control" rows="6" cols="40" id="conclusions" name="conclusions"
|
||||
data-fv-stringlength="true"
|
||||
data-fv-stringlength-max="2000"
|
||||
data-fv-stringlength-message="2000 caractères maximum">${rapport.conclusions}
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label">Dern. modif le</label>
|
||||
<div>
|
||||
<p class="form-control-static">${rapport.modif_le.strftime('%d-%m-%Y %H:%M')} par ${rapport.USERMAJ}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-3 col-sm-9">
|
||||
<div class="form-group">
|
||||
<a class="btn btn-default" href="${request.route_url('dossier_view', nodossier=nodossier)}">
|
||||
<span class="glyphicon glyphicon-arrow-left"></span> Annuler</a>
|
||||
<button class="btn btn-primary" type="submit" name="form.submitted">
|
||||
<span class="glyphicon glyphicon-ok"></span> Enregistrer</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div> <!-- row -->
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
</div>
|
||||
</metal:block>
|
||||
Reference in New Issue
Block a user