{% extends 'base.html' %} {% load bootstrap3 humanize %} {% block usertab %}{% if service.adhesion == request.user.adhesion %} class="active"{% endif %}{% endblock %} {% block corptab %}{% if service.adhesion != request.user.adhesion %} active{% endif %}{% endblock %} {% block content %}

{{ service.service_type }}

{% if service.label %}

{{ service.label }}

{% endif %}

Identifiant du service : #{{ service.id }}

Responsable : {{ service.adhesion }} {{ service.adhesion.adherent }}

{% if service.contribution.get_current_payment %}

Contribution : {{ service.contribution.get_current_payment }}

{% else %}

Contribution : pas de contribution

{% endif %}

IP allouée{{ service.active_allocations.count|pluralize }} : {% for allocation in service.active_allocations.all %} {% if forloop.first %}

{% endif %} {% empty %} aucune IP allouée {% endfor %}

{% if service.ports.exists %}

Port{{ service.ports.count|pluralize }} : {% for port in service.ports.all %} {% if forloop.first %}

{% endif %} {% endfor %}

{% endif %}
{% endblock %}