refonte de doc_list et doc_view
This commit is contained in:
20
caotek_mesavoirs/templates/archives.pt
Normal file
20
caotek_mesavoirs/templates/archives.pt
Normal file
@@ -0,0 +1,20 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<div class="row">
|
||||
<table class="table">
|
||||
<tr tal:repeat="ligne docs">
|
||||
<td><a href="/doc_view/${ligne.doc_id}"><b>${ligne.intitule}</b></a></td>
|
||||
<td>${ligne.tag1}</td>
|
||||
<td>${ligne.cree_le.strftime("%d-%m-%Y")}</td>
|
||||
<td>${ligne.modif_le.strftime("%d-%m-%Y")}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
|
||||
</metal:block>
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<div class="row">
|
||||
<p>
|
||||
<a href="doc_edit/0" class="btn btn-success" role="button">
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
Créér une nouvelle doc</a>
|
||||
</p>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-condensed table-striped table-bordered">
|
||||
<tr>
|
||||
<th>MEMOS</th>
|
||||
</tr>
|
||||
|
||||
<tr tal:repeat="ligne memos">
|
||||
<td><a href="doc_view/${ligne.doc_id}">${ligne.intitule}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table table-condensed table-striped table-bordered">
|
||||
<tr>
|
||||
<th>DOCUMENTS</th>
|
||||
</tr>
|
||||
|
||||
<tr tal:repeat="ligne docs">
|
||||
<td><a href="doc_view/${ligne.doc_id}">${ligne.intitule}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
|
||||
</metal:block>
|
||||
|
||||
@@ -1,19 +1,14 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<br />
|
||||
<a href="${request.application_url}/doc_list" class="btn btn-default" role="button">
|
||||
<span class="glyphicon glyphicon-chevron-left"></span> Fermer</a>
|
||||
<a href="${request.application_url}/doc_edit/${doc_id}" class="btn btn-primary" role="button">
|
||||
<span class="glyphicon glyphicon-pencil"></span> Modifier</a>
|
||||
<br />
|
||||
<hr>
|
||||
<div tal:replace="structure texte">
|
||||
Page text goes here.
|
||||
</div>
|
||||
<hr>
|
||||
<br />
|
||||
<br />
|
||||
<a href="${url_retour}">[ Fermer ]</a>
|
||||
<a href="${request.application_url}/doc_edit/${doc_id}" tal:condition="not layout.isAnonymous">[ Modifier ]</a>
|
||||
<br />
|
||||
<hr>
|
||||
<div tal:replace="structure texte">
|
||||
Page text goes here.
|
||||
</div>
|
||||
<hr>
|
||||
<br />
|
||||
<br />
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -64,7 +64,7 @@
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<hr>
|
||||
<br />
|
||||
<div class="container">
|
||||
<h1 tal:condition="request.path != '/'">${page_title}</h1>
|
||||
<div id="messages" tal:attributes="class request.is_xhr and 'ajax-replace' or None">
|
||||
@@ -81,9 +81,11 @@
|
||||
</div>
|
||||
|
||||
<div metal:define-slot="content" />
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<footer class="container-fluid bg-footer">
|
||||
<div class="row">
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<div tal:condition="message" tal:content="message" class="alert alert-danger" />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<form id="change-password-form" action="${url}" method="post" tal:condition="member"
|
||||
data-fv-framework="bootstrap"
|
||||
data-fv-icon-valid="glyphicon glyphicon-ok"
|
||||
data-fv-icon-invalid="glyphicon glyphicon-remove"
|
||||
data-fv-icon-validating="glyphicon glyphicon-refresh">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="old_password">Mot de passe actuel</label>
|
||||
<input class="form-control" type="password" size="10" name="old_password"
|
||||
data-fv-notempty="true"
|
||||
data-fv-notempty-message="Le mot de passe est obligatoire" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="new_password1">Nouveau mot de passe</label>
|
||||
<input class="form-control" type="password" size="10" name="new_password1"
|
||||
data-fv-notempty="true"
|
||||
data-fv-notempty-message="Le mot de passe est obligatoire"
|
||||
|
||||
data-fv-stringlength="true"
|
||||
data-fv-stringlength-min="6"
|
||||
data-fv-stringlength-message="Le mot de passe doit avoir au moins 6 charactères" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="new_password2">Confirmer le mot de passe</label>
|
||||
<input class="form-control" type="password" size="10" name="new_password2"
|
||||
data-fv-identical="true"
|
||||
data-fv-identical-field="new_password1"
|
||||
data-fv-identical-message="Le mot de passe et sa confirmation ne sont pas identiques" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" type="submit" name="form.submitted">Changer le mot de passe</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div> <!-- row -->
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#change-password-form').formValidation();
|
||||
$('form input').on('keypress', function(e) {
|
||||
return e.which !== 13;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
</metal:block>
|
||||
70
caotek_mesavoirs/templates/members/preferences.pt
Normal file
70
caotek_mesavoirs/templates/members/preferences.pt
Normal file
@@ -0,0 +1,70 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<div tal:condition="message" tal:content="message" class="alert alert-danger" />
|
||||
|
||||
<form id="change-password-form" action="${url}" method="post" tal:condition="member"
|
||||
data-fv-framework="bootstrap"
|
||||
data-fv-icon-valid="glyphicon glyphicon-ok"
|
||||
data-fv-icon-invalid="glyphicon glyphicon-remove"
|
||||
data-fv-icon-validating="glyphicon glyphicon-refresh">
|
||||
<div class="col-md-6">
|
||||
<h3>Changer le mot de passe</h3>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="old_password">Mot de passe actuel</label>
|
||||
<input class="form-control" type="password" name="old_password"
|
||||
data-fv-notempty="true"
|
||||
data-fv-notempty-message="Le mot de passe est obligatoire" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="new_password1">Nouveau mot de passe</label>
|
||||
<input class="form-control" type="password" name="new_password1"
|
||||
data-fv-notempty="true"
|
||||
data-fv-notempty-message="Le mot de passe est obligatoire"
|
||||
|
||||
data-fv-stringlength="true"
|
||||
data-fv-stringlength-min="6"
|
||||
data-fv-stringlength-message="Le mot de passe doit avoir au moins 6 charactères" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="new_password2">Confirmer le mot de passe</label>
|
||||
<input class="form-control" type="password" name="new_password2"
|
||||
data-fv-identical="true"
|
||||
data-fv-identical-field="new_password1"
|
||||
data-fv-identical-message="Le mot de passe et sa confirmation ne sont pas identiques" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" type="submit" name="form.submitted">Changer le mot de passe</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<h3>Changer la photo Instagram</h3>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="photo_instagram">Id Instagram</label>
|
||||
<input class="form-control" type="text" name="photo_instagram" value="${member.photo_instagram}"
|
||||
data-fv-notempty="true"
|
||||
data-fv-notempty-message="L'Id est obligatoire" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" type="submit" name="form.photo">Changer la photo</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#change-password-form').formValidation();
|
||||
$('form input').on('keypress', function(e) {
|
||||
return e.which !== 13;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
</metal:block>
|
||||
@@ -8,7 +8,7 @@
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li><a href="${request.application_url}/changer_mdp">Changer mon mot de passe</a></li>
|
||||
<li><a href="${request.application_url}/preferences">Mes préférences</a></li>
|
||||
<li tal:condition="layout.isAdmin()"><a href="${request.application_url}/users_list">Gestion des membres</a></li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
Reference in New Issue
Block a user