mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-26 06:32:26 +00:00
Link models in the UI
This commit is contained in:
parent
5da8e15eef
commit
3debef11c7
2 changed files with 16 additions and 4 deletions
|
@ -17,7 +17,7 @@
|
|||
</thead>
|
||||
{% for facture in facture_list %}
|
||||
<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.prix_total }}</td>
|
||||
<td>{{ facture.paiement }}</td>
|
||||
|
|
|
@ -12,9 +12,21 @@
|
|||
{% for port in port_list %}
|
||||
<tr>
|
||||
<td>{{ port.port }}</td>
|
||||
<td>{{ port.room }}</td>
|
||||
<td>{{ port.machine_interface }}</td>
|
||||
<td>{{ port.related }}</td>
|
||||
<td>
|
||||
{% if port.room %}
|
||||
{{ 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 class="text-right">
|
||||
<a class="btn btn-info btn-sm" role="button" title="Historique" href="{% url 'topologie:history' 'port' port.pk %}">
|
||||
|
|
Loading…
Reference in a new issue