fix bugs on UI

This commit is contained in:
ssamson-tis 2015-07-09 11:02:28 +02:00
parent 2fb2166585
commit 74ae78c8d2
2 changed files with 11 additions and 4 deletions

View File

@ -47,6 +47,7 @@
</script> </script>
<form id="backup" action='/export_backup'> <form id="backup" action='/export_backup'>
<p> Select backups to save : <br/> <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> <div class="checkbox"><label><input type="checkbox" class="checkbox1" id="selectall" checked>Select all</label></div>
{% for entry in sections|sort %} {% for entry in sections|sort %}
<div class="col-xs-6 col-md-4"> <div class="col-xs-6 col-md-4">
@ -55,9 +56,14 @@
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
<p> </div>
<input type="hidden" name="start" value="true" /> <div class="row">
<input type="button" id="confirm_button" value="Launch Backup" style="margin-left: 400px;" /> <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" class="btn btn-primary btn-lg" />
</div>
</div>
</form> </form>
{% else %} {% else %}

View File

@ -319,7 +319,8 @@ def export_backup():
global mindate global mindate
mindate = datetime2isodate(datetime.datetime.now()) mindate = datetime2isodate(datetime.datetime.now())
if not error and start: 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) set_task(task)