rdf_edit.pt : ajout signature
This commit is contained in:
@@ -62,7 +62,8 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<h4 class="text-center">ANALYSE</h4>
|
||||
<br />
|
||||
<h4 class="text-center text-primary">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">
|
||||
@@ -144,6 +145,7 @@
|
||||
data-fv-stringlength-message="150 caractères maximum" />
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<h4 class="text-center">RAPPORT</h4>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="degats">Constatation des dégâts occasionnés</label>
|
||||
@@ -154,6 +156,7 @@
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<h4 class="text-center">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>
|
||||
@@ -200,6 +203,7 @@
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<h4 class="text-center">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>
|
||||
@@ -257,6 +261,7 @@
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<h4 class="text-center">PHOTOS</h4>
|
||||
<p>
|
||||
<a href="${request.application_url}/upload_doc/${nodossier}" class="btn btn-success" role="button">
|
||||
@@ -280,16 +285,35 @@
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<p>Signature du client</p>
|
||||
</div>
|
||||
<label>Signature du client</label>
|
||||
<div tal:condition="not rapport.signature_svg">
|
||||
<div id="signature"></div>
|
||||
<p>
|
||||
<button class="btn btn-default" type="button" id="clear">
|
||||
<span class="glyphicon glyphicon-erase"></span> Effacer</button>
|
||||
<button class="btn btn-success" type="button" id="save">
|
||||
<span class="glyphicon glyphicon-ok"></span> Valider</button>
|
||||
</p>
|
||||
<input hidden type="text" id="signature_svg" name="signature_svg" value="${rapport.signature_svg}" />
|
||||
</div>
|
||||
<div tal:condition="rapport.signature_svg">
|
||||
<p>
|
||||
<br />
|
||||
<div id="signature_img"></div>
|
||||
<br/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<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 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>
|
||||
|
||||
@@ -298,6 +322,22 @@
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$sig = $("#signature").jSignature({color:"MidnightBlue","background-color":"LightYellow",width:350,height:150});
|
||||
|
||||
$('#save').click(function() {
|
||||
datapair = $sig.jSignature("getData","svg");
|
||||
$('#signature_svg').val(datapair);
|
||||
});
|
||||
|
||||
$('#clear').click(function() {
|
||||
$sig.jSignature("clear");
|
||||
});
|
||||
//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