mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	Moved admin/common/form.html to project templates
This commit is contained in:
		
							parent
							
								
									d9785e397b
								
							
						
					
					
						commit
						1a3cc36ada
					
				
					 3 changed files with 7 additions and 3 deletions
				
			
		
							
								
								
									
										29
									
								
								templates/common/form.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								templates/common/form.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | |||
| {% extends "base.html" %} | ||||
| {% load bootstrap4 %} | ||||
| {% load icons %} | ||||
| {% load i18n %} | ||||
| 
 | ||||
| {% block title %}{{ title }}{% endblock %} | ||||
| 
 | ||||
| {% block content %} | ||||
| <div class="row"> | ||||
|     <div class="col-lg-12"> | ||||
|         <h2 class="page-header">{{ title }}</h2> | ||||
|     </div> | ||||
| </div> | ||||
| {% bootstrap_messages %} | ||||
| <div class="row"> | ||||
|     <div class="thumbnail col-sm-10 offset-1"> | ||||
|         <form id="create-update" action="" method="post"> | ||||
|             {% csrf_token %} | ||||
|             {% bootstrap_form form layout='horizontal' %} | ||||
|         </form> | ||||
|         <div class="form-group float-right"> | ||||
|             <a class="btn btn-primary" href="javascript:history.back()">{% icon 'times' %} {% trans "Cancel" %}</a> | ||||
|             <button type="submit" form="create-update" class="btn btn-success"> | ||||
|                 {% icon 'check' %} {% trans "Save" %} | ||||
|             </button> | ||||
|         </div> | ||||
|     </div> | ||||
| </div> | ||||
| {% endblock content %} | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue