1 {% extends "base.html" %}
4 {% block page-title %}{{ zone.title }} | Nonstop | {{ block.super }}{% endblock %}
7 <h2>Nonstop — {{ zone.title }}
8 {% for emission in zone.get_playlist_emissions %}
9 {% if forloop.first %}· {% endif %}
10 <a href="{% url 'emission-view' slug=emission.slug %}">{{ emission }}</a>{% if not forloop.last %}, {% endif %}
13 {% if perms.emissions.change_nonstop %}
14 <span class="actions">
15 <a class="delete-button" rel="popup" href="{% url 'nonstop-zone-delete' slug=zone.slug %}">{% trans "Delete" %}</a>
16 <a href="{% url 'zone-editorial-settings' slug=zone.slug %}">{% trans "Editorial Settings" %}</a>
21 {% block more-user-links %}
23 <a class="button icon-music" href="{% url 'nonstop-quick-links' %}">{% trans "Nonstop management" %}</a>
29 {{form|with_template}}
32 <button class="submit-button">{% trans "Save" %}</button>
33 <a class="cancel" href="{% url 'nonstop-zones' %}">{% trans "Cancel" %}</a>
41 var $french_quota = $('<span id="computed-french-quota"></span>');
42 $french_quota.insertAfter($('#computed-percent-weight_lang_fr'));
43 $('[type=range]').on('change', function() {
44 var params = $('[type=range]').serialize();
45 if (xhr !== null ) xhr.abort();
47 url: "{% url 'nonstop-ajax-zone-percents' slug=zone.slug %}?" + params,
49 success: function(data, status, xhr) {
50 for (var key of Object.keys(data)) {
51 $('#computed-percent-weight_' + key).text((parseInt(data[key] * 100)) + '%');
52 $french_quota.text(' (' + parseInt(data['french_quota'] * 100) + '% hors instru)');
57 $('[type=range]').first().trigger('change');