| 
									
										
										
										
											2021-03-29 16:43:29 -04:00
										 |  |  | {% extends 'ipam/vlan/base.html' %} | 
					
						
							| 
									
										
										
										
											2018-05-18 11:09:11 -04:00
										 |  |  | {% load helpers %} | 
					
						
							| 
									
										
										
										
											2021-09-15 12:41:21 -04:00
										 |  |  | {% load render_table from django_tables2 %} | 
					
						
							| 
									
										
										
										
											2020-03-15 23:45:18 -04:00
										 |  |  | {% load plugins %} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  | {% block content %} | 
					
						
							|  |  |  |     <div class="row"> | 
					
						
							| 
									
										
										
										
											2021-07-21 11:20:35 -04:00
										 |  |  |         <div class="col col-md-6"> | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |             <div class="card"> | 
					
						
							|  |  |  |                 <h5 class="card-header"> | 
					
						
							|  |  |  |                     VLAN | 
					
						
							|  |  |  |                 </h5> | 
					
						
							|  |  |  |                 <div class="card-body"> | 
					
						
							|  |  |  |                     <table class="table table-hover attr-table"> | 
					
						
							| 
									
										
										
										
											2021-04-13 21:51:12 -07:00
										 |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Site</th> | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                             <td> | 
					
						
							|  |  |  |                                 {% if object.site %} | 
					
						
							|  |  |  |                                     {% if object.site.region %} | 
					
						
							|  |  |  |                                         <a href="{{ object.site.region.get_absolute_url }}">{{ object.site.region }}</a> / | 
					
						
							|  |  |  |                                     {% endif %} | 
					
						
							|  |  |  |                                     <a href="{{ object.site.get_absolute_url }}">{{ object.site }}</a> | 
					
						
							|  |  |  |                                 {% else %} | 
					
						
							|  |  |  |                                     <span class="text-muted">None</span> | 
					
						
							|  |  |  |                                 {% endif %} | 
					
						
							|  |  |  |                             </td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							| 
									
										
										
										
											2021-04-13 21:51:12 -07:00
										 |  |  |                             <th scope="row">Group</th> | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                             <td> | 
					
						
							|  |  |  |                                 {% if object.group %} | 
					
						
							|  |  |  |                                     <a href="{{ object.group.get_absolute_url }}">{{ object.group }}</a> | 
					
						
							|  |  |  |                                 {% else %} | 
					
						
							|  |  |  |                                     <span class="text-muted">None</span> | 
					
						
							|  |  |  |                                 {% endif %} | 
					
						
							|  |  |  |                             </td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							| 
									
										
										
										
											2021-04-13 21:51:12 -07:00
										 |  |  |                             <th scope="row">VLAN ID</th> | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                             <td>{{ object.vid }}</td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							| 
									
										
										
										
											2021-04-13 21:51:12 -07:00
										 |  |  |                             <th scope="row">Name</th> | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                             <td>{{ object.name }}</td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							| 
									
										
										
										
											2021-04-13 21:51:12 -07:00
										 |  |  |                             <th scope="row">Tenant</th> | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                             <td> | 
					
						
							|  |  |  |                                 {% if object.tenant %} | 
					
						
							|  |  |  |                                     {% if object.tenant.group %} | 
					
						
							|  |  |  |                                         <a href="{{ object.tenant.group.get_absolute_url }}">{{ object.tenant.group }}</a> / | 
					
						
							|  |  |  |                                     {% endif %} | 
					
						
							|  |  |  |                                     <a href="{{ object.tenant.get_absolute_url }}">{{ object.tenant }}</a> | 
					
						
							|  |  |  |                                 {% else %} | 
					
						
							|  |  |  |                                     <span class="text-muted">None</span> | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |                                 {% endif %} | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                             </td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							| 
									
										
										
										
											2021-07-21 11:20:35 -04:00
										 |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Status</th> | 
					
						
							|  |  |  |                             <td> | 
					
						
							|  |  |  |                               <span class="badge bg-{{ object.get_status_class }}">{{ object.get_status_display }}</span> | 
					
						
							|  |  |  |                             </td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                         <tr> | 
					
						
							| 
									
										
										
										
											2021-04-13 21:51:12 -07:00
										 |  |  |                             <th scope="row">Role</th> | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                             <td> | 
					
						
							|  |  |  |                                 {% if object.role %} | 
					
						
							|  |  |  |                                     <a href="{% url 'ipam:vlan_list' %}?role={{ object.role.slug }}">{{ object.role }}</a> | 
					
						
							|  |  |  |                                 {% else %} | 
					
						
							|  |  |  |                                     <span class="text-muted">None</span> | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |                                 {% endif %} | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                             </td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							| 
									
										
										
										
											2021-04-13 21:51:12 -07:00
										 |  |  |                             <th scope="row">Description</th> | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                             <td>{{ object.description|placeholder }}</td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                     </table> | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2021-07-21 11:20:35 -04:00
										 |  |  |             {% plugin_left_page object %} | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |         <div class="col col-md-6"> | 
					
						
							| 
									
										
										
										
											2020-11-19 13:53:37 -05:00
										 |  |  |             {% include 'inc/custom_fields_panel.html' %} | 
					
						
							| 
									
										
										
										
											2020-11-19 12:24:52 -05:00
										 |  |  |             {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:vlan_list' %} | 
					
						
							| 
									
										
										
										
											2021-07-21 11:20:35 -04:00
										 |  |  |             {% plugin_right_page object %} | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2021-07-21 11:20:35 -04:00
										 |  |  |     </div> | 
					
						
							|  |  |  |     <div class="row"> | 
					
						
							|  |  |  |         <div class="col col-md-12"> | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |             <div class="card"> | 
					
						
							|  |  |  |                 <h5 class="card-header"> | 
					
						
							|  |  |  |                     Prefixes | 
					
						
							|  |  |  |                 </h5> | 
					
						
							| 
									
										
										
										
											2021-09-15 12:41:21 -04:00
										 |  |  |                 <div class="card-body table-responsive"> | 
					
						
							|  |  |  |                     {% render_table prefix_table 'inc/table.html' %} | 
					
						
							| 
									
										
										
										
											2016-08-06 15:44:28 -04:00
										 |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |                 {% if perms.ipam.add_prefix %} | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                 <div class="card-footer text-end noprint"> | 
					
						
							|  |  |  |                     <a href="{% url 'ipam:prefix_add' %}?{% if object.tenant %}tenant={{ object.tenant.pk }}&{% endif %}site={{ object.site.pk }}&vlan={{ object.pk }}" class="btn btn-primary btn-sm"> | 
					
						
							| 
									
										
										
										
											2021-04-21 11:31:28 -07:00
										 |  |  |                         <i class="mdi mdi-plus-thick" aria-hidden="true"></i> | 
					
						
							|  |  |  |                         Add a Prefix | 
					
						
							| 
									
										
										
										
											2021-03-13 02:19:42 -07:00
										 |  |  |                     </a> | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |                 {% endif %} | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2020-11-19 12:24:52 -05:00
										 |  |  |             {% plugin_full_width_page object %} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  | {% endblock %} |