{% extends "admin.html" %} {% load i18n %} {% block extra_admin_head %} {% endblock %} {% block body %}

{% trans "Documentation" %}

{% trans "This document describes the actors and funcionalities of the system" %} {{ settings.initials }}.

Índice

    {% if documentation.actors %}
  1. Atores
      {% for actor in documentation.actors %}
    1. {{ actor.name }}
    2. {% endfor %}
  2. {% endif %} {% if documentation.workflow %}
  3. Fluxograma
  4. {% endif %} {% if documentation.class_diagrams %}
  5. Diagrama de Classes
      {% for class_diagram in documentation.class_diagrams %}
    1. {{ class_diagram.name }}
    2. {% endfor %}
  6. {% endif %} {% if documentation.usecases %}
  7. Casos de Uso
      {% for usecase in documentation.usecases %}
    1. {{ usecase.name }}
    2. {% endfor %}
  8. {% endif %}
{% if documentation.description %}

{{ documentation.description|linebreaks }}

{% endif %}

{% trans "Actors" %}

{% if documentation.actors %} {% if documentation.organization_name %} {% endif %} {% for actor in documentation.actors %} {% if documentation.organization_name %} {% endif %} {% empty %} {% trans "Superuser" %} {% endfor %}
{% trans "Group" %} {% trans "Description" %}{% trans "Scope" %}

{{ actor.name }}
{{ actor.description|format }}{{ actor.scope }}
{% else %}
Nenhum ator envolvido.
{% endif %}

Fluxograma

{% if workflow_data != '[]' %}
{% else %}
Nenhum fluxo foi definido.
{% endif %} {% if documentation.class_diagrams %}

Diagrama de Classes

{% for class_diagram in documentation.class_diagrams %}

{{ class_diagram.name }}

{% endfor %} {% endif %}

{% trans "Use Cases" %}

{% for usecase in documentation.usecases %}
UC-{{ usecase.name|slugify|upper }}
{% if usecase.actors|length > 1 %} {% endif %} {% if usecase.pre_conditions %} {% endif %} {% if usecase.business_rules %} {% endif %}
ID: UC-{{ usecase.name|slugify|upper }}
{% trans "Title" %}: {{ usecase.name }}
{% trans "Description" %}: {{ usecase.description|format }}
{% trans "Primary Actor" %}: {% for actor in usecase.actors %}{% if forloop.first %}{{ actor|format }} {% endif %}{% endfor %}
{% trans "Secondary Actors" %}: {% for actor in usecase.actors %}{% if not forloop.first %}{{ actor|format }} {% endif %}{% endfor %}
{% trans "Preconditions" %}: {% for pre_condition in usecase.pre_conditions %} {{ pre_condition }}{% endfor %}
{% trans "Business Rules" %}: {{ usecase.business_rules|ordered_list }}
{% trans "Postconditions" %}: {{ usecase.post_condition|format }}
{% trans "Main Scenario" %}: {{ usecase.get_interactions_as_string|print_format }}
{% trans "Extensions" %}:
{% endfor %}
{% endblock %}