1
|
{% extends "organization/base.html" %}
|
2
|
{% load i18n %}
|
3
|
|
4
|
{% block page-title %}
|
5
|
{% trans 'Theme management' %}
|
6
|
{% endblock %}
|
7
|
|
8
|
{% block appbar %}
|
9
|
<h2>{% trans "Theme" %}</h2>
|
10
|
<a href="{% url "static-upload" organization.slug %}" rel="popup">{% trans "Upload static" %}</a>
|
11
|
<a href="{% url "template-upload" organization.slug %}" rel="popup">{% trans "Upload template" %}</a>
|
12
|
|
13
|
<h3>{% trans "Templates" %}</h3>
|
14
|
<form action='{% url "template-delete" organization.slug %}'>
|
15
|
<table>
|
16
|
<thead>
|
17
|
<tr><td>{% trans "Filename" %}</td><td></td></tr>
|
18
|
</thead>
|
19
|
<tbody>
|
20
|
{% for template in templates %}
|
21
|
<tr><td>{{ template }}</td><td> <button name="template" value="{{ template }}" class="icon-delete">{% trans "Remove" %}</button></td></tr>
|
22
|
{% empty %}
|
23
|
<tr><td colspan=2>{% trans "No templates uploaded yet" %}</td></tr>
|
24
|
{% endfor %}
|
25
|
</tbody>
|
26
|
</table>
|
27
|
</form>
|
28
|
|
29
|
<h3>{% trans "Statics" %}</h3>
|
30
|
<form action='{% url "static-delete" organization.slug %}'>
|
31
|
<table>
|
32
|
<thead>
|
33
|
<tr><td>{% trans "Filename" %}</td><td></td></tr>
|
34
|
</thead>
|
35
|
<tbody>
|
36
|
{% for static in statics %}
|
37
|
<tr><td>{{ static }}</td><td><button name="static" value="{{ static }}" class="icon-delete">{% trans "Remove" %}</button></td></tr>
|
38
|
{% empty %}
|
39
|
<tr><td>{% trans "No statics uploaded yet" %}</td></tr>
|
40
|
{% endfor %}
|
41
|
</tbody>
|
42
|
</table>
|
43
|
</form>
|
44
|
{% endblock %}
|
45
|
|