Title on profile update page

This commit is contained in:
Alexandre Iooss 2020-02-21 11:17:14 +01:00
parent 2e7bf4964b
commit 43fd765a34
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
4 changed files with 31 additions and 29 deletions

View File

@ -60,6 +60,7 @@ class UserUpdateView(LoginRequiredMixin, UpdateView):
context['user'] = self.request.user context['user'] = self.request.user
context["profile_form"] = self.second_form( context["profile_form"] = self.second_form(
instance=context['user_modified'].profile) instance=context['user_modified'].profile)
context['title'] = _("Update Profile")
return context return context

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-02-21 10:36+0100\n" "POT-Creation-Date: 2020-02-21 11:16+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -180,7 +180,11 @@ msgstr ""
msgid "memberships" msgid "memberships"
msgstr "" msgstr ""
#: apps/member/views.py:78 apps/note/models/notes.py:229 #: apps/member/views.py:63 templates/member/profile_detail.html:29
msgid "Update Profile"
msgstr ""
#: apps/member/views.py:79 apps/note/models/notes.py:229
msgid "An alias with a similar name already exists." msgid "An alias with a similar name already exists."
msgstr "" msgstr ""
@ -361,7 +365,7 @@ msgstr ""
msgid "French" msgid "French"
msgstr "" msgstr ""
#: templates/base.html:14 #: templates/base.html:13
msgid "The ENS Paris-Saclay BDE note." msgid "The ENS Paris-Saclay BDE note."
msgstr "" msgstr ""
@ -405,10 +409,6 @@ msgstr ""
msgid "Manage auth token" msgid "Manage auth token"
msgstr "" msgstr ""
#: templates/member/profile_detail.html:29
msgid "Update Profile"
msgstr ""
#: templates/member/profile_detail.html:30 #: templates/member/profile_detail.html:30
msgid "Change password" msgid "Change password"
msgstr "" msgstr ""

View File

@ -3,7 +3,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-02-21 10:36+0100\n" "POT-Creation-Date: 2020-02-21 11:16+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -127,7 +127,9 @@ msgstr "début de l'adhésion"
#: apps/member/models.py:81 #: apps/member/models.py:81
msgid "How long after January 1st the members can renew their membership." msgid "How long after January 1st the members can renew their membership."
msgstr "Combien de temps après le 1er Janvier les adhérents peuvent renouveler leur adhésion." msgstr ""
"Combien de temps après le 1er Janvier les adhérents peuvent renouveler leur "
"adhésion."
#: apps/member/models.py:86 #: apps/member/models.py:86
msgid "membership end" msgid "membership end"
@ -138,8 +140,8 @@ msgid ""
"How long the membership can last after January 1st of the next year after " "How long the membership can last after January 1st of the next year after "
"members can renew their membership." "members can renew their membership."
msgstr "" msgstr ""
"Combien de temps l'adhésion peut durer après le 1er Janvier de l'année suivante " "Combien de temps l'adhésion peut durer après le 1er Janvier de l'année "
"avant que les adhérents peuvent renouveler leur adhésion." "suivante avant que les adhérents peuvent renouveler leur adhésion."
#: apps/member/models.py:93 apps/note/models/notes.py:127 #: apps/member/models.py:93 apps/note/models/notes.py:127
msgid "club" msgid "club"
@ -177,7 +179,11 @@ msgstr "adhésion"
msgid "memberships" msgid "memberships"
msgstr "adhésions" msgstr "adhésions"
#: apps/member/views.py:78 apps/note/models/notes.py:229 #: apps/member/views.py:63 templates/member/profile_detail.html:29
msgid "Update Profile"
msgstr "Modifier le profil"
#: apps/member/views.py:79 apps/note/models/notes.py:229
msgid "An alias with a similar name already exists." msgid "An alias with a similar name already exists."
msgstr "Un alias avec un nom similaire existe déjà." msgstr "Un alias avec un nom similaire existe déjà."
@ -359,7 +365,7 @@ msgstr ""
msgid "French" msgid "French"
msgstr "" msgstr ""
#: templates/base.html:14 #: templates/base.html:13
msgid "The ENS Paris-Saclay BDE note." msgid "The ENS Paris-Saclay BDE note."
msgstr "La note du BDE de l'ENS Paris-Saclay." msgstr "La note du BDE de l'ENS Paris-Saclay."
@ -403,10 +409,6 @@ msgstr "nom d'utilisateur"
msgid "Manage auth token" msgid "Manage auth token"
msgstr "Gérer les jetons d'authentification" msgstr "Gérer les jetons d'authentification"
#: templates/member/profile_detail.html:29
msgid "Update Profile"
msgstr "Modifier le profil"
#: templates/member/profile_detail.html:30 #: templates/member/profile_detail.html:30
msgid "Change password" msgid "Change password"
msgstr "Changer le mot de passe" msgstr "Changer le mot de passe"

View File

@ -1,17 +1,16 @@
<!doctype html>
{% extends "base.html" %} {% extends "base.html" %}
{% load crispy_forms_tags %} {% load i18n crispy_forms_tags %}
{% load i18n static pretty_money django_tables2 %} {% comment %}
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% block content %} {% block content %}
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{{ form|crispy }} {{ form|crispy }}
{{ profile_form|crispy }} {{ profile_form|crispy }}
<button class="btn btn-link" type="submit"> <button class="btn btn-primary" type="submit">
{% trans "Save Changes" %} {% trans "Save Changes" %}
</button> </button>
</form> </form>
{% endblock %} {% endblock %}