1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#7844: Show module when viewing/editing device components

This commit is contained in:
jeremystretch
2022-02-11 11:09:07 -05:00
parent 71d3dc6e44
commit 3b80f67e4d
9 changed files with 133 additions and 10 deletions

View File

@@ -24,6 +24,16 @@
<a href="{{ object.device.get_absolute_url }}">{{ object.device }}</a>
</td>
</tr>
<tr>
<th scope="row">Module</th>
<td>
{% if object.module %}
<a href="{{ object.module.get_absolute_url }}">{{ object.module }}</a>
{% else %}
{{ None|placeholder }}
{% endif %}
</td>
</tr>
<tr>
<th scope="row">Name</th>
<td>{{ object.name }}</td>

View File

@@ -24,6 +24,16 @@
<a href="{{ object.device.get_absolute_url }}">{{ object.device }}</a>
</td>
</tr>
<tr>
<th scope="row">Module</th>
<td>
{% if object.module %}
<a href="{{ object.module.get_absolute_url }}">{{ object.module }}</a>
{% else %}
{{ None|placeholder }}
{% endif %}
</td>
</tr>
<tr>
<th scope="row">Name</th>
<td>{{ object.name }}</td>

View File

@@ -24,6 +24,16 @@
<a href="{{ object.device.get_absolute_url }}">{{ object.device }}</a>
</td>
</tr>
<tr>
<th scope="row">Module</th>
<td>
{% if object.module %}
<a href="{{ object.module.get_absolute_url }}">{{ object.module }}</a>
{% else %}
{{ None|placeholder }}
{% endif %}
</td>
</tr>
<tr>
<th scope="row">Name</th>
<td>{{ object.name }}</td>

View File

@@ -34,6 +34,16 @@
<a href="{{ object.device.get_absolute_url }}">{{ object.device }}</a>
</td>
</tr>
<tr>
<th scope="row">Module</th>
<td>
{% if object.module %}
<a href="{{ object.module.get_absolute_url }}">{{ object.module }}</a>
{% else %}
{{ None|placeholder }}
{% endif %}
</td>
</tr>
<tr>
<th scope="row">Name</th>
<td>{{ object.name }}</td>

View File

@@ -19,6 +19,7 @@
</div>
</div>
{% endif %}
{% render_field form.module %}
{% render_field form.name %}
{% render_field form.type %}
{% render_field form.speed %}

View File

@@ -24,6 +24,16 @@
<a href="{{ object.device.get_absolute_url }}">{{ object.device }}</a>
</td>
</tr>
<tr>
<th scope="row">Module</th>
<td>
{% if object.module %}
<a href="{{ object.module.get_absolute_url }}">{{ object.module }}</a>
{% else %}
{{ None|placeholder }}
{% endif %}
</td>
</tr>
<tr>
<th scope="row">Name</th>
<td>{{ object.name }}</td>

View File

@@ -24,6 +24,16 @@
<a href="{{ object.device.get_absolute_url }}">{{ object.device }}</a>
</td>
</tr>
<tr>
<th scope="row">Module</th>
<td>
{% if object.module %}
<a href="{{ object.module.get_absolute_url }}">{{ object.module }}</a>
{% else %}
{{ None|placeholder }}
{% endif %}
</td>
</tr>
<tr>
<th scope="row">Name</th>
<td>{{ object.name }}</td>

View File

@@ -24,6 +24,16 @@
<a href="{{ object.device.get_absolute_url }}">{{ object.device }}</a>
</td>
</tr>
<tr>
<th scope="row">Module</th>
<td>
{% if object.module %}
<a href="{{ object.module.get_absolute_url }}">{{ object.module }}</a>
{% else %}
{{ None|placeholder }}
{% endif %}
</td>
</tr>
<tr>
<th scope="row">Name</th>
<td>{{ object.name }}</td>