Display photo authorization templates

This commit is contained in:
Yohann D'ANELLO 2020-09-24 22:55:04 +02:00
parent 468295f648
commit 698fc46072
2 changed files with 55 additions and 28 deletions

View File

@ -1,10 +1,17 @@
{% extends "base.html" %}
{% load i18n crispy_forms_filters %}
{% load i18n static crispy_forms_filters %}
{% block content %}
<a class="btn btn-info" href="{% url "registration:user_detail" pk=object.user.pk %}"><i class="fas fa-arrow-left"></i> {% trans "Back to the user detail" %}</a>
<hr>
<form method="post" enctype="multipart/form-data">
<div id="form-content">
<div class="alert alert-info">
{% trans "Authorzation templates:" %}
<a class="alert-link" href="{% static "Autorisation de droit à l'image - majeur.pdf" %}">{% trans "Adult" %}</a>
<a class="alert-link" href="{% static "Autorisation de droit à l'image - mineur.pdf" %}">{% trans "Child" %}</a>
</div>
{% csrf_token %}
{{ form|crispy }}
</div>

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Corres2math\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-09-24 22:01+0200\n"
"POT-Creation-Date: 2020-09-24 22:51+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Yohann D'ANELLO <yohann.danello@animath.fr>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -38,7 +38,7 @@ msgstr "Fermer"
msgid "Logs"
msgstr "Logs"
#: apps/logs/models.py:22 apps/registration/models.py:15
#: apps/logs/models.py:22 apps/registration/models.py:16
msgid "user"
msgstr "utilisateur"
@ -141,7 +141,7 @@ msgid "Team {name} ({trigram})"
msgstr "Équipe {name} ({trigram})"
#: apps/participation/models.py:45 apps/participation/models.py:56
#: apps/registration/models.py:76 apps/registration/models.py:121
#: apps/registration/models.py:81 apps/registration/models.py:127
msgid "team"
msgstr "équipe"
@ -294,100 +294,104 @@ msgstr "Vous n'êtes pas dans une équipe."
msgid "You don't participate, so you don't have any team."
msgstr "Vous ne participez pas, vous n'avez donc pas d'équipe."
#: apps/registration/forms.py:11
#: apps/registration/forms.py:12
msgid "role"
msgstr "rôle"
#: apps/registration/forms.py:13
#: apps/registration/forms.py:14
msgid "participant"
msgstr "participant"
#: apps/registration/forms.py:14 apps/registration/models.py:130
#: apps/registration/forms.py:15 apps/registration/models.py:136
msgid "coach"
msgstr "encadrant"
#: apps/registration/models.py:20
#: apps/registration/forms.py:52
msgid "The uploaded file must be a PDF, PNG of JPEG file."
msgstr "Le fichier envoyé doit être au format PDF, PNG ou JPEG."
#: apps/registration/models.py:21
msgid "Grant Animath to contact me in the future about other actions"
msgstr ""
"Autoriser Animath à me recontacter à l'avenir à propos d'autres actions"
#: apps/registration/models.py:25
#: apps/registration/models.py:26
msgid "email confirmed"
msgstr "email confirmé"
#: apps/registration/models.py:29
#: apps/registration/models.py:30
msgid "Activate your Correspondances account"
msgstr "Activez votre compte des Correspondances"
#: apps/registration/models.py:65
#: apps/registration/models.py:66
msgid "registration"
msgstr "inscription"
#: apps/registration/models.py:66
#: apps/registration/models.py:67
msgid "registrations"
msgstr "inscriptions"
#: apps/registration/models.py:81
#: apps/registration/models.py:86
msgid "12th grade"
msgstr "Terminale"
#: apps/registration/models.py:82
#: apps/registration/models.py:87
msgid "11th grade"
msgstr "Première"
#: apps/registration/models.py:83
#: apps/registration/models.py:88
msgid "10th grade or lower"
msgstr "Seconde ou inférieur"
#: apps/registration/models.py:85
#: apps/registration/models.py:90
msgid "student class"
msgstr "classe"
#: apps/registration/models.py:90
#: apps/registration/models.py:95
msgid "school"
msgstr "école"
#: apps/registration/models.py:94
#: apps/registration/models.py:100
msgid "photo authorization"
msgstr "autorisation de droit à l'image"
#: apps/registration/models.py:102
#: apps/registration/models.py:108
msgid "student"
msgstr "étudiant"
#: apps/registration/models.py:110
#: apps/registration/models.py:116
msgid "student registration"
msgstr "inscription d'élève"
#: apps/registration/models.py:111
#: apps/registration/models.py:117
msgid "student registrations"
msgstr "inscriptions d'élève"
#: apps/registration/models.py:125
#: apps/registration/models.py:131
msgid "professional activity"
msgstr "activité professionnelle"
#: apps/registration/models.py:138
#: apps/registration/models.py:144
msgid "coach registration"
msgstr "inscription d'encadrant"
#: apps/registration/models.py:139
#: apps/registration/models.py:145
msgid "coach registrations"
msgstr "inscriptions d'encadrants"
#: apps/registration/models.py:144
#: apps/registration/models.py:150
msgid "role of the administrator"
msgstr "rôle de l'administrateur"
#: apps/registration/models.py:149
#: apps/registration/models.py:155
msgid "admin"
msgstr "admin"
#: apps/registration/models.py:157
#: apps/registration/models.py:163
msgid "admin registration"
msgstr "inscription d'administrateur"
#: apps/registration/models.py:158
#: apps/registration/models.py:164
msgid "admin registrations"
msgstr "inscriptions d'administrateur"
@ -542,7 +546,23 @@ msgstr "Réinitialiser mon mot de passe"
msgid "Sign up"
msgstr "Inscription"
#: apps/registration/templates/registration/upload_photo_authorization.html:6
msgid "Back to the user detail"
msgstr "Retour aux détails de l'utilisateur"
#: apps/registration/templates/registration/upload_photo_authorization.html:11
msgid "Authorzation templates:"
msgstr "Modèles d'autorisation :"
#: apps/registration/templates/registration/upload_photo_authorization.html:12
msgid "Adult"
msgstr "Majeur"
#: apps/registration/templates/registration/upload_photo_authorization.html:13
msgid "Child"
msgstr "Mineur"
#: apps/registration/templates/registration/upload_photo_authorization.html:18
#: apps/registration/templates/registration/user_detail.html:60
msgid "Upload"
msgstr "Téléverser"