| 
									
										
										
										
											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 %} | 
					
						
							| 
									
										
										
										
											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
										 |  |  |     {% include 'inc/table_controls_htmx.html' with table_modal="DeviceDeviceBayTable_config" %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <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"> | 
					
						
							|  |  |  |         <div class="bulk-button-group"> | 
					
						
							|  |  |  |             {% if perms.dcim.change_devicebay %} | 
					
						
							| 
									
										
										
										
											2021-12-21 10:28:28 -05:00
										 |  |  |                 <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"> | 
					
						
							| 
									
										
										
										
											2021-07-15 00:31:12 -07:00
										 |  |  |                     <i class="mdi mdi-pencil-outline" aria-hidden="true"></i> Rename | 
					
						
							|  |  |  |                 </button> | 
					
						
							| 
									
										
										
										
											2021-12-21 10:28:28 -05:00
										 |  |  |                 <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"> | 
					
						
							| 
									
										
										
										
											2021-07-15 00:31:12 -07:00
										 |  |  |                     <i class="mdi mdi-pencil" aria-hidden="true"></i> Edit | 
					
						
							|  |  |  |                 </button> | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  |             {% if perms.dcim.delete_devicebay %} | 
					
						
							| 
									
										
										
										
											2021-12-21 10:28:28 -05:00
										 |  |  |                 <button type="submit" formaction="{% url 'dcim:devicebay_bulk_delete' %}?return_url={% url 'dcim:device_devicebays' pk=object.pk %}" class="btn btn-outline-danger btn-sm"> | 
					
						
							| 
									
										
										
										
											2021-07-15 00:31:12 -07:00
										 |  |  |                     <i class="mdi mdi-trash-can-outline" aria-hidden="true"></i> Delete selected | 
					
						
							|  |  |  |                 </button> | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2021-07-12 12:06:11 -04:00
										 |  |  |         {% if perms.dcim.add_devicebay %} | 
					
						
							| 
									
										
										
										
											2021-07-15 00:31:12 -07:00
										 |  |  |             <div class="bulk-button-group"> | 
					
						
							| 
									
										
										
										
											2021-12-21 10:28:28 -05: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"> | 
					
						
							| 
									
										
										
										
											2021-07-12 12:06:11 -04:00
										 |  |  |                     <i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add Device Bays | 
					
						
							|  |  |  |                 </a> | 
					
						
							| 
									
										
										
										
											2021-04-21 11:31:28 -07:00
										 |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2021-07-12 12:06:11 -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 %} |