after migrating to bootstrat 5
This commit is contained in:
@@ -1,34 +1,36 @@
|
||||
{% extends "layout.jinja2" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="card mb-0">
|
||||
<div class="card-body">
|
||||
|
||||
<form action="{{ url }}" method="post" role="form">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="required-field" for="topic">Topic</label>
|
||||
<div class="mb-3">
|
||||
<label class="form-label required-field" for="topic">Topic</label>
|
||||
<input class="form-control" name="topic" type="text" value="{{entry.topic}}" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="required-field" for="topic_name">Intitulé</label>
|
||||
<div class="mb-3">
|
||||
<label class="form-label required-field" for="topic_name">Intitulé</label>
|
||||
<input class="form-control" name="topic_name" type="text" value="{{entry.topic_name}}" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="required-field" for="topic_quote">Citation</label>
|
||||
<div class="mb-3">
|
||||
<label class="form-label required-field" for="topic_quote">Citation</label>
|
||||
<textarea class="form-control monospace-font" id="topic_quote" name="topic_quote" required rows="10" cols="35">
|
||||
{{ entry.topic_quote }}
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<a class="btn btn-default" href="{{ request.route_url('topics') }}">
|
||||
<span class="glyphicon glyphicon-chevron-left"></span> Retour</a>
|
||||
<div class="mb-3">
|
||||
<a class="btn btn-light" href="{{ request.route_url('topics') }}">
|
||||
<span class="ti ti-chevron-left"></span> Retour</a>
|
||||
<button class="btn btn-primary" type="submit" name="form.submitted">
|
||||
<span class="glyphicon glyphicon-ok"></span> Enregistrer</button>
|
||||
<span class="ti ti-check"></span> Enregistrer</button>
|
||||
{% if entry.topic != '0' %}
|
||||
<button class="btn btn-danger" type="button" data-toggle="modal" data-target="#confirmDelete">
|
||||
<span class="glyphicon glyphicon-remove"></span> Supprimer</button>
|
||||
<span class="ti ti-x"></span> Supprimer</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -36,16 +38,17 @@
|
||||
|
||||
<h3>Liste des Tags</h3>
|
||||
<p><a href="{{ request.route_url('tag_edit', topic=entry.topic, id='0') }}" class="btn btn-success" role="button">
|
||||
<span class="glyphicon glyphicon-plus"></span> Nouveau</a>
|
||||
<span class="ti ti-plus"></span> Nouveau</a>
|
||||
</p>
|
||||
|
||||
<table id="users_list" class="table table-striped table-bordered table-condensed">
|
||||
<table id="users_list" class="table table-striped table-bordered table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Tag</th>
|
||||
<th>Nom du tag</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="table-group-divider">
|
||||
{% for entry in tags %}
|
||||
<tr>
|
||||
<td>{{ entry.tag }}</td>
|
||||
@@ -56,6 +59,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- Modal : Confirmation SUPRESSION -->
|
||||
@@ -82,5 +86,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user