2017-05-09 23:42:01 +02:00
|
|
|
{% extends "core/base.jinja" %}
|
|
|
|
|
2023-03-30 14:38:40 +02:00
|
|
|
{%- block additional_css -%}
|
2024-09-17 23:42:05 +02:00
|
|
|
<link rel="stylesheet" href="{{ static('user/user_preferences.scss') }}">
|
2023-03-30 14:38:40 +02:00
|
|
|
{%- endblock -%}
|
|
|
|
|
2017-05-09 23:42:01 +02:00
|
|
|
{% block title %}
|
2024-07-24 00:16:31 +02:00
|
|
|
{% trans %}Preferences{% endtrans %}
|
2017-05-09 23:42:01 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2024-07-24 00:16:31 +02:00
|
|
|
<div class="main">
|
|
|
|
<h2>{% trans %}Preferences{% endtrans %}</h2>
|
|
|
|
<h3>{% trans %}General{% endtrans %}</h3>
|
|
|
|
<form class="form form-general" action="" method="post" enctype="multipart/form-data">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ form.as_p() }}
|
|
|
|
<input class="form-submit-btn" type="submit" value="{% trans %}Save{% endtrans %}" />
|
|
|
|
</form>
|
2023-03-30 14:38:40 +02:00
|
|
|
|
2024-07-24 00:16:31 +02:00
|
|
|
<h3>{% trans %}Trombi{% endtrans %}</h3>
|
2023-03-30 14:38:40 +02:00
|
|
|
|
2024-07-24 00:16:31 +02:00
|
|
|
{% if trombi_form %}
|
|
|
|
<form class="form form-trombi" action="{{ url('trombi:user_tools') }}" method="post" enctype="multipart/form-data">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ trombi_form.as_p() }}
|
|
|
|
<input class="form-submit-btn" type="submit" value="{% trans %}Save{% endtrans %}" />
|
|
|
|
</form>
|
2023-03-30 14:38:40 +02:00
|
|
|
|
2024-07-24 00:16:31 +02:00
|
|
|
{% else %}
|
2024-12-16 09:31:43 +01:00
|
|
|
<p>{% trans trombi=profile.trombi_user.trombi %}You already choose to be in that Trombi: {{ trombi }}.{% endtrans %}
|
2024-07-24 00:16:31 +02:00
|
|
|
<br />
|
|
|
|
<a href="{{ url('trombi:user_tools') }}">{% trans %}Go to my Trombi tools{% endtrans %}</a>
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2023-03-30 14:38:40 +02:00
|
|
|
|
2017-05-09 23:42:01 +02:00
|
|
|
|
2024-12-08 16:07:25 +01:00
|
|
|
{% if student_card_fragment %}
|
2024-12-15 17:02:44 +01:00
|
|
|
<h3>{% trans %}Student card{% endtrans %}</h3>
|
2024-12-08 16:07:25 +01:00
|
|
|
{{ student_card_fragment }}
|
2024-12-08 11:45:16 +01:00
|
|
|
<p class="justify">
|
|
|
|
{% trans %}You can add a card by asking at a counter or add it yourself here. If you want to manually
|
|
|
|
add a student card yourself, you'll need a NFC reader. We store the UID of the card which is 14 characters long.{% endtrans %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-03-30 14:38:40 +02:00
|
|
|
{% endblock %}
|