<tr>
    <td>
        {% include "./survey_item_entry.html" %}
    </td>
    <td>
        <button type="button"
            {% if item.access %}
                {% url 'configuration:change_access' new_access=0 selected_component=selected_component selected_id=selected_id target_component=component target_id=item.id as access_url %}
                onclick="window.location.href='{{access_url}}';"
                class="access-button"
                style="background-color:green"> 
            YES 
            {% else %}
                {% url 'configuration:change_access' new_access=1 selected_component=selected_component selected_id=selected_id target_component=component target_id=item.id as access_url %}

                onclick="window.location.href='{{access_url}}';"
                class="access-button"
                style="background-color:red"> 
            NO 
            {% endif %}
        </button>
    </td>
</tr>

