2020-07-16 15:12:47 +02:00
|
|
|
{% extends "chrono/manager_agenda_view.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block breadcrumb %}
|
|
|
|
{{ block.super }}
|
2021-05-21 14:27:21 +02:00
|
|
|
<a href="{% url 'chrono-manager-agenda-settings' agenda.pk %}">{% trans 'Settings' %}</a>
|
2020-07-16 15:12:47 +02:00
|
|
|
<a href="">{% trans "Notification settings" %}</a>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block appbar %}
|
|
|
|
<h2>{% trans "Notification settings" %}</h2>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ form.as_p }}
|
|
|
|
<div class="buttons">
|
|
|
|
<button class="submit-button">{% trans "Save" %}</button>
|
|
|
|
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Cancel' %}</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$('select').change(function(){
|
|
|
|
role_field_id = $(this).attr('id')
|
|
|
|
email_field_id = '#' + role_field_id + '_emails'
|
|
|
|
if ($(this).val() == 'use-email-field')
|
|
|
|
$(email_field_id).parent('p').show();
|
|
|
|
else
|
|
|
|
$(email_field_id).parent('p').hide();
|
|
|
|
});
|
|
|
|
$('select').trigger('change');
|
|
|
|
</script>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|