-
Notifications
You must be signed in to change notification settings - Fork 17
/
admin_campaign_list.jinja2
50 lines (50 loc) · 1.68 KB
/
admin_campaign_list.jinja2
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
42
43
44
45
46
47
48
49
50
{% extends "sitebase.jinja2" %}
{% set page_title = _("Admin Address Verification") %}
{% set show_breadcrumbs = False %}
{% block content %}
<h4>{{ _('Campaigns') }}</h4>
<center>
<a href="/admin/campaigns/edit">Add New Campaign</a>
</center><br />
<div class="container">
{% if diagnostics is not none and diagnostics|length > 0 %}
<div class="list-group">
<div class="row">
<div class="col-sm" style="text-align: center">
<i>{{ _('Campaign Name') }}</i>
</div>
<div class="col-sm" style="text-align: center">
<i>{{ _('Permitted Countries') }}</i>
</div>
<div class="col-sm" style="text-align: center">
<i>{{ _('Accepting Participants') }}</i>
</div>
<div class="col-sm" style="text-align: center">
</div>
</div>
{% for row in diagnostics %}
<div class="container list-group-item {{loop.cycle('odd', 'even') }}">
<div class="row">
<div class="col-sm">
{{ row.title |e}}
</div>
<div class="col-sm">
{{ row.permitted_countries |e }}
</div>
<div class="col-sm" style="text-align: center">
{{ row.accepting_participants |e }}
</div>
<div class="col-sm" style="text-align: center">
<a href="/admin/campaigns/edit?campaign_id={{ row.campaign_id |e }}">View/Edit</a>
</div>
</div>
</div>
{% endfor %}
</div>
<br/><br/>
{% else %}
{{ _('No campaigns found') }}
{% endif %}
</div>
{% endblock %}