Initial commit
This commit is contained in:
commit
793bb6a488
182 changed files with 17153 additions and 0 deletions
18
archive/templates/archive/key_upload.html
Normal file
18
archive/templates/archive/key_upload.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-4 mt-5 p-5 border">
|
||||
<form action="." method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form.as_div }}
|
||||
<div id="actions" class="row border-top mt-4">
|
||||
<div class="col mt-3 text-end">
|
||||
<a class="btn btn-sm btn-secondary" href="javascript: history.go(-1)">Annuler</a>
|
||||
<button class="btn btn-sm btn-success" name="save" type="submit">Envoyer et déchiffrer</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
37
archive/templates/archive/list.html
Normal file
37
archive/templates/archive/list.html
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{% extends 'base.html' %}
|
||||
{% block extra_javascript %}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$("#id_search_famille, #id_search_intervenant").keyup(debounce((ev) => {
|
||||
const form = ev.target.form;
|
||||
$.getJSON({
|
||||
url: form.action,
|
||||
data: $(form).serialize()
|
||||
}).done(function(response) {
|
||||
$("#archive_table").html(response);
|
||||
});
|
||||
}));
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row mb-5 border-bottom">
|
||||
<div class="col-2 pt-5">
|
||||
<h4>Archives {{ unite|upper }}</h4>
|
||||
</div>
|
||||
<div class="col">
|
||||
<form method="get" action="{% url 'archive-list' unite %}">
|
||||
<div class="row justify-content-end mb-3">
|
||||
<div class="col-auto">{{ form.search_famille.label_tag }} {{ form.search_famille }}</div>
|
||||
<div class="col-auto">{{form.search_intervenant.label_tag }} {{ form.search_intervenant }}</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div id="archive_table">Utilisez la recherche par nom de famille et/ou par intervenant.</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
28
archive/templates/archive/list_partial.html
Normal file
28
archive/templates/archive/list_partial.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<table class="table table-sm table-hover">
|
||||
<tr>
|
||||
<th>Nom</th><th>Réf. {{ unite|upper }}</th><th>Réf. OPE</th><th>Date de début</th>
|
||||
<th>Date de fin</th><th>Motif de fin</th>
|
||||
{% if can_download %}
|
||||
<th width="15rem">Déchiffrement</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% for archive in archives %}
|
||||
<tr>
|
||||
<td>{{ archive.nom }}</td>
|
||||
<td>{{ archive.intervenant }}</td>
|
||||
<td>{{ archive.ope }}</td>
|
||||
<td>{{ archive.date_debut|default:'' }}</td>
|
||||
<td>{{ archive.date_fin }}</td>
|
||||
<td>{{ archive.motif_fin }}</td>
|
||||
{% if can_download %}
|
||||
<td align="center">
|
||||
<a class="btn btn-sm bg-success" href="{%url 'archive-decrypt' archive.pk %}">Déchiffrer</a>
|
||||
</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="7">Aucune famille pour cette recherche.</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue