Browse Source

Link models in the UI

rewrite_authors
lhark 9 years ago
parent
commit
3debef11c7
  1. 2
      cotisations/templates/cotisations/aff_cotisations.html
  2. 18
      topologie/templates/topologie/aff_port.html

2
cotisations/templates/cotisations/aff_cotisations.html

@ -17,7 +17,7 @@
</thead> </thead>
{% for facture in facture_list %} {% for facture in facture_list %}
<tr> <tr>
<td>{{ facture.user }}</td> <td><a href="{% url 'users:profil' userid=facture.user.id %}">{{ facture.user }}</a></td>
<td>{{ facture.name }}</td> <td>{{ facture.name }}</td>
<td>{{ facture.prix_total }}</td> <td>{{ facture.prix_total }}</td>
<td>{{ facture.paiement }}</td> <td>{{ facture.paiement }}</td>

18
topologie/templates/topologie/aff_port.html

@ -12,9 +12,21 @@
{% for port in port_list %} {% for port in port_list %}
<tr> <tr>
<td>{{ port.port }}</td> <td>{{ port.port }}</td>
<td>{{ port.room }}</td> <td>
<td>{{ port.machine_interface }}</td> {% if port.room %}
<td>{{ port.related }}</td> {{ port.room }}
{% endif %}
</td>
<td>
{% if port.machine_interface %}
<a href="{% url 'users:profil' userid=port.machine_interface.machine.user.id %}">{{ port.machine_interface }}</a>
{% endif %}
</td>
<td>
{% if port.related %}
<a href="{% url 'topologie:index-port' switch_id=port.related.switch.id %}">{{ port.related }}</a>
{% endif %}
</td>
<td>{{ port.details }}</td> <td>{{ port.details }}</td>
<td class="text-right"> <td class="text-right">
<a class="btn btn-info btn-sm" role="button" title="Historique" href="{% url 'topologie:history' 'port' port.pk %}"> <a class="btn btn-info btn-sm" role="button" title="Historique" href="{% url 'topologie:history' 'port' port.pk %}">

Loading…
Cancel
Save