{% extends 'base.html' %} {% load static %} {% block body %}
Nouveau message
{% if form.non_field_errors %}
{{form.non_field_errors}}
{% endif %}
{% csrf_token %} {{form.media}} {% if form.adminsecret == 1 %} {% elif form.admin %} {% endif %} {% for classe, prof, profs, colleur, colleurs, groupe, groupes, eleve, eleves in form.champs %} {% if not forloop.last %}{% cycle '' "" %}{% endif %} {% endfor %}
Destinataires{{form.touscolleurs.label_tag}} {{form.touscolleurs}}  {{form.tousprofs.label_tag}} {{form.tousprofs}}   {{form.touseleves.label_tag}} {{form.touseleves}}
{{form.admin.label_tag}} {{form.admin}} {{form.secret.label_tag}} {{form.secret}}
Classe de {{classe.nom}}

{% with prof as formprof %} {% if formprof %}
{{ formprof.errors}} {{ formprof }} {{formprof.label_tag}}
{{ profs.errors}} {{ profs}} {% endif %} {% endwith %} {% if colleurs %}
{{ colleur.errors }} {{ colleur }} {{colleur.label_tag}}
{% for matiere,colleur in colleurs %}
{{ matiere.errors}} {{ matiere }} {{matiere.label_tag}}
{{ colleur.errors }} {{ colleur }} {% endfor %}
{% endif %}
{{ groupe.errors}} {{ groupe }} {{groupe.label_tag}}
{{ groupes.errors }} {{ groupes }}
{{ eleve.errors}} {{ eleve }} {{eleve.label_tag}}
{{ eleves.errors }} {{ eleves }}
{{form.titre.label_tag}} {{form.titre.errors}}{{form.titre}}
{{form.corps.label_tag}} {{form.corps.errors}}{{form.corps}}
{{form.pj.label_tag}} {{form.pj.errors}}{{form.pj}}
Retour
{% endblock %} {% block javascript %} {% endblock %}