fix bugs on UI
This commit is contained in:
		
							parent
							
								
									2fb2166585
								
							
						
					
					
						commit
						74ae78c8d2
					
				@ -47,6 +47,7 @@
 | 
			
		||||
        </script>
 | 
			
		||||
        <form id="backup" action='/export_backup'>
 | 
			
		||||
			<p> Select backups to save : <br/> 
 | 
			
		||||
	    <div class="row">
 | 
			
		||||
				<div class="checkbox"><label><input type="checkbox"  class="checkbox1" id="selectall"  checked>Select all</label></div>		
 | 
			
		||||
			{% for entry in sections|sort %}
 | 
			
		||||
			<div class="col-xs-6 col-md-4">
 | 
			
		||||
@ -55,9 +56,14 @@
 | 
			
		||||
			    </div>
 | 
			
		||||
			</div>
 | 
			
		||||
	        {% endfor %}
 | 
			
		||||
			<p>
 | 
			
		||||
	    </div>
 | 
			
		||||
	    <div class="row">
 | 
			
		||||
		    <div class="col-sm-offset-5 col-sm-2 text-center ">
 | 
			
		||||
	              <input type="hidden" name="start" value="true" />
 | 
			
		||||
            <input type="button" id="confirm_button" value="Launch Backup" style="margin-left: 400px;"  />
 | 
			
		||||
 		      <input type="button" id="confirm_button" value="Launch Backup" class="btn btn-primary btn-lg"  />
 | 
			
		||||
		 </div>
 | 
			
		||||
	    </div>
 | 
			
		||||
 | 
			
		||||
        </form>
 | 
			
		||||
        
 | 
			
		||||
    {% else %}
 | 
			
		||||
 | 
			
		||||
@ -319,7 +319,8 @@ def export_backup():
 | 
			
		||||
        global mindate 
 | 
			
		||||
        mindate =  datetime2isodate(datetime.datetime.now())
 | 
			
		||||
        if not error and start:
 | 
			
		||||
            task = run_export_backup(base=backup_base_dir, config_file=tisbackup_config_file, mount_point=mount_point, backup_sections=",".join([str(x) for x in backup_sections])) 
 | 
			
		||||
	    print tisbackup_config_file
 | 
			
		||||
            task = run_export_backup(base=backup_base_dir, config_file=CONFIG[config_number], mount_point=mount_point, backup_sections=",".join([str(x) for x in backup_sections])) 
 | 
			
		||||
	    set_task(task)
 | 
			
		||||
		
 | 
			
		||||
            
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user