| 
									
										
										
										
											2020-04-10 10:21:02 -04:00
										 |  |  | {% extends 'base.html' %} | 
					
						
							| 
									
										
										
										
											2016-07-01 17:12:43 -04:00
										 |  |  | {% load form_helpers %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block content %} | 
					
						
							|  |  |  | <form action="." method="post" class="form form-horizontal"> | 
					
						
							|  |  |  |     {% csrf_token %} | 
					
						
							|  |  |  |     <div class="row"> | 
					
						
							|  |  |  |         <div class="col-md-6 col-md-offset-3"> | 
					
						
							|  |  |  |             {% if form.non_field_errors %} | 
					
						
							|  |  |  |                 <div class="panel panel-danger"> | 
					
						
							|  |  |  |                     <div class="panel-heading"><strong>Errors</strong></div> | 
					
						
							|  |  |  |                     <div class="panel-body"> | 
					
						
							|  |  |  |                         {{ form.non_field_errors }} | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  |             <div class="panel panel-default"> | 
					
						
							| 
									
										
										
										
											2017-08-02 13:15:28 -04:00
										 |  |  |                 <div class="panel-heading">{% block title %}Populate {{ device_bay }}{% endblock %}</div> | 
					
						
							| 
									
										
										
										
											2016-07-01 17:12:43 -04:00
										 |  |  |                 <div class="panel-body"> | 
					
						
							|  |  |  |                     <div class="form-group"> | 
					
						
							|  |  |  |                         <label class="col-md-3 control-label required">Parent Device</label> | 
					
						
							|  |  |  |                         <div class="col-md-9"> | 
					
						
							|  |  |  |                             <p class="form-control-static">{{ device_bay.device }}</p> | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                     <div class="form-group"> | 
					
						
							|  |  |  |                         <label class="col-md-3 control-label required">Bay</label> | 
					
						
							|  |  |  |                         <div class="col-md-9"> | 
					
						
							| 
									
										
										
										
											2017-11-02 08:51:27 -07:00
										 |  |  |                             <p class="form-control-static">{{ device_bay }}</p> | 
					
						
							| 
									
										
										
										
											2016-07-01 17:12:43 -04:00
										 |  |  |                         </div> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                     {% render_form form %} | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  | 		    <div class="form-group"> | 
					
						
							|  |  |  |                 <div class="col-md-9 col-md-offset-3"> | 
					
						
							|  |  |  |                     <button type="submit" name="_update" class="btn btn-primary">Save</button> | 
					
						
							| 
									
										
										
										
											2017-01-23 14:07:26 -05:00
										 |  |  |                     <a href="{{ return_url }}" class="btn btn-default">Cancel</a> | 
					
						
							| 
									
										
										
										
											2016-07-01 17:12:43 -04:00
										 |  |  |                 </div> | 
					
						
							|  |  |  | 		    </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </form> | 
					
						
							|  |  |  | {% endblock %} |