| 
									
										
										
										
											2022-06-27 23:24:50 -05:00
										 |  |  | {% extends 'generic/object.html' %} | 
					
						
							|  |  |  | {% load helpers %} | 
					
						
							|  |  |  | {% load plugins %} | 
					
						
							|  |  |  | {% load render_table from django_tables2 %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block content %} | 
					
						
							|  |  |  | <div class="row mb-3"> | 
					
						
							|  |  |  | 	<div class="col col-md-6"> | 
					
						
							| 
									
										
										
										
											2022-07-11 21:51:39 -04:00
										 |  |  |     <div class="card"> | 
					
						
							|  |  |  |       <h5 class="card-header">L2VPN Attributes</h5> | 
					
						
							|  |  |  |       <div class="card-body"> | 
					
						
							|  |  |  |         <table class="table table-hover attr-table"> | 
					
						
							|  |  |  |           <tr> | 
					
						
							|  |  |  |             <th scope="row">Name</th> | 
					
						
							|  |  |  |             <td>{{ object.name|placeholder }}</td> | 
					
						
							|  |  |  |           </tr> | 
					
						
							|  |  |  |           <tr> | 
					
						
							|  |  |  |             <th scope="row">Identifier</th> | 
					
						
							|  |  |  |             <td>{{ object.identifier|placeholder }}</td> | 
					
						
							|  |  |  |           </tr> | 
					
						
							|  |  |  |           <tr> | 
					
						
							|  |  |  |             <th scope="row">Type</th> | 
					
						
							|  |  |  |             <td>{{ object.get_type_display }}</td> | 
					
						
							|  |  |  |           </tr> | 
					
						
							|  |  |  |           <tr> | 
					
						
							|  |  |  |             <th scope="row">Description</th> | 
					
						
							|  |  |  |             <td>{{ object.description|placeholder }}</td> | 
					
						
							|  |  |  |           </tr> | 
					
						
							|  |  |  |           <tr> | 
					
						
							|  |  |  |             <th scope="row">Tenant</th> | 
					
						
							|  |  |  |             <td>{{ object.tenant|linkify|placeholder }}</td> | 
					
						
							|  |  |  |           </tr> | 
					
						
							|  |  |  |         </table> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |     {% include 'inc/panels/tags.html' with tags=object.tags.all url='ipam:l2vpn_list' %} | 
					
						
							|  |  |  |     {% plugin_left_page object %} | 
					
						
							| 
									
										
										
										
											2022-06-27 23:24:50 -05:00
										 |  |  | 	</div> | 
					
						
							|  |  |  | 	<div class="col col-md-6"> | 
					
						
							| 
									
										
										
										
											2022-07-11 21:51:39 -04:00
										 |  |  |       {% include 'inc/panels/contacts.html' %} | 
					
						
							|  |  |  |       {% include 'inc/panels/custom_fields.html' %} | 
					
						
							|  |  |  |       {% plugin_right_page object %} | 
					
						
							| 
									
										
										
										
											2022-06-27 23:24:50 -05:00
										 |  |  |     </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | <div class="row mb-3"> | 
					
						
							|  |  |  | 	<div class="col col-md-6"> | 
					
						
							|  |  |  |     {% include 'inc/panel_table.html' with table=import_targets_table heading="Import Route Targets" %} | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | 	<div class="col col-md-6"> | 
					
						
							|  |  |  |     {% include 'inc/panel_table.html' with table=export_targets_table heading="Export Route Targets" %} | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | <div class="row mb-3"> | 
					
						
							|  |  |  | 	<div class="col col-md-12"> | 
					
						
							| 
									
										
										
										
											2022-07-11 21:51:39 -04:00
										 |  |  |     <div class="card"> | 
					
						
							|  |  |  |       <h5 class="card-header">Terminations</h5> | 
					
						
							|  |  |  |       <div class="card-body"> | 
					
						
							|  |  |  |         {% render_table terminations_table 'inc/table.html' %} | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |       {% if perms.ipam.add_l2vpntermination %} | 
					
						
							|  |  |  |         <div class="card-footer text-end noprint"> | 
					
						
							| 
									
										
										
										
											2022-08-23 16:17:40 -07:00
										 |  |  |           <a href="{% url 'ipam:l2vpntermination_add' %}?l2vpn={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-primary btn-sm{% if not object.can_add_termination %} disabled" aria-disabled="true{% endif %}"> | 
					
						
							| 
									
										
										
										
											2022-07-11 21:51:39 -04:00
										 |  |  |             <i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add a Termination | 
					
						
							|  |  |  |           </a> | 
					
						
							| 
									
										
										
										
											2022-06-27 23:24:50 -05:00
										 |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2022-07-11 21:51:39 -04:00
										 |  |  |       {% endif %} | 
					
						
							| 
									
										
										
										
											2022-06-27 23:24:50 -05:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2022-07-11 21:51:39 -04:00
										 |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2022-06-27 23:24:50 -05:00
										 |  |  | </div> | 
					
						
							|  |  |  | <div class="row mb-3"> | 
					
						
							| 
									
										
										
										
											2022-07-11 21:51:39 -04:00
										 |  |  |   <div class="col col-md-12"> | 
					
						
							|  |  |  |     {% plugin_full_width_page object %} | 
					
						
							| 
									
										
										
										
											2022-06-27 23:24:50 -05:00
										 |  |  |   </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | {% endblock %} |