ynh_extension_meeo/templates/edu_controle.twig

65 lines
2.4 KiB
Twig
Raw Normal View History

2024-07-20 18:03:52 +00:00
{{ include_javascript('tools/meeo/javascripts/edu_controle_filter.js') }}
<form class="form-horizontal" action="?api/meeo/controle" method="post">
2024-07-20 08:13:50 +00:00
<div class="form-group">
<label class="control-label col-sm-2" for="intitule">Intitulé:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="intitule" name="intitule" required>
2024-07-20 08:13:50 +00:00
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="matiere">Matière:</label>
<div class="col-sm-10">
<select class="form-control" id="matiere" name="matiere" required>
2024-08-03 10:01:20 +00:00
{% for id, matiere in matieres %}
<option value="{{ id }}">{{ matiere }}</option>
2024-07-20 08:13:50 +00:00
{% endfor %}
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="classe">Classe:</label>
<div class="col-sm-10">
<select class="form-control" id="classe" name="classe" required>
2024-08-03 10:01:20 +00:00
{% for id, classe in classes %}
<option value="{{ id }}" >{{ classe }}</option>
2024-07-20 08:13:50 +00:00
{% endfor %}
</select>
</div>
</div>
2024-09-11 06:47:50 +00:00
<div class="form-group">
<label class="control-label col-sm-2" for="max">Note max:</label>
<div class="col-sm-10">
<select class="form-control" id="max" name="max" required>
{% for id, note in notesMax %}
{% if (id == 20) %}
<option value="{{ id }}" selected>{{ note }}</option>
{% else %}
<option value="{{ id }}">{{ note }}</option>
{% endif %}
{% endfor %}
</select>
</div>
</div>
2024-07-20 08:13:50 +00:00
<div class="form-group">
<label class="control-label col-sm-2" for="coef">Coefficient:</label>
<div class="col-sm-10">
<input type="number" class="form-control" id="coef" name="coef" value="1" min="0.5" max="10" step="0.5">
2024-07-20 08:13:50 +00:00
</div>
</div>
<div>
<h2>Eleves</h2>
<div id="eleves" name="eleves">
2024-07-20 18:03:52 +00:00
{% for eleve in eleves %}
2024-07-27 15:19:40 +00:00
<div class="form-group" classe="{{ eleve.getClasse() }}">
<label class="control-label col-sm-2" for="eleve_{{ eleve.getId() }}">{{ eleve.getNom() }}</label>
2024-07-20 18:03:52 +00:00
<div class="col-sm-10">
2024-08-06 06:45:16 +00:00
<input type="number" class="form-control" id="eleve_{{ eleve.getId() }}" name="eleve_{{ eleve.getId() }}" min="0" max="20" step="0.1">
2024-07-20 18:03:52 +00:00
</div>
</div>
{% endfor %}
2024-07-20 08:13:50 +00:00
</div>
</div>
<button type="submit" class="btn btn-default">Envoyer</button>
2024-08-06 06:45:16 +00:00
</form>