{% extends 'core/lcars_app.html' %}
{% load static %}

{% block header_title %}{% block app_title %}
Select Photometric Reference
{% endblock %}{% endblock %}

{% block left_menu %}
<a href="{% url 'processing:select_photref_recalc' %}">
    <div class="lcars-element 
                button 
                lcars-melrose-bg
                lcars-u-1-1">
        Refresh
    </div>
</a>
{% endblock left_menu %}

{% block main %}
<table class="lcars-table standard-header">
    <thead>
        <tr>
            {% for expr in master_expressions %}
            <th>{{expr}}</th>
            {% endfor %}
        </tr>
    </thead>
    <tbody class="lcars-table select-row">
    {% for target in master_values %}
    {% url 'processing:select_photref_image' target_index=forloop.counter0 as target_url %}
    <tr onclick="window.location='{{target_url}}'">
        {% for val in target %}
        <td> {{val}} </td>
        {% endfor %}
    </tr>
    {% endfor %}
    </tbody>
</table>
{% endblock main %}
