Files
aem_moniteurs/aem_gestion/templates/parametres/justifs_list.pt
2023-06-22 10:34:18 +02:00

42 lines
1.1 KiB
XML

<metal:block use-macro="main_template">
<div metal:fill-slot="content">
<form method="POST" id="frm" class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-1">Type : </label>
<div class="col-sm-5">
<select class="form-control" id="type" name="type" onChange="$('#frm').submit()">
<tal:block tal:repeat="item types">
<option value="${item}" tal:attributes="selected type==item and 'selected' or None">${item}</option>
</tal:block>
</select>
</div>
<div class="col-sm-5">
<a href="justif_edit/0" class="btn btn-success" role="button">
<span class="glyphicon glyphicon-plus"></span>&nbsp;Nouveau document</a>
</div>
</div>
</form>
<table class="table table-condensed table-striped table-bordered">
<tr>
<th>Code</th>
<th>Intitulé</th>
<th>Conditions</th>
</tr>
<tr tal:repeat="ligne justifs">
<td><a href="justif_edit/${ligne.CODE}">${ligne.CODE}</a></td>
<td>${ligne.LIBELLE}</td>
<td>${ligne.conditions}</td>
</tr>
</table>
<br />
<br />
</div>
</metal:block>