mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 09:42:10 +01:00 
			
		
		
		
	Update translations
This commit is contained in:
		@@ -17,7 +17,7 @@ class Migration(migrations.Migration):
 | 
				
			|||||||
            name='Participation',
 | 
					            name='Participation',
 | 
				
			||||||
            fields=[
 | 
					            fields=[
 | 
				
			||||||
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
 | 
					                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
 | 
				
			||||||
                ('valid', models.BooleanField(default=None, help_text='The video got the validation of the administrators.', null=True, verbose_name='valid')),
 | 
					                ('valid', models.BooleanField(default=None, help_text='The participation got the validation of the organizers.', null=True, verbose_name='valid')),
 | 
				
			||||||
            ],
 | 
					            ],
 | 
				
			||||||
            options={
 | 
					            options={
 | 
				
			||||||
                'verbose_name': 'participation',
 | 
					                'verbose_name': 'participation',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -256,7 +256,7 @@ class Participation(models.Model):
 | 
				
			|||||||
        null=True,
 | 
					        null=True,
 | 
				
			||||||
        default=None,
 | 
					        default=None,
 | 
				
			||||||
        verbose_name=_("valid"),
 | 
					        verbose_name=_("valid"),
 | 
				
			||||||
        help_text=_("The video got the validation of the administrators."),
 | 
					        help_text=_("The participation got the validation of the organizers."),
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def get_absolute_url(self):
 | 
					    def get_absolute_url(self):
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -76,7 +76,7 @@
 | 
				
			|||||||
        {% if user.registration.participates %}
 | 
					        {% if user.registration.participates %}
 | 
				
			||||||
            {% if can_validate %}
 | 
					            {% if can_validate %}
 | 
				
			||||||
                <div class="alert alert-info">
 | 
					                <div class="alert alert-info">
 | 
				
			||||||
                    {% trans "Your team has at least 4 members and a coach and all photo authorizations were given: the team can be validated." %}
 | 
					                    {% trans "Your team has at least 4 members and a coach and all authorizations were given: the team can be validated." %}
 | 
				
			||||||
                    <div class="text-center">
 | 
					                    <div class="text-center">
 | 
				
			||||||
                        <form method="post">
 | 
					                        <form method="post">
 | 
				
			||||||
                            {% csrf_token %}
 | 
					                            {% csrf_token %}
 | 
				
			||||||
@@ -87,7 +87,7 @@
 | 
				
			|||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            {% else %}
 | 
					            {% else %}
 | 
				
			||||||
                <div class="alert alert-warning">
 | 
					                <div class="alert alert-warning">
 | 
				
			||||||
                    {% trans "Your team must be composed of 4 members and a coach and each member must upload its photo authorization and confirm its email address." %}
 | 
					                    {% trans "Your team must be composed of 4 members and a coach and each member must upload their authorizations and confirm its email address." %}
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            {% endif %}
 | 
					            {% endif %}
 | 
				
			||||||
        {% else %}
 | 
					        {% else %}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -169,7 +169,7 @@ class TeamDetailView(LoginRequiredMixin, FormMixin, ProcessFormView, DetailView)
 | 
				
			|||||||
        context["title"] = _("Detail of team {trigram}").format(trigram=self.object.trigram)
 | 
					        context["title"] = _("Detail of team {trigram}").format(trigram=self.object.trigram)
 | 
				
			||||||
        context["request_validation_form"] = RequestValidationForm(self.request.POST or None)
 | 
					        context["request_validation_form"] = RequestValidationForm(self.request.POST or None)
 | 
				
			||||||
        context["validation_form"] = ValidateParticipationForm(self.request.POST or None)
 | 
					        context["validation_form"] = ValidateParticipationForm(self.request.POST or None)
 | 
				
			||||||
        # A team is complete when there are at least 4 members plus a coache that have sent their photo authorization,
 | 
					        # A team is complete when there are at least 4 members plus a coache that have sent their authorizations,
 | 
				
			||||||
        # their health sheet, they confirmed their email address and under-18 people sent their parental authorization.
 | 
					        # their health sheet, they confirmed their email address and under-18 people sent their parental authorization.
 | 
				
			||||||
        context["can_validate"] = team.students.count() >= 4 and team.coachs.exists() and \
 | 
					        context["can_validate"] = team.students.count() >= 4 and team.coachs.exists() and \
 | 
				
			||||||
            all(r.email_confirmed for r in team.students.all()) and \
 | 
					            all(r.email_confirmed for r in team.students.all()) and \
 | 
				
			||||||
@@ -206,7 +206,7 @@ class TeamDetailView(LoginRequiredMixin, FormMixin, ProcessFormView, DetailView)
 | 
				
			|||||||
            return self.form_invalid(form)
 | 
					            return self.form_invalid(form)
 | 
				
			||||||
        if not self.get_context_data()["can_validate"]:
 | 
					        if not self.get_context_data()["can_validate"]:
 | 
				
			||||||
            form.add_error(None, _("The team can't be validated: missing email address confirmations, "
 | 
					            form.add_error(None, _("The team can't be validated: missing email address confirmations, "
 | 
				
			||||||
                                   "photo authorizations, people or the chosen problem is not set."))
 | 
					                                   "authorizations, people or the chosen problem is not set."))
 | 
				
			||||||
            return self.form_invalid(form)
 | 
					            return self.form_invalid(form)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.object.participation.valid = False
 | 
					        self.object.participation.valid = False
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,5 +32,5 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
--
 | 
					--
 | 
				
			||||||
<p>
 | 
					<p>
 | 
				
			||||||
    {% trans "The Correspondances team." %}<br>
 | 
					    {% trans "The TFJM² team." %}<br>
 | 
				
			||||||
</p>
 | 
					</p>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,4 +10,4 @@ https://{{ domain }}{% url 'registration:email_validation' uidb64=uid token=toke
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% trans "Thanks" %},
 | 
					{% trans "Thanks" %},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% trans "The Correspondances team." %}
 | 
					{% trans "The TFJM² team." %}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@
 | 
				
			|||||||
    <form method="post" enctype="multipart/form-data">
 | 
					    <form method="post" enctype="multipart/form-data">
 | 
				
			||||||
        <div id="form-content">
 | 
					        <div id="form-content">
 | 
				
			||||||
            <div class="alert alert-info">
 | 
					            <div class="alert alert-info">
 | 
				
			||||||
                {% trans "Authorzation template:" %}
 | 
					                {% trans "Authorization template:" %}
 | 
				
			||||||
                <a class="alert-link" href="{% static "Autorisation_parentale.tex" %}">{% trans "Download" %}</a>
 | 
					                <a class="alert-link" href="{% static "Autorisation_parentale.tex" %}">{% trans "Download" %}</a>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            {% csrf_token %}
 | 
					            {% csrf_token %}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@
 | 
				
			|||||||
    <form method="post" enctype="multipart/form-data">
 | 
					    <form method="post" enctype="multipart/form-data">
 | 
				
			||||||
        <div id="form-content">
 | 
					        <div id="form-content">
 | 
				
			||||||
            <div class="alert alert-info">
 | 
					            <div class="alert alert-info">
 | 
				
			||||||
                {% trans "Authorzation templates:" %}
 | 
					                {% trans "Authorization templates:" %}
 | 
				
			||||||
                <a class="alert-link" href="{% static "Autorisation_droit_image_majeur.tex" %}">{% trans "Adult" %}</a> —
 | 
					                <a class="alert-link" href="{% static "Autorisation_droit_image_majeur.tex" %}">{% trans "Adult" %}</a> —
 | 
				
			||||||
                <a class="alert-link" href="{% static "Autorisation_droit_image_mineur.tex" %}">{% trans "Child" %}</a>
 | 
					                <a class="alert-link" href="{% static "Autorisation_droit_image_mineur.tex" %}">{% trans "Child" %}</a>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
 
 | 
				
			|||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user