mirror of https://gitlab.crans.org/bde/nk20
Title on profile update page
This commit is contained in:
parent
2e7bf4964b
commit
43fd765a34
|
@ -60,6 +60,7 @@ class UserUpdateView(LoginRequiredMixin, UpdateView):
|
|||
context['user'] = self.request.user
|
||||
context["profile_form"] = self.second_form(
|
||||
instance=context['user_modified'].profile)
|
||||
context['title'] = _("Update Profile")
|
||||
|
||||
return context
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\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"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -180,7 +180,11 @@ msgstr ""
|
|||
msgid "memberships"
|
||||
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."
|
||||
msgstr ""
|
||||
|
||||
|
@ -361,7 +365,7 @@ msgstr ""
|
|||
msgid "French"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:14
|
||||
#: templates/base.html:13
|
||||
msgid "The ENS Paris-Saclay BDE note."
|
||||
msgstr ""
|
||||
|
||||
|
@ -405,10 +409,6 @@ msgstr ""
|
|||
msgid "Manage auth token"
|
||||
msgstr ""
|
||||
|
||||
#: templates/member/profile_detail.html:29
|
||||
msgid "Update Profile"
|
||||
msgstr ""
|
||||
|
||||
#: templates/member/profile_detail.html:30
|
||||
msgid "Change password"
|
||||
msgstr ""
|
||||
|
|
|
@ -3,7 +3,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\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"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -127,7 +127,9 @@ msgstr "début de l'adhésion"
|
|||
|
||||
#: apps/member/models.py:81
|
||||
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
|
||||
msgid "membership end"
|
||||
|
@ -138,8 +140,8 @@ msgid ""
|
|||
"How long the membership can last after January 1st of the next year after "
|
||||
"members can renew their membership."
|
||||
msgstr ""
|
||||
"Combien de temps l'adhésion peut durer après le 1er Janvier de l'année suivante "
|
||||
"avant que les adhérents peuvent renouveler leur adhésion."
|
||||
"Combien de temps l'adhésion peut durer après le 1er Janvier de l'année "
|
||||
"suivante avant que les adhérents peuvent renouveler leur adhésion."
|
||||
|
||||
#: apps/member/models.py:93 apps/note/models/notes.py:127
|
||||
msgid "club"
|
||||
|
@ -177,7 +179,11 @@ msgstr "adhésion"
|
|||
msgid "memberships"
|
||||
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."
|
||||
msgstr "Un alias avec un nom similaire existe déjà."
|
||||
|
||||
|
@ -359,7 +365,7 @@ msgstr ""
|
|||
msgid "French"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:14
|
||||
#: templates/base.html:13
|
||||
msgid "The ENS Paris-Saclay BDE note."
|
||||
msgstr "La note du BDE de l'ENS Paris-Saclay."
|
||||
|
||||
|
@ -403,10 +409,6 @@ msgstr "nom d'utilisateur"
|
|||
msgid "Manage auth token"
|
||||
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
|
||||
msgid "Change password"
|
||||
msgstr "Changer le mot de passe"
|
||||
|
|
|
@ -1,17 +1,16 @@
|
|||
<!doctype html>
|
||||
{% extends "base.html" %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% load i18n static pretty_money django_tables2 %}
|
||||
{% load i18n crispy_forms_tags %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
{{ profile_form|crispy }}
|
||||
<button class="btn btn-link" type="submit">
|
||||
{% trans "Save Changes" %}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
{{ profile_form|crispy }}
|
||||
<button class="btn btn-primary" type="submit">
|
||||
{% trans "Save Changes" %}
|
||||
</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue