{% extends 'backoffice/base.html' %} {% block title %} Prestation - {{prestation.employee.cuser.customer.name}} - {{prestation.getCode}} {{prestation.employee.cuser.user.first_name}} {{prestation.employee.cuser.user.last_name}} {% endblock %} {% block metaseo %} {% endblock %} {% block content %}
  • AZ
  • Prestations
  • {{prestation.employee.cuser.customer.name}} | {{prestation.getCode}} {{prestation.employee.cuser.user.first_name}} {{prestation.employee.cuser.user.last_name}}
{% if prestation.state == "PENDING" or prestation.state == "ACCEPTED" and prestation.treatedBy != user.cuser %} traitée par: {{prestation.treatedBy.user.first_name}} {{prestation.treatedBy.user.last_name}}    {% endif %} {% if prestation.state == "INITIAL" %} {% if user.cuser.type == "CUSTOMER_DRH" %} {% endif %} {% endif %} {% comment %} {% if prestation.state == "PENDING" and prestation.treatedBy == user.cuser %} {% endcomment %} {% if prestation.state == "PENDING" %} {% if user.cuser.type == "ADMIN" or user.cuser.type == "ADMIN_PROD" or user.cuser.type == "ADMIN_PRESTA" %} {% endif %} {% endif %} {% if prestation.state == "SUBMITTED" %} {% if user.cuser.type == "ADMIN" or user.cuser.type == "ADMIN_PROD" or user.cuser.type == "ADMIN_PRESTA" %} {% endif %} {% endif %} {% comment %} {% endcomment %}

{{prestation.employee.cuser.customer.name}} - {{prestation.getCode}} {{prestation.employee.cuser.user.first_name}} {{prestation.employee.cuser.user.last_name}}

{% comment %} States {% endcomment %} Etat de la prestation:   {% if prestation.state == "INITIAL" %} Initial {% endif %} {% if prestation.state == "PENDING" %} En traitement {% endif %} {% if prestation.state == "SUBMITTED" %} Soumise {% endif %} {% if prestation.state == "ACCEPTED" %} Validé {% endif %}
{% csrf_token %} {% for group in form %}
{{group.name}}
{% for gf in group.fields %}
{% for field in gf %} {% if field.type == 'input' or field.type == 'text' or field.type == 'email' or field.type == "tel" or field.type == "number" %}

{% comment %} {% endcomment %}

{% endif %} {% if field.type == 'date' %}

{% endif %} {% if field.type == 'select' %}
{% endif %} {% if field.type == "file" %}
{% endif %} {% if field.type == "textarea" %}

{% endif %} {% endfor %}
{% endfor %}
{% endfor %} {% if user.cuser.type == "CUSTOMER_ASSISTANT" or user.cuser.type == "CUSTOMER_DRH" or user.cuser.type == "ADMIN" or user.cuser.type == "ADMIN_PRESTA" %} {% if prestation.state != "ACCEPTED" %}

{% endif %} {% endif %}
{% endblock content %}