refined archives templates by thmes

This commit is contained in:
2020-08-21 16:25:31 +02:00
parent a46587d637
commit df3eb30846
7 changed files with 37 additions and 25 deletions

View File

@@ -1,10 +1,24 @@
<div metal:use-macro="load: global_layout.pt">
<div metal:fill-slot="content">
<div class="row" tal:condition="not layout.isAnonymous()">
<form method="post" id="frm">
<div class="form-group col-xs-4">
<select class="form-control" name="theme" onChange="$('#frm').submit()">
<div tal:repeat="item themes">
<option value="${item.theme}" tal:attributes="selected theme == item.theme and 'selected' or None">
${item.theme}
</option>
</div>
</select>
</div>
<div class="col-xs-8">
<a role="button" class="btn btn-success" href="${request.application_url}/doc_edit/0">Créer un nouveau post</a>
</div>
</form>
</div>
<div class="row">
<p tal:condition="not layout.isAnonymous()">
<a href="${request.application_url}/doc_edit/0">Créer un nouveau post</a>
</p>
<table class="table">
<tr tal:repeat="ligne docs">
<td><a href="/doc_view/${ligne.doc_id}"><b>${ligne.intitule}</b></a></td>