38 lines
1.3 KiB
XML
38 lines
1.3 KiB
XML
<metal:block use-macro="main_template">
|
|
<div metal:fill-slot="content">
|
|
|
|
<div class="alert alert-danger" tal:condition="message" tal:content="message" />
|
|
|
|
<div class="row">
|
|
<form id="text_edit-form" action="${url}" method="post">
|
|
<div class="form-group">
|
|
<a href="${request.application_url}/dossier_view/${nodossier}" class="btn btn-default" role="button">
|
|
<span class="glyphicon glyphicon-chevron-left"></span> Annuler</a>
|
|
<button class="btn btn-primary" type="submit" name="form.submitted">
|
|
<span class="glyphicon glyphicon-ok"></span> Enregistrer</button>
|
|
<button class="btn btn-warning" type="submit" name="form.deleted">
|
|
<span class="glyphicon glyphicon-remove"></span> Supprimer</button>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label" for="text-text">Tapez ou dictez le texte :</label>
|
|
<textarea class="form-control monospace-font" rows="30" cols="40" id="notes" name="notes">${note.notes}</textarea>
|
|
</div>
|
|
<p>Modifié le : ${note.modif_le.strftime('%d-%m-%Y')} par ${note.usermaj}
|
|
</p>
|
|
</form>
|
|
</div> <!-- row -->
|
|
<br />
|
|
<br />
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
$('#text_edit-form').formValidation();
|
|
$('form input').on('keypress', function(e) {
|
|
return e.which !== 13;
|
|
});
|
|
});
|
|
</script>
|
|
|
|
</div>
|
|
</metal:block>
|