mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-14 18:23:27 +00:00
29 lines
890 B
Django/Jinja
29 lines
890 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans %}Preferences{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h2>{% trans %}Preferences{% endtrans %}</h2>
|
|
<form action="" method="post" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
{{ form.as_p() }}
|
|
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
|
|
</form>
|
|
<h4>{% trans %}Trombi{% endtrans %}</h4>
|
|
{% if trombi_form %}
|
|
<form action="{{ url('trombi:user_tools') }}" method="post" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
{{ trombi_form.as_p() }}
|
|
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
|
|
</form>
|
|
{% else %}
|
|
<p>{% trans trombi=user.trombi_user.trombi %}You already choose to be in that Trombi: {{ trombi }}.{% endtrans %}
|
|
<a href="{{ url('trombi:user_tools') }}">{% trans %}Go to my Trombi tools{% endtrans %}</a></p>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
|
|
|