bulk_schedules.html 1.25 KB
Newer Older
1
{% extends "base_bulk_schedules_intermediate.html" %}
2

3 4 5 6 7
{% block title %}
Set main schedule for 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; Set main schedule for 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">
    Schedule
      <select name="schedule" class="select2-basic-single" id="id_label_single">
      {% for schedule in schedules %}
        <option value={{ schedule.pk }} >{{ schedule }}</option>
      {% endfor %}
      </select>
  </label>
28

29
  <p>Set this as the main schedule for all of these facilities?</p>
30 31 32
  <ul>
  {% for facility in facilities %}
    <li>{{ facility.facility_name }}</li>
33
    <input type="hidden" name="_selected_action" value="{{ facility.pk }}" />
34 35
  {% endfor %}
  </ul>
36 37
<input type="hidden" name="action" value="assign_bulk_schedules" />
<input type="submit" name="bulk_schedule" value="Yes, I'm sure" />
38
<a href="#" class="button cancel-link">No, take me back</a>
39
</form>
40

41
{% endblock %}