mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-16 19:23:27 +00:00
30 lines
848 B
Django/Jinja
30 lines
848 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
{% from "core/macros.jinja" import user_link_with_pict %}
|
|
|
|
{% block title %}
|
|
{% trans user_name=profile.get_display_name() %}{{ user_name }}'s godfathers{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h4>{% trans %}Godfathers{% endtrans %}</h4>
|
|
<ul>
|
|
{% for u in profile.godfathers.all() %}
|
|
<li>{{ user_link_with_pict(u) }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
<h4>{% trans %}Godchildren{% endtrans %}</h4>
|
|
<ul>
|
|
{% for u in profile.godchildren.all() %}
|
|
<li>{{ user_link_with_pict(u) }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% if profile == user %}
|
|
<form action="" method="post">
|
|
{% csrf_token %}
|
|
{{ form.as_p() }}
|
|
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
|
|
</form>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|