survey/templates/panel/campaigns/index.html

41 lines
1.1 KiB
HTML
Raw Normal View History

2023-01-24 23:28:22 +05:30
{% extends 'base' %}
{% block body %}
2021-10-13 14:11:39 +05:30
<body class="panel__body">
<main class="panel__container">
2023-01-24 23:28:22 +05:30
{% if payload %}
<table class="campaign__table">
2021-10-13 14:11:39 +05:30
<thead class="campaign__heading">
<tr>
<th class="campaign__title-text">Name</th>
<th class="campaign__title-text">UUID</th>
</tr>
</thead>
<tbody class="campaign__body">
2023-01-24 23:28:22 +05:30
{% for campaign in payload %}
2021-10-13 14:11:39 +05:30
<tr class="campaign__item">
<td>
2023-01-24 23:28:22 +05:30
<a href="{{ campaign.route }}">
<p class="campaign__item-heading">{{ campaign.name }}</p>
2021-10-13 14:11:39 +05:30
</a>
</td>
<td>
2023-01-24 23:28:22 +05:30
<a href="{{ campaign.route }}">
<p class="campaign__item-text">{{ campaign.uuid }}</p></a
2021-10-13 14:11:39 +05:30
>
</td>
</tr>
2023-01-24 23:28:22 +05:30
{% endfor %}
2021-10-13 14:11:39 +05:30
</tbody>
</table>
2023-01-24 23:28:22 +05:30
{% else %}
<p>
Looks like you don't have any campaigns registered,
<a class="link__btn" href="{{ page.panel.campaigns.new }}"> click here </a>
to create a new campaign!
</p>
{% endif %}
2021-10-13 14:11:39 +05:30
</main>
</body>
2023-01-24 23:28:22 +05:30
{% endblock body %}