bulk_special_schedules.html 1.28 KB
Newer Older
1
{% extends "base_bulk_schedules_intermediate.html" %}
2

3
4
5
6
7
{% block title %}
Add special schedule to multiple facilities
{{ block.super }}
{% endblock %}

8
9
10
11
12
13
14
15
16
{% block breadcrumbs %}
<div class="breadcrumbs">
  <a href="{% url 'admin:index' %}">Home</a>
  &rsaquo; <a href="{% url 'admin:app_list' 'api' %}">Api</a>
  &rsaquo; <a href="{% url 'admin:api_facility_changelist' %}">Facilities</a>
  &rsaquo; Add special schedule to multiple facilities
</div>
{% endblock %}

17
18
19
{% block content %}
<form action="" method="post">
  {% csrf_token %}
20
21
22
23
24
25
26
27
  <label for="id_label_single">
    Special Schedule
      <select name="special_schedule" class="select2-basic-single" id="id_label_single">
      {% for schedule in schedules %}
        <option value={{ schedule.pk }} >{{ schedule }}</option>
      {% endfor %}
      </select>
  </label>
28
29
30
31
32
33
34
35
36
37

  <p>Add this special schedule to all of these facilities?</p>
  <ul>
  {% for facility in facilities %}
    <li>{{ facility.facility_name }}</li>
    <input type="hidden" name="_selected_action" value="{{ facility.pk }}" />
  {% endfor %}
  </ul>
<input type="hidden" name="action" value="assign_bulk_special_schedules" />
<input type="submit" name="bulk_special_schedule" value="Yes, I'm sure" />
38
<a href="#" class="button cancel-link">No, take me back</a>
39
</form>
40

41
{% endblock %}