{% url 'configuration:update_survey_component' component_type=component component_id=item.id as update_url %}
{% csrf_token %} {% for attr in attributes %} {% endfor %}
{% if item.id >= 0 %} {% if item.can_delete %} {% else %} Cannot delete
has images {% endif %} {% endif %}
{% if attr.0 == 'type' %} {% if component in create_new_types %} {% url 'configuration:survey' selected_component=selected_component selected_id=selected_id create_new_types=create_new_types|join:' '|add:' '|cut:component as cancel_new_type_url %} {% for type_attr in type_attributes %}
{% endfor %} {% else %} {% endif %} {% else %} {% endif %}