{% block one_sheet %}
<div class="complete_sheet">
    <div class="left_sheet">
        <p><b>id hda</b><br/>{{ds.hda_id}}</p>
        <p><b>Titre</b><br><span class="sheet_title">{{ds.title}}</span></p>
        <p><b>Description</b><br/>{{ds.description}}</p>
        <p><b>Url</b><br/><a href="{{ds.url}}" target="_blank">{{ds.url}}</a></p>
        <p><b>Domaine artistique</b><br/>{{ds.domains_text}}</p>
        <p><b>Périodes Primaire</b><br/>{{ds.primary_periods_text}}</p>
        <p><b>Périodes Collège</b><br/>{{ds.college_periods_text}}</p>
        <p><b>Périodes Lycée</b><br/>{{ds.highschool_periods_text}}</p>
        <p><b>Liste de référence du primaire</b><br/>{{ds.primary_themes_text}}</p>
        <p><b>Thèmes Collège</b><br/>{{ds.college_themes_text}}</p>
        <p><b>Thèmes Lycée</b><br/>{{ds.highschool_themes_text}}</p>
        <p><b>Ville</b><br/>{{ds.town_text}}</p>
        <p><b>Format</b><br/>{{ds.format}}</p>
        <table><tr><th>Date de création</th><th>Date de modification</th></tr>
        <tr><td>{{ds.original_creation_date|date:"d/m/Y"}}</td><td>{{ds.modification_datetime|date:"d/m/Y"}}</td></tr></table>
        {# <p><b>original_modification_date</b><br/>{{ds.original_modification_date|date:"d/m/Y"}}</p> #}
    </div>
    <div class="right_sheet">
        <div id="tags_commands" style="float:left;width: 100%" >
	        <div style="float:left;"><input type="radio" name="gr_validated{{ds.hda_id}}" id="not_validated" value="not_validated" {% if not ds.validated %}checked{% endif %} {% if valid == "2" %}disabled{% endif %} />En cours
	        <input type="radio" name="gr_validated{{ds.hda_id}}" id="validated" value="validated" {% if ds.validated %}checked{% endif %} {% if valid == "2" %}disabled{% endif %} />Validé
	        {% if ds.validated %}
	        par {{ds.validator.username}} le {{ds.validation_date|date:"d/m/Y"}}
	        {% endif %}
	        </div>
	        {% if valid != "2" %}
	        <div style="float:right;" id="tags_actions">
	          <span>Trier les tags : <input type="image" src="{{STATIC_URL}}hdabo/img/sort-descending.png" width="16" height="16" name="trier" id="tags_sort" /></span>
	          <span>Ajouter un tag : <input type="text" name="wp_search" id="wp_search" size="35" /> <span id="ok_search" class="hand_cursor"><b>OK</b></span></span>
	        </div>
	        {% endif %}
	        {% csrf_token %}
	        <input type="hidden" name="datasheet_id" value="{{ds.hda_id}}" id="datasheet_id" />
        </div>
        <div id="tag_table_container" style="float:left; width: 100%">
        {% include "partial/tag_table.html" %}
        </div>
    </div>
</div>
{% endblock %}
