refactor

parent b174033b
<div class="ui container segment raised">
<h1 class="ui header center aligned container">
<i class="file pdf outline icon"></i>
<div class="content">{{ document.name }}</div>
</h1>
<div class="tags">
<p class="ui {% if document.type == 'Annale' %}red{% else %}blue{% endif %} tag label">{{ document.type }}</p>
<p class="ui green tag label">{{document.documentDate.year}}</p>
<div class="ui fluid card">
<div class="content">
<div class="header">
<i class="file pdf outline icon" title="Document"></i>
{{ document.name }}
</div>
{% if document.course.pk != Null %}<div class="meta"><a href="{% url 'core:get_course' document.course.pk %}">{{document.course}}</a></div>{% endif %}
<div class="description">{{ document.description }}</div>
</div>
<div class="ui segment">
<p class="ui ribbon label">Description</p>
{{ document.description }}
<div class="extra content">
<p class="ui {% if document.type == 'Annale' %}red{% else %}blue{% endif %} label">{{ document.type }}</p>
<p class="ui green label">{{document.documentDate.year}}</p>
</div>
<div class="ui stackable four column centered grid">
<div class="column">
<a href="{% url 'core:download_document' document.id %}" class="ui blue labeled icon fluid button" target="_new"> <i class="cloud download icon"></i> Télécharger</a>
</div>
<div class="column">
<a href="{% url 'core:accept' 'document' document.pk %}" class="ui green labeled icon fluid button"><i class="checkmark icon"></i>Accepter</a>
</div>
<div class="column">
<a href="{% url 'core:reject' 'document' document.pk %}" class="ui red labeled icon fluid button"><i class="remove icon"></i>Rejeter</a>
</div>
<div class="ui three bottom attached buttons">
<a href="{% url 'core:download_document' document.id %}" class="ui blue labeled icon fluid button" target="_new"> <i class="cloud download icon"></i> Télécharger</a>
<a href="{% url 'core:accept' 'document' document.pk %}" class="ui green labeled icon fluid button"><i class="checkmark icon"></i>Accepter</a>
<a href="{% url 'core:reject' 'document' document.pk %}" class="ui red labeled icon fluid button"><i class="remove icon"></i>Rejeter</a>
</div>
</div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment