{% extends "layouts/base.html" %} {% block title %}{{ _('Documents') }} - Admin{% endblock %} {% block page_title %}{{ _('Document management') }}{% endblock %} {% block breadcrumb %}Home / Admin / {{ _('Documents') }}{% endblock %} {% block content %} {% set kind_labels = { 'player': _('Player contract'), 'coach': _('Coach contract'), 'manager': _('Manager contract'), 'team': _('Team agreement'), 'code_of_conduct': _('Code of conduct'), 'ethics_code': _('Ethics code'), } %}

{{ _('Create a document') }}

{{ _('The type decides who must complete the document and how.') }}

{{ _('Existing documents') }}

{% for document in documents %} {% else %} {% endfor %}
{{ _('Title') }} {{ _('Type') }} {{ _('Version') }} {{ _('Availability') }} {{ _('Progress') }} {{ _('Actions') }}
{{ document.title }} {{ kind_labels.get(document.kind, document.kind) }} {% if document.current_version %} {{ _('v%(number)s', number=document.current_version.version) }} {% else %}{{ _('None') }}{% endif %} {% if document.is_published %} {{ _('Downloadable') }} {% else %} {{ _('Hidden') }} {% endif %} {% set completed, pending = document.completion_counts() %} {{ _('%(completed)s done', completed=completed) }} {{ _('%(pending)s pending', pending=pending) }}
{{ _('Manage') }}
{% if document.is_published %} {% else %} {% endif %}
{{ _('No documents yet. Create one above.') }}
{% endblock %}