{% extends 'generic/object_list.html' %} {% load static %} {% load helpers %} {% load buttons %} {% load helpers %} {% load plugins %} {% load render_table from django_tables2 %} {% load i18n %} {% block title %}Segments Map View{% endblock %} {% block content %} {# Object list tab #}
{# Applied filters #} {% if filter_form %} {% applied_filters model filter_form request.GET %} {% endif %} {# Object table controls #}
{% csrf_token %} {# "Select all" form #} {% if table.paginator.num_pages > 1 %}
{% if 'bulk_edit' in actions %} {% bulk_edit_button model query_params=request.GET %} {% endif %} {% if 'bulk_delete' in actions %} {% bulk_delete_button model query_params=request.GET %} {% endif %}
{% endif %}
{% csrf_token %} {# Warn of any missing prerequisite objects #} {% if prerequisite_model %} {% include 'inc/missing_prerequisites.html' %} {% endif %} {# Objects table #}
Segments Map {{ segments_count }} segments
Table View
{% include './inc/map_layer_dropdown.html' %}
{% if map_warning %} {% endif %} {% if segments_count == 0 %} {% else %}
{% include './inc/leaflet_includes.html' %} {% include './inc/map_layers_styles.html' %} {% include './inc/map_layers_config.html' %} {% endif %}
{# /Objects table #} {# Form buttons #}
{% block bulk_buttons %}
{% if 'bulk_edit' in actions %} {% bulk_edit_button model query_params=request.GET %} {% endif %} {% if 'bulk_delete' in actions %} {% bulk_delete_button model query_params=request.GET %} {% endif %}
{% endblock %}
{# /Form buttons #}
{# /Object list tab #} {# Filters tab #} {% if filter_form %}
{% include 'inc/filter_list.html' %}
{% endif %} {# /Filters tab #} {% endblock content %}