| 
									
										
										
										
											2020-04-10 10:21:02 -04:00
										 |  |  | {% extends 'base.html' %} | 
					
						
							| 
									
										
										
										
											2017-08-18 14:37:19 -04:00
										 |  |  | {% load helpers %} | 
					
						
							|  |  |  | {% load form_helpers %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block title %}Create {{ component_type }} ({{ parent }}){% endblock %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block content %} | 
					
						
							| 
									
										
										
										
											2020-02-05 12:36:38 -05:00
										 |  |  | <form action="" method="post" class="form form-horizontal"> | 
					
						
							| 
									
										
										
										
											2017-08-18 14:37:19 -04:00
										 |  |  |     {% 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"> | 
					
						
							|  |  |  |                 <div class="panel-heading"> | 
					
						
							|  |  |  |                     <strong>{{ component_type|bettertitle }}</strong> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <div class="panel-body"> | 
					
						
							|  |  |  |                     <div class="form-group"> | 
					
						
							|  |  |  |                         <label class="col-md-3 control-label required">Virtual Machine</label> | 
					
						
							|  |  |  |                         <div class="col-md-9"> | 
					
						
							|  |  |  |                             <p class="form-control-static">{{ parent }}</p> | 
					
						
							|  |  |  |                         </div> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                     {% render_form form %} | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  | 		    <div class="form-group"> | 
					
						
							|  |  |  |                 <div class="col-md-9 col-md-offset-3"> | 
					
						
							|  |  |  |                     <button type="submit" name="_create" class="btn btn-primary">Create</button> | 
					
						
							|  |  |  |                     <button type="submit" name="_addanother" class="btn btn-primary">Create and Add More</button> | 
					
						
							|  |  |  |                     <a href="{{ return_url }}" class="btn btn-default">Cancel</a> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  | 		    </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </form> | 
					
						
							|  |  |  | {% endblock %} |