refonte des topics

This commit is contained in:
2022-09-14 17:33:17 +02:00
parent d9e002144b
commit 5dd8916697
10 changed files with 54 additions and 39 deletions

View File

@@ -21,7 +21,8 @@
Auteur : <strong>{{ entry.author }}</strong><br>
Publié le : <strong>{{ entry.created.strftime("%d-%m-%Y - %H:%M") }}</strong><br>
{% if request.authenticated_userid %}
Topic - Tag : <strong>{{ entry.topic_id }}</strong> - <strong>{{ entry.tag }}</strong>
Topic - Tag : <strong>{{ entry.topic_id }}</strong> - <strong>{{ entry.tag }}</strong><br>
Statut : <strong>{{ entry.status }}</strong>
{% endif %}
</p>
<script>

View File

@@ -145,8 +145,8 @@
116 bd Maréchal Foch<br>
93160 NOISY LE GRAND<br>
<br>
station Bry sur Marne&nbsp;<span class="label label-danger">RER A</span><br>
arrêt Verdun&nbsp;<span class="label label-primary">Bus 220</span><br>
<span class="label label-danger">RER A</span>&nbsp;station Bry sur Marne<br>
<span class="label label-primary">Bus 220</span>&nbsp;arrêt Verdun<br>
<br>
<span class="glyphicon glyphicon-envelope"></span><br>
contact@meditation-sunyata.paris

View File

@@ -54,30 +54,30 @@
<div class="container">
<div align="center">
<span class="menu-item">
<a href="{{ request.route_url('topic', topic='FR1') }}">ENSEIGNEMENT</a>&nbsp;
<a href="{{ request.route_url('topic', topic='enseignement') }}">ENSEIGNEMENT</a>&nbsp;
</span>
<span class="menu-item">
<a href="{{ request.route_url('topic', topic='FR2') }}">PRATIQUE</a>&nbsp;
<a href="{{ request.route_url('topic', topic='pratique') }}">PRATIQUE</a>&nbsp;
</span>
<span class="menu-item">
<a href="{{ request.route_url('topic', topic='FR3') }}">QI GONG</a>&nbsp;
<a href="{{ request.route_url('topic', topic='qigong') }}">QI GONG</a>&nbsp;
</span>
<span class="menu-item">
<a href="{{ request.route_url('topic', topic='FR4') }}">SCIENCES</a>&nbsp;
<a href="{{ request.route_url('topic', topic='sciences') }}">SCIENCES</a>&nbsp;
</span>
</div>
<div align="center">
<span class="menu-item">
<a href="{{ request.route_url('topic', topic='VN1') }}">TU HỌC</a>&nbsp;
<a href="{{ request.route_url('topic', topic='tu_hoc') }}">TU HỌC</a>&nbsp;
</span>
<span class="menu-item">
<a href="{{ request.route_url('topic', topic='VN2') }}">TU TẬP</a>&nbsp;
<a href="{{ request.route_url('topic', topic='tu_tap') }}">TU TẬP</a>&nbsp;
</span>
<span class="menu-item">
<a href="{{ request.route_url('topic', topic='FR3') }}">KHÍ CÔNG</a>&nbsp;
<a href="{{ request.route_url('topic', topic='qigong') }}">KHÍ CÔNG</a>&nbsp;
</span>
<span class="menu-item">
<a href="{{ request.route_url('topic', topic='VN4') }}">KHOA HỌC</a>&nbsp;
<a href="{{ request.route_url('topic', topic='sciences') }}">KHOA HỌC</a>&nbsp;
</span>
</div>
@@ -112,7 +112,7 @@
<p class="text-center">
&copy; 2022&nbsp;-&nbsp;Méditation SUNYATA Paris
&nbsp;|&nbsp;<a href="{{ request.route_url('blog', id=1, slug='mentions-legales') }}">Mentions légales</a>
&nbsp;|&nbsp;<a href="{{ request.route_url('topic', topic='FR9') }}">A propos</a>
&nbsp;|&nbsp;<a href="{{ request.route_url('topic', topic='apropos') }}">A propos</a>
&nbsp;|&nbsp;<a href="https://www.ovhcloud.com/fr/mail/" target="__blank">Contact</a>
</p>
</div>

View File

@@ -56,13 +56,13 @@
</table>
</div>
<div class="row">
<h2>Informations</h2>
<h2>Informations système</h2>
<ul>
<li>Client addr : {{ request.client_addr }}</li>
<li>Remote addr : {{ request.remote_addr }}</li>
<li>Remote host : {{ request.remote_host }}</li>
<li>Remote port : {{ request.remote_port }}</li>
<li>Server name : {{ request.server_name }}</li>
<li>Pyramid {{ pyramid_version }}</li>
<li>WTForms {{ wtforms_version }}</li>
<li>SQLAlchemy {{ sqlalchemy_version }}</li>
<li>SQLite {{ sqlite_version }}</li>
<li>Python {{ python_version }}</li>
</ul>
</div>

View File

@@ -42,11 +42,11 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title">Supprimer la sous-rubrique</h4>
<h4 class="modal-title">Supprimer le Tag</h4>
</div>
<div class="modal-body">
<!-- The form is placed inside the body of modal -->
<p>Etes-vous certain(e) de vouloir supprimer la sous-rubrique <b>{{ form.tag_name.data }}</b> ?</p>
<p>Etes-vous certain(e) de vouloir supprimer le Tag <b>{{ form.tag_name.data }}</b> ?</p>
</div>
<div class="modal-footer">
<div class="form-group">

View File

@@ -44,7 +44,7 @@
</form>
<h3>Sous-rubriques</h3>
<h3>Liste des Tags</h3>
<p><a href="{{ request.route_url('tag_edit', topic=form.topic.data, id='0') }}" class="btn btn-success" role="button">
<span class="glyphicon glyphicon-plus"></span> Nouveau</a>
</p>
@@ -52,8 +52,8 @@
<table id="users_list" class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Sous-rubrique</th>
<th>Intitulé</th>
<th>Tag</th>
<th>Nom du tag</th>
</tr>
</thead>
{% for entry in tags %}
@@ -74,11 +74,11 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title">Supprimer la rubrique</h4>
<h4 class="modal-title">Supprimer le Topic</h4>
</div>
<div class="modal-body">
<!-- The form is placed inside the body of modal -->
<p>Etes-vous certain(e) de vouloir supprimer la rubrique <b>{{ form.topic_name.data }}</b> ?</p>
<p>Etes-vous certain(e) de vouloir supprimer le Topic <b>{{ form.topic_name.data }}</b> ?</p>
</div>
<div class="modal-footer">
<div class="form-group">

View File

@@ -5,14 +5,14 @@
<a href="{{ request.route_url('settings') }}" class="btn btn-default" role="button">
<span class="glyphicon glyphicon-chevron-left"></span> Retour</a>
<a href="{{ request.route_url('topic_edit', topic='0') }}" class="btn btn-success" role="button">
<span class="glyphicon glyphicon-plus"></span> Nouvelle rubrique</a>
<span class="glyphicon glyphicon-plus"></span> Nouveau Topic</a>
</p>
<table id="users_list" class="table table-striped table-condensed">
<thead>
<tr>
<th>Rubrique</th>
<th>Nom</th>
<th>Topic</th>
<th>Name</th>
</tr>
</thead>
{% for entry in topics %}