diff --git a/IncBackups/templates/IncBackups/createV2Backup.html b/IncBackups/templates/IncBackups/createV2Backup.html new file mode 100644 index 000000000..6b5eb8ddd --- /dev/null +++ b/IncBackups/templates/IncBackups/createV2Backup.html @@ -0,0 +1,229 @@ +{% extends "baseTemplate/index.html" %} +{% load i18n %} +{% block title %}{% trans "Create Incremental Backup" %}{% endblock %} +{% block content %} + + {% load static %} + + {% get_current_language as LANGUAGE_CODE %} + + +
+
+

{% trans "Backup Website" %} - {% trans "Backup Docs" %} +

+

{% trans "This page can be used to create incremental backups for your websites." %}

+
+ +

habbi test v2 backup

+ +{#
#} +{#
#} +{#

#} +{# {% trans "Backup Website" %} #} +{#

#} +{#
#} +{##} +{##} +{#
#} +{##} +{##} +{#
#} +{# #} +{#
#} +{# #} +{#
#} +{#
#} +{##} +{#
#} +{# #} +{#
#} +{# #} +{#
#} +{#
#} +{##} +{#
#} +{# #} +{#
#} +{#
#} +{# #} +{#
#} +{#
#} +{# #} +{#
#} +{#
#} +{# #} +{#
#} +{#
#} +{# #} +{#
#} +{#
#} +{# #} +{#
#} +{#
#} +{# #} +{#
#} +{##} +{##} +{# #} +{##} +{#
#} +{#
#} +{#
#} +{# #} +{#
#} +{#
#} +{#
#} +{##} +{##} +{# #} +{##} +{#
#} +{# #} +{#
#} +{# #} +{#
#} +{#
#} +{##} +{##} +{# #} +{##} +{#
#} +{##} +{#
#} +{##} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{#
{% trans "ID" %}{% trans "Date" %}{% trans "Restore" %}{% trans "Delete" %}
#} +{# Restore Points#} +{# #} +{#
#} +{#
#} +{#
#} +{##} +{# #} +{##} +{##} +{#
#} +{##} +{##} +{#
#} +{#
#} +{#
#} + + +
+ + +{% endblock %} \ No newline at end of file diff --git a/IncBackups/urls.py b/IncBackups/urls.py index a8862cf04..fa6882672 100644 --- a/IncBackups/urls.py +++ b/IncBackups/urls.py @@ -22,4 +22,7 @@ urlpatterns = [ url(r'^saveChanges$', views.save_changes, name='saveChanges'), url(r'^removeSite$', views.remove_site, name='removeSite'), url(r'^addWebsite$', views.add_website, name='addWebsite'), + ### V2 Backups URls + url(r'^createV2Backup$', views.createV2Backup, name='createV2Backup'), + ] \ No newline at end of file diff --git a/IncBackups/views.py b/IncBackups/views.py index 8f319ac95..a4c92b9ab 100644 --- a/IncBackups/views.py +++ b/IncBackups/views.py @@ -704,3 +704,22 @@ def add_website(request): except BaseException as msg: final_json = json.dumps({'status': 0, 'error_message': str(msg)}) return HttpResponse(final_json) + + + +def createV2Backup(request): + try: + #user_id, current_acl = _get_user_acl(request) + # if ACLManager.currentContextPermission(current_acl, 'createBackup') == 0: + # return ACLManager.loadError() + + # websites = ACLManager.findAllSites(current_acl, user_id) + # + # destinations = _get_destinations(local=True) + proc = httpProc(request, 'IncBackups/createV2Backup.html', 'createBackup') + return proc.render() + + # return def_renderer(request, 'IncBackups/createV2Backup.html', 'createBackup') + except BaseException as msg: + final_json = json.dumps({'status': 0, 'error_message': str(msg)}) + return HttpResponse(final_json) diff --git a/baseTemplate/templates/baseTemplate/index.html b/baseTemplate/templates/baseTemplate/index.html index cdfe3eee8..96e63e638 100755 --- a/baseTemplate/templates/baseTemplate/index.html +++ b/baseTemplate/templates/baseTemplate/index.html @@ -715,6 +715,24 @@ + +