aircox-radiocampus/aircox/templates/aircox/program_form.html

29 lines
931 B
HTML

{% extends "./page_form.html" %}
{% load static i18n humanize honeypot aircox %}
{% block head_extra %}
{{ form.media }}
{% endblock %}
{% block page-form-actions %}
<a class="button secondary withmargin" href="{% url 'episode-list' parent_slug=object.slug %}">{% trans "Episodes" %}</a>
<a class="button secondary withmargin" href="{% url 'program-add-episode' object.pk %}" target="_self">{% trans "New episode" %}</a>
{% if object and object.pk and request.user.is_superuser %}
<button type="button"
class="button secondary withmargin"
@click="$refs['group-users-modal'].open({id: {{ object.editors_group_id }}, name: '{{ object.editors_group.name }}' })">{% translate "Editors" %}</button>
{{ block.super }}
{% endif %}
{% endblock %}
{% block main %}
{{ block.super }}
{% if object and object.pk and request.user.is_superuser %}
{% include "./dashboard/widgets/group_users.html" %}
{% endif %}
{% endblock %}