mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-08-02 05:34:52 +02:00
Compare commits
2 Commits
ea8fcad8b5
...
2af671d61a
Author | SHA1 | Date | |
---|---|---|---|
|
2af671d61a | ||
|
4c3b714b56 |
@@ -7,6 +7,15 @@
|
||||
<dt class="col-xl-6">{% trans 'username'|capfirst %}</dt>
|
||||
<dd class="col-xl-6">{{ user_object.username }}</dd>
|
||||
|
||||
<dt class="col-xl-6">{% trans 'family'|capfirst %}</dt>
|
||||
<dd class="col-xl-6">
|
||||
{% for family in families %}
|
||||
<a href="{% url 'family:family_detail' family.pk %}">{{ family.name }}</a>{% if not forloop.last %}, {% endif %}
|
||||
{% empty %}
|
||||
<em>{% trans 'None' %}</em>
|
||||
{% endfor %}
|
||||
</dd>
|
||||
|
||||
{% if user_object.pk == user.pk %}
|
||||
<dt class="col-xl-6">{% trans 'password'|capfirst %}</dt>
|
||||
<dd class="col-xl-6">
|
||||
|
@@ -26,6 +26,7 @@ from note_kfet.middlewares import _set_current_request
|
||||
from permission.backends import PermissionBackend
|
||||
from permission.models import Role
|
||||
from permission.views import ProtectQuerysetMixin, ProtectedCreateView
|
||||
from family.models import Family
|
||||
from django import forms
|
||||
|
||||
from .forms import UserForm, ProfileForm, ImageForm, ClubForm, MembershipForm, \
|
||||
@@ -92,6 +93,9 @@ class UserUpdateView(ProtectQuerysetMixin, LoginRequiredMixin, UpdateView):
|
||||
if fields_modifiable:
|
||||
context['profile_form'] = profile_form
|
||||
|
||||
families = Family.objects.filter(members=user).distinct()
|
||||
context["families"] = families
|
||||
|
||||
return context
|
||||
|
||||
@transaction.atomic
|
||||
|
@@ -4095,14 +4095,6 @@ msgstr "La note est indisponible pour le moment"
|
||||
msgid "Thank you for your understanding -- The Respos Info of BDE"
|
||||
msgstr "Merci de votre compréhension -- Les Respos Info du BDE"
|
||||
|
||||
#: note_kfet/templates/base_search.html:15
|
||||
msgid "Search by attribute such as name..."
|
||||
msgstr "Chercher par un attribut tel que le nom..."
|
||||
|
||||
#: note_kfet/templates/base_search.html:23
|
||||
msgid "There is no results."
|
||||
msgstr "Il n'y a pas de résultat."
|
||||
|
||||
#: note_kfet/templates/cas/logged.html:8
|
||||
msgid ""
|
||||
"<h3>Log In Successful</h3>You have successfully logged into the Central "
|
||||
|
Reference in New Issue
Block a user