Sith/core/templates/core/user_preferences.jinja

29 lines
890 B
Plaintext
Raw Normal View History

2017-05-09 21:42:01 +00:00
{% 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>
2017-05-10 20:17:05 +00:00
{% if trombi_form %}
<form action="{{ url('trombi:user_tools') }}" method="post" enctype="multipart/form-data">
2017-05-09 21:42:01 +00:00
{% csrf_token %}
2017-05-10 20:17:05 +00:00
{{ trombi_form.as_p() }}
2017-05-09 21:42:01 +00:00
<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>
2017-05-09 21:42:01 +00:00
{% endif %}
{% endblock %}