12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- {% extends "costs/base.html" %}
- {% load costs %}
- {% block title %}{{ document.name }}{% endblock %}
- {% block content %}
- <aside>
- <p><em>{{ document.date|date:"M Y" }}</em></p>
- </aside>
- <h2>Services proposés</h2>
- <ul>
- {% for service in document.service_set.all %}
- <li>
- <a href="{{ service.get_absolute_url }}">{{ service.name }}</a>
- </li>
- {% empty %}
- <li>Pas de service pour l'instant.</li>
- {% endfor %}
- </ul>
- <h2>Coûts</h2>
- <table>
- <thead>
- <tr>
- <th>Désignation</th><th>Capacité totale</th>
- <th>Occupation</th><th>Coût mensuel</th>
- </tr>
- </thead>
- <tbody>
- {% for cost in document.cost_set.all %}
- <tr>
- <td>
- {{ cost.name }}<a href="#" title="{{ cost.description }}">ⓘ</a>
- </td>
- <td>
- {% if cost.capacity_unit %}
- {{ cost.total_capacity }} {{ cost.get_capacity_unit_display }}
- {% else %}
- n/a
- {% endif %}
- </td>
- <td>{{ cost.used_fraction|percent }}</td>
- <td>{{ cost.price|price }}</td>
- </tr>
- {% empty %}
- <tr><td>Pas de coût pour l'instant.</td></tr>
- {% endfor %}
- <tbody>
- </table>
- <h2>Matériel et frais d'accès</h2>
- <table>
- <thead>
- <tr>
- <th>Désignation</th>
- <th>Capacité totale</th>
- <th>Occupation</th>
- <th>Coût d'achat</th>
- </tr>
- </thead>
- <tbody>
- {% for good in document.good_set.all %}
- <tr>
- <td>
- {{ good.name }}<a href="#" title="{{ good.description }}">ⓘ</a>
- </td>
- <td>
- {% if good.capacity_unit %}
- {{ good.total_capacity }} {{ good.get_capacity_unit_display }}
- {% else %}
- n/a
- {% endif %}
- </td>
- <td>
- {{ good.used_fraction|percent }}
- </td>
- <td>
- {{good.price|price }}
- </td>
- </tr>
- {% empty %}
- <tr><td>Pas de matériel pour l'instant.</td></tr>
- {% endfor %}
- </table>
- {% endblock %}
|