added generate report in pdf format
This commit is contained in:
297
mondumas/templates/dossier/rdf_rapport.pt
Normal file
297
mondumas/templates/dossier/rdf_rapport.pt
Normal file
@@ -0,0 +1,297 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
<!-- LOGO -->
|
||||
<div class="row">
|
||||
<img src="${request.static_url('mondumas:static/img/LogoVerSanit.jpg')}" width="100%" />
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
<h1 class="text-center">Rapport de recherche de fuite</h1>
|
||||
<br />
|
||||
<br />
|
||||
<p>
|
||||
<div class="form-group">
|
||||
<label class="control-label">N° dossier</label> : ${nodossier}<br />
|
||||
<label class="control-label">N° rapport</label> : ${norapport}<br />
|
||||
<label class="control-label">Date d'intervention</label> : ${rapport.date_inter.strftime('%d-%m-%Y')}<br />
|
||||
<label class="control-label" for="rapport">Compte-rendu : </label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="rapport" value="Définitif" disabled="disabled"
|
||||
tal:attributes="checked rapport.rapport=='Définitif'">Définitif
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="rapport" value="Provisoire" disabled="disabled"
|
||||
tal:attributes="checked rapport.rapport=='Provisoire'">Provisoire
|
||||
</label>
|
||||
</div>
|
||||
</p>
|
||||
<h4 class="text-center text-primary">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 />
|
||||
Téléphone : ${rapport.C_TEL1}<br />
|
||||
Mobile: ${rapport.C_TELP}<br />
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="statut_proprio">Statut : </label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="statut_proprio" value="Propriétaire" disabled="disabled"
|
||||
tal:attributes="checked rapport.statut_proprio=='Propriétaire'">Propriétaire
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="statut_proprio" value="Non propriétaire" disabled="disabled"
|
||||
tal:attributes="checked rapport.statut_proprio=='Non propriétaire'">Non propriétaire
|
||||
</label>
|
||||
<br />
|
||||
<label class="control-label" for="comment">Caractéristique du risque sinistré :</label>
|
||||
${rapport.caracteristique}
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<h4 class="text-center text-primary">ANALYSE</h4>
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="equipement">Les dommages sont-ils causés par un bien d'équipement ?</label>
|
||||
<br /> ${rapport.equipement}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="reseau_int">Les dommages sont-ils causés par un réseau intérieur au bâtiment ?</label>
|
||||
<br /> ${rapport.reseau_int}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="reseau_ext">Les dommages sont-ils causés par un réseau extérieur au bâtiment ?</label>
|
||||
<br /> ${rapport.reseau_ext}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="anti_retour">Le bien sinistré est-il protégé par un dispositif anti-retour ? </label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="anti_retour" value="NON" disabled="disabled"
|
||||
tal:attributes="checked rapport.anti_retour=='NON'">NON
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="anti_retour" value="OUI" disabled="disabled"
|
||||
tal:attributes="checked rapport.anti_retour=='OUI'">OUI
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="reseau_local">Localisation de ces réseaux intérieurs ou extérieurs</label>
|
||||
<br /> ${rapport.reseau_local}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="element_clos">Les dommages sont-ils causés par un élément de clos du bâtiment ?</label>
|
||||
<br /> ${rapport.element_clos}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="element_couvert">Les dommages sont-ils causés par un élément couvert du bâtiment ?</label>
|
||||
<br /> ${rapport.element_couvert}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="voisin">Les dommages sont-ils causés par un bâtiment voisin ? </label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="voisin" value="NON" disabled="disabled"
|
||||
tal:attributes="checked rapport.voisin=='NON'">NON
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="voisin" value="OUI" disabled="disabled"
|
||||
tal:attributes="checked rapport.voisin=='OUI'">OUI
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="voisin_adresse">Adresse du bâtiment</label>
|
||||
<br /> ${rapport.voisin_adresse}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="voisin_coordonnees">Coordonnées propriétaire ou syndic</label>
|
||||
<br /> ${rapport.voisin_coordonnees}
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<h4 class="text-center text-primary">RAPPORT</h4>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="degats">Constatation des dégâts occasionnés :</label>
|
||||
<br /> ${rapport.degats}
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<h4 class="text-center text-primary">TRAVAUX relatifs à la DETECTION de la fuite</h4>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="detection_fuite">Détection de la fuite : </label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="detection_fuite" value="Destructif" disabled="disabled"
|
||||
tal:attributes="checked rapport.detection_fuite=='Destructif'">Destructif
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="detection_fuite" value="Non destructif" disabled="disabled"
|
||||
tal:attributes="checked rapport.detection_fuite=='Non destructif'">Non destructif
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">Mesures d'humidité : </label>
|
||||
<label class="checkbox-inline" disabled><input type="checkbox" name="sonde_capa" value="${rapport.sonde_capa}" disabled
|
||||
tal:attributes="checked rapport.sonde_capa != 0 and 'checked' or None">Sonde capacitive</label>
|
||||
<label class="checkbox-inline" disabled><input type="checkbox" name="sonde_cond" value="${rapport.sonde_cond}" disabled
|
||||
tal:attributes="checked rapport.sonde_cond != 0 and 'checked' or None">Sonde à conductivité électrique</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">Test de réseaux : </label>
|
||||
<label class="checkbox-inline" disabled><input type="checkbox" name="test_mano" value="${rapport.test_mano}" disabled
|
||||
tal:attributes="checked rapport.test_mano != 0 and 'checked' or None">Système manométrique</label>
|
||||
<label class="checkbox-inline" disabled><input type="checkbox" name="test_gaz" value="${rapport.test_gaz}" disabled
|
||||
tal:attributes="checked rapport.test_gaz != 0 and 'checked' or None">Gaz traceur</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">Visualisation : </label>
|
||||
<label class="checkbox-inline" disabled><input type="checkbox" name="visu_camera" value="${rapport.visu_camera}" disabled
|
||||
tal:attributes="checked rapport.visu_camera != 0 and 'checked' or None">Caméra infrarouge</label>
|
||||
<label class="checkbox-inline" disabled><input type="checkbox" name="visu_endoscope" value="${rapport.visu_endoscope}" disabled
|
||||
tal:attributes="checked rapport.visu_endoscope != 0 and 'checked' or None">Endoscope à fibre optique</label>
|
||||
<label class="checkbox-inline" disabled><input type="checkbox" name="visu_tele" value="${rapport.visu_tele}" disabled
|
||||
tal:attributes="checked rapport.visu_tele != 0 and 'checked' or None">Endoscope à fibre optique</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">Recherche de réseaux : </label>
|
||||
<label class="checkbox-inline" disabled><input type="checkbox" name="rech_magnetique" value="${rapport.rech_magnetique}" disabled
|
||||
tal:attributes="checked rapport.rech_magnetique != 0 and 'checked' or None">Système électro magnétique</label>
|
||||
<label class="checkbox-inline" disabled><input type="checkbox" name="rech_accoustique" value="${rapport.rech_accoustique}" disabled
|
||||
tal:attributes="checked rapport.rech_accoustique != 0 and 'checked' or None">Système électro accoustique</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">Tests d'étanchéité : </label>
|
||||
<label class="checkbox-inline" disabled><input type="checkbox" name="test_accoustique" value="${rapport.test_accoustique}" disabled
|
||||
tal:attributes="checked rapport.test_accoustique != 0 and 'checked' or None">Ecoute électro accoustique</label>
|
||||
<label class="checkbox-inline" disabled><input type="checkbox" name="test_mise_en_eau" value="${rapport.test_mise_en_eau}" disabled
|
||||
tal:attributes="checked rapport.test_mise_en_eau != 0 and 'checked' or None">Mise en eau</label>
|
||||
<label class="checkbox-inline" disabled><input type="checkbox" name="test_fumigenes" value="${rapport.test_fumigenes}" disabled
|
||||
tal:attributes="checked rapport.test_fumigenes != 0 and 'checked' or None">Fumigènes</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="descr_detect">Descriptif de la détection</label>
|
||||
<br /> ${rapport.descr_detect}
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<h4 class="text-center text-primary">TRAVAUX relatifs à la REPARATION de la fuite</h4>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="visite1ere">La réparation est-elle réalisée dans le cadre de la 1ère visite ? </label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="visite1ere" value="NON" disabled="disabled"
|
||||
tal:attributes="checked rapport.visite1ere=='NON'">NON
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="visite1ere" value="OUI" disabled="disabled"
|
||||
tal:attributes="checked rapport.visite1ere=='OUI'">OUI
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="descr_repar">Descriptif de la solution de réparation</label>
|
||||
<br /> ${rapport.descr_repar}
|
||||
</div>
|
||||
|
||||
<p class="text-center"><b>Constation de situation de blocage</b></p>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="blocage_acces">Impossibilité d'accès dans le local où la recherche doi être réalisée </label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="blocage_acces" value="NON" disabled="disabled"
|
||||
tal:attributes="checked rapport.blocage_acces=='NON'">NON
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="blocage_acces" value="OUI" disabled="disabled"
|
||||
tal:attributes="checked rapport.blocage_acces=='OUI'">OUI
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="blocage_rdf_differente">Nécessité de faire une recherchede fuite destructive dans le local du responsable différent de la victime </label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="blocage_rdf_differente" value="NON" disabled="disabled"
|
||||
tal:attributes="checked rapport.blocage_rdf_differente=='NON'">NON
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="blocage_rdf_differente" value="OUI" disabled="disabled"
|
||||
tal:attributes="checked rapport.blocage_rdf_differente=='OUI'">OUI
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="blocage_rdf_infructueuse">Recherche de fuite infructueuse </label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="blocage_rdf_infructueuse" value="NON" disabled="disabled"
|
||||
tal:attributes="checked rapport.blocage_rdf_infructueuse=='NON'">NON
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="blocage_rdf_infructueuse" value="OUI" disabled="disabled"
|
||||
tal:attributes="checked rapport.blocage_rdf_infructueuse=='OUI'">OUI
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="blocage_pluralite">Pluralité de locaux sinistrés autre que le local à l'origine de la fuite </label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="blocage_pluralite" value="NON" disabled="disabled"
|
||||
tal:attributes="checked rapport.blocage_pluralite=='NON'">NON
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="blocage_pluralite" value="OUI" disabled="disabled"
|
||||
tal:attributes="checked rapport.blocage_pluralite=='OUI'">OUI
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<h4 class="text-center text-primary">PHOTOS</h4>
|
||||
<br />
|
||||
<div tal:repeat="detail photos">
|
||||
<img src="${docs_url}${detail.nomrep}/${detail.societe}/${nochantier}/${norapport}/${detail.nomfichier}" align="center" />
|
||||
</div>
|
||||
<br />
|
||||
<h4 class="text-center text-primary">CONCLUSIONS</h4>
|
||||
<div class="form-group">
|
||||
<br /> ${rapport.conclusions}
|
||||
</div>
|
||||
|
||||
</div> <!-- row -->
|
||||
<table class="table table-condensed ">
|
||||
<tr>
|
||||
<td width="40%">
|
||||
<p>
|
||||
<label>Date du rapport :</label>
|
||||
<br />${rapport.modif_le.strftime('%d-%m-%Y')}
|
||||
<br />
|
||||
<br />
|
||||
<label>Etabli par :</label>
|
||||
<br />${rapport.auteur_nom}
|
||||
</p>
|
||||
</td>
|
||||
<td width="60%">
|
||||
<label>Signature du client :</label>
|
||||
<div tal:condition="rapport.signature_svg">
|
||||
<p>
|
||||
<div id="signature_img"></div>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br/>
|
||||
<br/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
//afficher signature
|
||||
var dataString = 'data:' + '${rapport.signature_svg}'
|
||||
$('#signature_img').append("<img class='imported' src='" + dataString + "'></img>"); });
|
||||
</script>
|
||||
</div>
|
||||
</metal:block>
|
||||
Reference in New Issue
Block a user