{% block tag_table %}
	<table id="all_tags_table">
    <tr><th>id</th>
        <th>label</th>
        {% comment %}<th>original_label</th>{% endcomment %}
        <th class="text_centered">Lien W</th>
        <th>Facette</th>
        <th class="large_25 text_centered">Lien W activé</th>
        <th class="large_25 text_centered">Supprimer<br/>le lien W</th>
        <th>Alias</th></tr>
    {% for tag in tags %}
    <tr class="imageline {% cycle 'hdabooddline' 'hdaboevenline' %}">
        <td class="reset_wp_info">{{tag.id}}</td>
        <td class="{{tag.url_status_text}} wikipediatag" id="{{tag.id}}" >{{tag.label}}</td>
        {% comment %}<td>{{tag.original_label}}</td>{% endcomment %}
        <td class="text_centered">
            {% if tag.wikipedia_url and tag.wikipedia_url != ""  %}
            <a href="{{tag.wikipedia_url}}" target="_blank"><img src="{{STATIC_URL}}hdabo/img/arrow_right.png" ></a>
            {% else %}
            <a href="http://fr.wikipedia.org/w/index.php?search={{tag.label}}" target="_blank"><img src="{{STATIC_URL}}hdabo/img/wikipedia_search.png" ></a>
            {% endif %}</td>
        <td><select name="facette">
            <option value="" selected></option>
            <option value="datation">Datation</option>
            <option value="localisation">Localisation</option>
            <option value="createur">Créateur</option>
            <option value="ecole">Ecole/Mouvement</option>
            <option value="discipline">Discipline artistique</option>
            </select></td>
        <td class="text_centered"><input type="checkbox" class="activate_wp_cb" id="{{tag.id}}" alt="{{tag.label}}" {% if tag.wikipedia_activated %}checked{% endif %} /></td>
        <td class="text_centered"><img src="{{STATIC_URL}}hdabo/img/red_cross.png" class="remove_wp_link" id="{{tag.id}}" alt="{{tag.label}}" /></td>
        <td>{{tag.alias}}</td></tr>
    {% endfor %}
    </table>
{% endblock %}
