12345678910111213141516171819202122232425262728293031323334353637 |
- {% extends 'base.html' %}
- {% load bootstrap3 %}
- {% block usertab %}{% if service.adhesion == request.user.profile.adhesion %} class="active"{% endif %}{% endblock %}
- {% block corptab %}{% if service.adhesion != request.user.profile.adhesion %} active{% endif %}{% endblock %}
- {% block content %}
- <div class="panel panel-{{ service.active|yesno:"success,danger"}}">
- <div class="panel-heading">
- <h3>{{ service.service_type }}</h3>
- {% if service.label %}
- <h4>{{ service.label }}</h4>
- {% endif %}
- </div>
- <div class="panel-body">
- <p>Identifiant du service : #{{ service.id }}</p>
- <p>Responsable : {{ service.adhesion }}</p>
- {% if service.contribution %}
- <p>Contribution : {{ service.contribution }}</p>
- {% else %}
- <p>Contribution : pas de contribution</p>
- {% endif %}
- <p>Actif : {{ service.active|yesno:"oui,non" }}</p>
- <p>
- IP allouée{{ service.active_allocations.count|pluralize }} :
- {% for allocation in service.active_allocations %}
- {% if forloop.first %}<ul>{% endif %}
- <li>{{ allocation.resource }} (depuis le {{ allocation.start }})</li>
- {% if forloop.last %}</ul>{% endif %}
- {% empty %}
- aucune IP allouée
- {% endfor %}
- </p>
- </div>
- </div>
- {% endblock %}
|