| 
									
										
										
										
											2023-08-09 23:46:03 +05:30
										 |  |  | {% extends 'dcim/device/components_base.html' %} | 
					
						
							| 
									
										
										
										
											2020-11-13 15:00:12 -05:00
										 |  |  | {% load helpers %} | 
					
						
							| 
									
										
										
										
											2023-07-29 03:30:25 +07:00
										 |  |  | {% load i18n %} | 
					
						
							| 
									
										
										
										
											2020-11-13 15:00:12 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-11 14:13:55 -04:00
										 |  |  | {% block table_controls %} | 
					
						
							|  |  |  |     {% include 'dcim/device/inc/interface_table_controls.html' with table_modal="DeviceInterfaceTable_config" %} | 
					
						
							|  |  |  | {% endblock table_controls %} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-09 23:46:03 +05:30
										 |  |  | {% block bulk_delete_controls %} | 
					
						
							|  |  |  |     {{ block.super }} | 
					
						
							|  |  |  |     {% with bulk_disconnect_view=child_model|validated_viewname:"bulk_disconnect" %} | 
					
						
							|  |  |  |         {% if 'bulk_disconnect' in actions and bulk_disconnect_view %} | 
					
						
							|  |  |  |             <button type="submit" name="_disconnect" | 
					
						
							|  |  |  |                     formaction="{% url bulk_disconnect_view %}?return_url={{ return_url }}" | 
					
						
							|  |  |  |                     class="btn btn-outline-danger btn-sm"> | 
					
						
							| 
									
										
										
										
											2023-08-09 15:31:21 -04:00
										 |  |  |                 <span class="mdi mdi-ethernet-cable-off" aria-hidden="true"></span> {% trans "Disconnect" %} | 
					
						
							| 
									
										
										
										
											2023-08-09 23:46:03 +05:30
										 |  |  |             </button> | 
					
						
							| 
									
										
										
										
											2022-08-16 09:49:51 -04:00
										 |  |  |         {% endif %} | 
					
						
							| 
									
										
										
										
											2023-08-09 23:46:03 +05:30
										 |  |  |     {% endwith %} | 
					
						
							|  |  |  | {% endblock bulk_delete_controls %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block bulk_extra_controls %} | 
					
						
							|  |  |  |     {{ block.super }} | 
					
						
							| 
									
										
										
										
											2022-08-09 17:32:20 -04:00
										 |  |  |     {% if perms.dcim.add_interface %} | 
					
						
							| 
									
										
										
										
											2023-08-09 23:46:03 +05:30
										 |  |  |         <div class="bulk-button-group"> | 
					
						
							|  |  |  |             <a href="{% url 'dcim:interface_add' %}?device={{ object.pk }}&return_url={% url 'dcim:device_interfaces' pk=object.pk %}" | 
					
						
							|  |  |  |                class="btn btn-primary btn-sm"> | 
					
						
							| 
									
										
										
										
											2023-08-09 15:31:21 -04:00
										 |  |  |                 <i class="mdi mdi-plus-thick" aria-hidden="true"></i> {% trans "Add Interfaces" %} | 
					
						
							| 
									
										
										
										
											2023-08-09 23:46:03 +05:30
										 |  |  |             </a> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2022-08-09 17:32:20 -04:00
										 |  |  |     {% endif %} | 
					
						
							| 
									
										
										
										
											2023-08-09 23:46:03 +05:30
										 |  |  | {% endblock bulk_extra_controls %} |