blob: 71c279cb7ea7900e3b09e199cc8c1d762113fd4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{% load url from future %}
{{ category_form.errors.category }}
<a class="label {% if not user.is_authenticated %} disabled {% endif %}"
{% if category %}style="background-color:{{category.color}}"{% endif %}
{% if user.is_authenticated %}
title="Click to edit"
{% else %}
title="You must be logged-in to edit."
{% endif %}
>
{% if category %}
{{ category.name|upper }}
{% else %}
no category
{% endif %}
</a>
<form method="post" action="{% url 'thread_set_category' mlist_fqdn=mlist.name threadid=threadid %}">
{% csrf_token %}
{{ category_form.as_p }}
</form>
|