Add rf_role to Interface

This commit is contained in:
jeremystretch
2021-10-13 20:16:36 -04:00
parent 01f791a44e
commit 438b4b4758
14 changed files with 86 additions and 30 deletions

View File

@@ -39,16 +39,6 @@
<th scope="row">Type</th>
<td>{{ object.get_type_display }}</td>
</tr>
{% if object.is_wireless %}
<tr>
<th scope="row">Channel</th>
<td>{{ object.get_rf_channel_display|placeholder }}</td>
</tr>
<tr>
<th scope="row">Channel Width</th>
<td>{{ object.get_rf_channel_width_display|placeholder }}</td>
</tr>
{% endif %}
<tr>
<th scope="row">Enabled</th>
<td>
@@ -274,6 +264,25 @@
</div>
{% endif %}
{% if object.is_wireless %}
<div class="card">
<h5 class="card-header">Wireless</h5>
<div class="card-body">
<table class="table table-hover">
<tr>
<th scope="row">Role</th>
<td>{{ object.get_rf_role_display|placeholder }}</td>
</tr>
<tr>
<th scope="row">Channel</th>
<td>{{ object.get_rf_channel_display|placeholder }}</td>
</tr>
<tr>
<th scope="row">Channel Width</th>
<td>{{ object.get_rf_channel_width_display|placeholder }}</td>
</tr>
</table>
</div>
</div>
<div class="card">
<h5 class="card-header">Wireless LANs</h5>
<div class="card-body">

View File

@@ -34,6 +34,7 @@
<div class="row mb-2">
<h5 class="offset-sm-3">Wireless</h5>
</div>
{% render_field form.rf_role %}
{% render_field form.rf_channel %}
{% render_field form.rf_channel_width %}
{% render_field form.wireless_lans %}