| 
									
										
										
										
											2020-11-13 15:00:12 -05:00
										 |  |  | {% extends 'dcim/device/base.html' %} | 
					
						
							|  |  |  | {% load render_table from django_tables2 %} | 
					
						
							|  |  |  | {% load helpers %} | 
					
						
							|  |  |  | {% load static %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block content %} | 
					
						
							| 
									
										
										
										
											2022-04-28 07:47:04 +02:00
										 |  |  |   {% include 'inc/table_controls_htmx.html' with table_modal="DeviceDeviceBayTable_config" %} | 
					
						
							|  |  |  |    | 
					
						
							| 
									
										
										
										
											2021-07-12 12:06:11 -04:00
										 |  |  |   <form method="post"> | 
					
						
							| 
									
										
										
										
											2021-04-21 11:31:28 -07:00
										 |  |  |     {% csrf_token %} | 
					
						
							| 
									
										
										
										
											2021-12-14 15:31:42 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <div class="card"> | 
					
						
							|  |  |  |       <div class="card-body" id="object_list"> | 
					
						
							|  |  |  |         {% include 'htmx/table.html' %} | 
					
						
							|  |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2021-12-13 15:36:51 -05:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2021-12-14 15:31:42 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-07-15 00:31:12 -07:00
										 |  |  |     <div class="noprint bulk-buttons"> | 
					
						
							| 
									
										
										
										
											2022-08-16 09:49:51 -04:00
										 |  |  |       <div class="bulk-button-group"> | 
					
						
							| 
									
										
										
										
											2022-08-16 12:56:49 -04:00
										 |  |  |         {% if 'bulk_edit' in actions %} | 
					
						
							| 
									
										
										
										
											2022-08-16 09:49:51 -04:00
										 |  |  |           <div class="btn-group" role="group"> | 
					
						
							|  |  |  |             <button type="submit" name="_edit" formaction="{% url 'dcim:devicebay_bulk_edit' %}?device={{ object.pk }}&return_url={% url 'dcim:device_devicebays' pk=object.pk %}" class="btn btn-warning btn-sm"> | 
					
						
							|  |  |  |               <i class="mdi mdi-pencil" aria-hidden="true"></i> Edit | 
					
						
							|  |  |  |             </button> | 
					
						
							|  |  |  |             <button type="submit" name="_rename" formaction="{% url 'dcim:devicebay_bulk_rename' %}?return_url={% url 'dcim:device_devicebays' pk=object.pk %}" class="btn btn-outline-warning btn-sm"> | 
					
						
							|  |  |  |               <i class="mdi mdi-pencil-outline" aria-hidden="true"></i> Rename | 
					
						
							|  |  |  |             </button> | 
					
						
							|  |  |  |           </div> | 
					
						
							|  |  |  |         {% endif %} | 
					
						
							| 
									
										
										
										
											2022-08-16 12:56:49 -04:00
										 |  |  |         {% if 'bulk_delete' in actions %} | 
					
						
							| 
									
										
										
										
											2022-08-16 09:49:51 -04:00
										 |  |  |           <button type="submit" name="_delete" formaction="{% url 'dcim:devicebay_bulk_delete' %}?return_url={% url 'dcim:device_devicebays' pk=object.pk %}" class="btn btn-danger btn-sm"> | 
					
						
							|  |  |  |             <i class="mdi mdi-trash-can-outline" aria-hidden="true"></i> Delete | 
					
						
							|  |  |  |           </button> | 
					
						
							|  |  |  |         {% endif %} | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |       {% if perms.dcim.add_devicebay %} | 
					
						
							| 
									
										
										
										
											2021-07-15 00:31:12 -07:00
										 |  |  |         <div class="bulk-button-group"> | 
					
						
							| 
									
										
										
										
											2022-08-16 09:49:51 -04:00
										 |  |  |           <a href="{% url 'dcim:devicebay_add' %}?device={{ object.pk }}&return_url={% url 'dcim:device_devicebays' pk=object.pk %}" class="btn btn-primary btn-sm"> | 
					
						
							|  |  |  |             <i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add Device Bays | 
					
						
							|  |  |  |           </a> | 
					
						
							| 
									
										
										
										
											2021-07-15 00:31:12 -07:00
										 |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2022-08-16 09:49:51 -04:00
										 |  |  |       {% endif %} | 
					
						
							| 
									
										
										
										
											2021-04-21 11:31:28 -07:00
										 |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2021-07-12 12:06:11 -04:00
										 |  |  |   </form> | 
					
						
							| 
									
										
										
										
											2020-11-13 15:00:12 -05:00
										 |  |  | {% endblock %} | 
					
						
							| 
									
										
										
										
											2022-01-05 09:21:48 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | {% block modals %} | 
					
						
							| 
									
										
										
										
											2022-01-10 09:30:50 -05:00
										 |  |  |   {{ block.super }} | 
					
						
							| 
									
										
										
										
											2022-01-05 09:21:48 -05:00
										 |  |  |   {% table_config_form table %} | 
					
						
							|  |  |  | {% endblock modals %} |