{% extends 'base.html' %} {% load bootstrap3 djadhere services %} {% block servicestab %} class="active"{% endblock %} {% block content %}
{% if object_list %}

Mes services

Services actifs : {{ object_list|active|count }}

Services inactifs : {{ object_list|inactive|count }}

{% else %}

Vous n’avez aucun service :-(

{% endif %}
{% for service in object_list %} {% if forloop.first %}
{% endif %}

{{ service.service_type }} {{ service.label }}

{% if service.contribution.count == 1 %}

{{ service.contribution.first }}

{% elif service.contribution.count > 1 %}

multiples paiements

{% endif %}

{{ service.ip_resources.all|join:", " }}

{% if forloop.last %}
{% endif %} {% endfor %} {% endblock %}