bornhack-website/src/program/templates/includes/speakerproposalurl_table.html

26 lines
1.3 KiB
HTML

<table class="table table-striped">
<thead>
<tr>
<th>Type</th>
<th>URLs</th>
{% if camp.call_for_participation_open and not camp.read_only and request.resolver_match.app_name == "program" %}
<th class='text-right'>Available Actions</th>
{% endif %}
</tr>
</thead>
<tbody>
{% for url in speakerproposal.urls.all %}
<tr>
<td><i class="{{ url.urltype.icon }} fa-lg"></i><span class="h4"> {{ url.urltype.name }}</span></td>
<td><span class="h4"><a href="{{ url.url }}" target="_blank">{{ url }}</a></span></td>
{% if camp.call_for_participation_open and not camp.read_only and request.resolver_match.app_name == "program" %}
<td class='text-right'>
<a href="{% url 'program:speakerproposalurl_update' camp_slug=camp.slug speaker_uuid=speakerproposal.uuid url_uuid=url.uuid %}" class="btn btn-success btn-sm"><i class="fas fa-edit"></i><span class="h5"> Update</span></a>
<a href="{% url 'program:speakerproposalurl_delete' camp_slug=camp.slug speaker_uuid=speakerproposal.uuid url_uuid=url.uuid %}" class="btn btn-danger btn-sm"><i class="fas fa-times"></i><span class="h5"> Delete</span></a>
</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>