manuels-scolaires/src/manuels/templates/manuels/add_supplies.html

50 lines
1.5 KiB
HTML
Raw Normal View History

2018-06-15 20:41:29 +02:00
{% extends 'manuels/add_item.html' %}
{% load bootstrap4 %}
{% load static %}
{% block form %}
<div class="form-row">
<div class="col-12">
{% bootstrap_field form.teacher %}
</div>
</div>
<div class="form-row">
<div class="col-12">
2019-06-21 18:56:30 +02:00
{% if form.levels %}
{% bootstrap_field form.levels %}
{% elif form.level %}
{% bootstrap_field form.level %}
{% endif %}
</div>
</div>
<div class="form-row">
<div class="col-12">
{% bootstrap_field form.field %}
</div>
</div>
<div class="form-row">
<div class="col-12">
{% bootstrap_field form.supplies %}
</div>
</div>
{% if form.add_another %}
<div class="form-row">
<div class="col-12">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input"
2022-06-14 16:53:39 +02:00
{% if form.add_another.initial %}checked="checked"{% endif %}
name="{{ form.add_another.name }}"
id="{{ form.add_another.auto_id }}">
<label class="custom-control-label"
2022-06-14 16:53:39 +02:00
for="{{ form.add_another.auto_id }}">{{ form.add_another.label }}</label>
<small class="form-text text-muted">
{{ form.add_another.help_text|safe }}
</small>
</div>
</div>
</div>
{% endif %}
2018-06-15 20:41:29 +02:00
{% endblock %}