survey/templates/panel/campaigns/index.html

48 lines
1.3 KiB
HTML
Raw Permalink 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">ID</th>
2021-10-13 14:11:39 +05:30
<th class="campaign__title-text">Name</th>
<th class="campaign__title-text">Results</th>
2021-10-13 14:11:39 +05:30
</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>
<td>
<a href="{{ campaign.results }}">
<p class="campaign__item-text">Click Here</p></a
>
</td>
2021-10-13 14:11:39 +05:30
</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 %}