refined archives templates by thmes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user