dms/templates/dms/document_details.html

73 lines
2.0 KiB
HTML

{% extends "./base.html" %}
{% block "navigation" %}
{{ block.super }}
<ul>
{% for version in document.versions.all %}
<li>{{ version }}</li>
{% endfor %}
</ul>
{% endblock "navigation" %}
{% block "title" %}
{{ document.title }}
{% endblock "title" %}
{% block "content_navigation" %}
<div class="segment">
<div class="ui card">
<div class="content">
<a class="header">{{ document.title }}</a>
<div class="meta">
<span class="date">{{ document.created_at }}</span>
</div>
<div class="description">
{{ document.overview }}
</div>
</div>
<div class="extra content">
Type : {{ document.type }}
</div>
</div>
<div class="ui card">
<div class="content">
<div class="header">
Rédaction
</div>
<div class="description">
<a href="{% url 'document_to_pdf' document.pk %}">Convertir en PDF et créer une nouvelle version</a>
</div>
</div>
</div>
{% for process in document.last_working_version.processes.all %}
<div class="ui card">
<div class="content">
<div class="header">
{{ process }}
</div>
<div class="ui progress">
<div class="bar" data-percent="{{ process.percentage_of_completion }}">
<div class="label">{{ process.percentage_of_completion }}%</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
{% endblock %}
{% block "content" %}
<div class="segment">
{% for section in document.sections.all %}
<h1>{{ section }}
<a href="{% url 'edit_document_section' document.pk section.pk %}">
<i class="edit icon"></i>
</a>
</h1>
{{ section.get_message_as_markdown | safe }}
{% endfor %}
</div>
{% endblock "content" %}