{% extends 'core/lcars_app.html' %} {% load static %} {% block header_title %}{% block app_title %} The Survey {% endblock %}{% endblock %} {% block extra_head %} {% endblock %} {% block edit_survey_link %}{% endblock %} {% block main %} {% with 'camera telescope mount' as equipment_components_str %} {% with equipment_components_str.split as equipment_components %}
{% with component="observer" item_list=observers attribute_list=attributes.observer %} {% if selected_component in equipment_components %} {% include "./survey_class.html" with track_access=1%} {% else %} {% include "./survey_class.html" with track_access=0%} {% endif %}
{% endwith %} {% include "./survey_class.html" with component="observatory" item_list=observatories attribute_list=attributes.observatory%}
{% for component in equipment_components %} {% cycle cameras telescopes mounts as item_list silent %} {% cycle attributes.camera attributes.telescope attributes.mount as attribute_list silent %} {% cycle types.camera types.telescope types.mount as component_types silent %} {% if selected_component == "observer" %} {% include "./survey_class.html" with track_access=1 types=component_types %} {% else %} {% include "./survey_class.html" with track_access=0 types=component_types %} {% endif %} {% if not forloop.last %}
{% endif %} {% endfor %}
{% endwith %} {% endwith %} {% endblock %}