-
-
Notifications
You must be signed in to change notification settings - Fork 964
/
delete-category.html
41 lines (37 loc) · 1.38 KB
/
delete-category.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% load i18n %}
{% load icons %}
<p>
{% blocktrans %}This action cannot be undone. This will permanently delete the {{ object }} project and all related content.{% endblocktrans %}
{% trans "This includes, but is not limited to, translation memory, glossaries, or user permissions." %}
</p>
{% with components=object.component_set.order %}
{% if components %}
<p>{% trans "The following translation components will be removed:" %}</p>
<ul>
{% for component in components %}
<li><a href="{{ component.get_absolute_url }}">{{ component }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
{% with categories=object.category_set.order %}
{% if categories %}
<p>{% trans "The following translation categories will be removed:" %}</p>
<ul>
{% for category in categories %}
<li><a href="{{ category.get_absolute_url }}">{{ category }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
<div class="form-group">
<label class="control-label">{% trans "Project to remove" %}</label>
<div class="list-group">
<div class="list-group-item">
<div class="list-group-item-text">
<button type="button" class="btn btn-link btn-xs pull-right flip" data-clipboard-text="{{ object.full_slug }}" title="{% trans "Copy to clipboard" %}">{% icon "copy.svg" %}</button>
{{ object.full_slug }}
</div>
</div>
</div>
</div>