doc_edit : le theme est fixé par le dossier d'origine
This commit is contained in:
@@ -24,16 +24,6 @@
|
||||
<textarea class="form-control monospace-font" rows="15" cols="40" id="texte" name="texte">${doc.texte}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-2" for="theme">Thème</label>
|
||||
<div class="col-xs-6">
|
||||
<select class="form-control" id="theme" name="theme">
|
||||
<div tal:repeat="item themes">
|
||||
<option value="${item.theme}" tal:attributes="selected doc.theme==item.theme and 'selected' or None">${item.theme}</option>
|
||||
</div>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-2" for="tag1">Tag 1</label>
|
||||
<div class="col-xs-6">
|
||||
@@ -60,11 +50,18 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-2">Dossier</label>
|
||||
<div class="col-xs-7">
|
||||
<p class="form-control-static">${doc.theme}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<a href="${request.application_url}/doc_view/${doc_id}" class="btn btn-default" role="button">
|
||||
<span class="glyphicon glyphicon-chevron-left"></span> Annuler</a>
|
||||
<a href="${request.application_url}/doc_view/${doc_id}" class="btn btn-default" role="button" tal:condition="doc_id!='0'">
|
||||
<span class="glyphicon glyphicon-chevron-left"></span> Annuler</a>
|
||||
<a href="${request.application_url}/folder/article" class="btn btn-default" role="button" tal:condition="doc_id=='0'">
|
||||
<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" tal:condition="doc_id != '0'">
|
||||
|
||||
@@ -3,19 +3,20 @@
|
||||
|
||||
<p>
|
||||
<a href="${url_retour}">[ Fermer ]</a>
|
||||
<a href="${request.application_url}/doc_edit/${doc_id}" tal:condition="not layout.isAnonymous()">[ Modifier ]</a>
|
||||
<a href="${request.application_url}/doc_edit/${theme}/${doc_id}" tal:condition="not layout.isAnonymous()">[ Modifier ]</a>
|
||||
</p>
|
||||
<hr>
|
||||
<div tal:replace="structure texte">
|
||||
Page text goes here.
|
||||
</div>
|
||||
<hr>
|
||||
Dernière modification le ${doc.modif_le.strftime('%d/%m/%Y')}<br />
|
||||
Tags : ${tags}
|
||||
|
||||
<div tal:condition="not layout.isAnonymous">
|
||||
<p>
|
||||
Dernière modification le ${doc.modif_le.strftime('%d/%m/%Y')}<br />
|
||||
Tags : ${tags}
|
||||
</p>
|
||||
<p tal:condition="not layout.isAnonymous">
|
||||
Status : ${doc.statut}
|
||||
</div>
|
||||
</p>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
<div metal:use-macro="load: ../global_layout.pt">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<p>
|
||||
<a href="${request.application_url}">[ Retour ]</a>
|
||||
<a href="${request.application_url}/doc_edit/${theme}/0" tal:condition="not layout.isAnonymous()">[ Créer ]</a>
|
||||
</p>
|
||||
<div class="row">
|
||||
<table class="table">
|
||||
<tr tal:repeat="ligne docs">
|
||||
|
||||
@@ -7,13 +7,9 @@
|
||||
<br />
|
||||
<img src="${request.static_url('caotek_mesavoirs:static/img/cover_image_540max.jpg')}" alt="cover_image">
|
||||
</div>
|
||||
|
||||
<div class="col-sm-8">
|
||||
<h3>Derniers posts</h3>
|
||||
<p>
|
||||
| <a href="${request.application_url}/folder/blog">Voir tous les posts</a> |
|
||||
<a tal:condition="not layout.isAnonymous()" href="${request.application_url}/doc_edit/0">Créer un nouveau post |</a>
|
||||
</p>
|
||||
|
||||
<h3>Derniers posts</h3>
|
||||
<table class="table">
|
||||
<tr tal:repeat="ligne items">
|
||||
<td>${ligne.cree_le.strftime("%d %b")}</td>
|
||||
|
||||
Reference in New Issue
Block a user