forked from ScoDoc/ScoDoc
Emmanuel Viennet
8e1cb055f6
- clé étrangère sur Identite dans EntrepriseStageApprentissage - nouveau mécanisme pour le choix d'étudiant via auto-completion (ajout de autoComplete.js-10.2.7) - nouveau point d'API: /etudiants/name/<string:start> (et son test unitaire)
31 lines
795 B
Django/Jinja
31 lines
795 B
Django/Jinja
{# -*- mode: jinja-html -*- #}
|
|
{% extends 'base.j2' %}
|
|
{% import 'bootstrap/wtf.html' as wtf %}
|
|
|
|
{% block styles %}
|
|
{{super()}}
|
|
<link rel="stylesheet" href="/ScoDoc/static/libjs/autoComplete.js-10.2.7/dist/css/autoComplete.02.css">
|
|
{% endblock %}
|
|
|
|
{% block app_content %}
|
|
<h1>{{ title }}</h1>
|
|
<br>
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<p>
|
|
(*) champs requis
|
|
</p>
|
|
{{ wtf.quick_form(form, novalidate=True) }}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{{super()}}
|
|
<script src="/ScoDoc/static/libjs/autoComplete.js-10.2.7/dist/autoComplete.min.js"></script>
|
|
<script src="/ScoDoc/static/js/etud_autocomplete.js"></script>
|
|
<script>
|
|
const autoCompleteJS = new autoComplete(etud_autocomplete_config(with_dept = true));
|
|
</script>
|
|
{% endblock %}
|