From c46ab40f684adea7f2769a36cab9fb880999028f Mon Sep 17 00:00:00 2001 From: Hassan Hashmi <75794688+hassanhashmey@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:01:01 +0500 Subject: [PATCH] Docker site done --- .../templates/baseTemplate/index.html | 30 + plogical/DockerSites.py | 154 ++++- plogical/acl.py | 25 +- websiteFunctions/models.py | 1 + .../websiteFunctions/websiteFunctions.js | 533 ++++++++++++++++++ .../websiteFunctions/CreateDockerPackage.html | 336 +++++++++++ .../websiteFunctions/CreateDockerSite.html | 261 +++++++++ .../websiteFunctions/DockerSiteHome.html | 18 + .../websiteFunctions/ListDockersite.html | 164 ++++++ .../websiteFunctions/assignPackage.html | 224 ++++++++ .../websiteFunctions/createWebsite.html | 21 - websiteFunctions/urls.py | 13 + websiteFunctions/views.py | 103 ++++ websiteFunctions/website.py | 442 +++++++++++++-- 14 files changed, 2257 insertions(+), 68 deletions(-) create mode 100644 websiteFunctions/templates/websiteFunctions/CreateDockerPackage.html create mode 100644 websiteFunctions/templates/websiteFunctions/CreateDockerSite.html create mode 100644 websiteFunctions/templates/websiteFunctions/DockerSiteHome.html create mode 100644 websiteFunctions/templates/websiteFunctions/ListDockersite.html create mode 100644 websiteFunctions/templates/websiteFunctions/assignPackage.html diff --git a/baseTemplate/templates/baseTemplate/index.html b/baseTemplate/templates/baseTemplate/index.html index 6a82084f0..4a6130eab 100755 --- a/baseTemplate/templates/baseTemplate/index.html +++ b/baseTemplate/templates/baseTemplate/index.html @@ -371,6 +371,36 @@ + +
{% trans "On this page you can create, list, modify and delete Packages from your server." %}
+Package Name | +CPUs | +Memory | +Bandwidth | +Disk Space | +Action | + +
---|---|---|---|---|---|
{{ pack.Name }} | +{{ pack.CPUs }} | +{{ pack.Ram }} | +{{ pack.Bandwidth }} | +{{ pack.DiskSpace }} | ++ + + | + +
{% trans "On this page you can create docker site on your server." %}
+{% trans "On this page you can launch, list, modify and delete Dockersite from your server." %}
+{% trans "On this page you can Assign Packages to user." %}
+User | +Package Name | +Package Details | +Action | + +
---|---|---|---|
{{ pack.user.userName }} | +{{ pack.package.Name }} | +CPUs: {{ pack.package.CPUs }} + Memory: {{ pack.package.Ram }}MB DiskSpace: {{ pack.package.DiskSpace }} + Bandwidth: {{ pack.package.Bandwidth }} | + ++{# #} + + | + +