Review Code

This commit is contained in:
Zarak Khan
2024-02-22 11:35:06 +05:00
parent 8b4c0ffc3b
commit 2fab5982a4
75 changed files with 11067 additions and 1022 deletions

View File

@@ -95,13 +95,13 @@
<p class="font-semibold w-60">Additional Features</p>
</div>
<div>
<div class="checkbox">
<div>
<label>
<input ng-model="allowFullDomain" type="checkbox" value="">
Allow Creation of Fully Qualified Domain as Child-Domains
</label>
</div>
<div class="checkbox">
<div>
<label>
<input ng-model="enforceDiskLimits" type="checkbox" value="">
Enforce Disk Limits

View File

@@ -73,302 +73,296 @@
ng-hide="record.allowFullDomain">Disabled</span>
</td>
<td class="flex gap-1 px-6 py-4">
<button ng-click="editInitial(record.package, record.diskSpace, record.bandwidth,
record.emailAccounts, record.dataBases, record.ftpAccounts, record.allowedDomains, record.allowFullDomain, record.enforceDiskLimits)"
data-modal-target="EditListUser_{$$index$}"
data-modal-toggle="EditListUser_{$$index$}"
class="bg-orange-500 px-2 py-1 text-white"
type="button">
Edit
</button>
<div id="EditListUser_{$$index$}" tabindex="-1"
class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full">
<div>
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700">
<h2 class="px-4 py-4 font-bold text-xl">Edit Users</h2>
<button type="button" data-modal-toggle="EditListUser_{$$index$}"
class="absolute top-3 end-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white"
data-modal-hide="EditListUser">
<svg class="w-3 h-3" aria-hidden="true"
xmlns="http://www.w3.org/2000/svg" fill="none"
viewBox="0 0 14 14">
<path stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2"
d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
</svg>
<span class="sr-only">Close modal</span>
</button>
<div class="p-4">
<div ng-hide="installationDetailsForm" class="flex mt-4 py-2 px-6">
<div>
<p class="font-semibold w-60">Name</p>
</div>
<div>
<input name="name" type="text"
class="w-80 bg-gray-100 rounded px-2 py-1"
ng-model="name" readonly>
</div>
</div>
<div class="flex py-2 px-6">
<div>
<p class="font-semibold w-60">New Owner</p>
</div>
<div>
<select ng-change="saveResellerChanges()"
ng-model="$parent.newOwner"
class="w-80 bg-gray-100 rounded px-2 py-1">
{% for items in resellerPrivUsers %}
<option>{{ items }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="flex py-2 px-6">
<div>
<p class="font-semibold w-60">Select ACL</p>
</div>
<div>
<select ng-change="changeACLFunc()"
ng-model="$parent.selectedACL"
class="w-80 bg-gray-100 rounded px-2 py-1">
{% for items in aclNames %}
<option>{{ items }}</option>
{% endfor %}
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<button ng-click="deletePackageFinal(record.package)"
data-modal-target="DeleteListUser_{$$index$}"
data-modal-toggle="DeleteListUser_{$$index$}"
class="bg-orange-500 px-2 py-1 text-white"
type="button">
Delete
</button>
<div id="DeleteListUser_{$$index$}" tabindex="-1"
class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full">
<div class="relative p-4 w-full max-w-md max-h-full">
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700">
<button type="button" data-modal-toggle="DeleteListUser"
class="absolute top-3 end-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white"
data-modal-hide="DeleteListUser">
<svg class="w-3 h-3" aria-hidden="true"
xmlns="http://www.w3.org/2000/svg" fill="none"
viewBox="0 0 14 14">
<path stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2"
d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
</svg>
<span class="sr-only">Close modal</span>
</button>
<div class="p-4 md:p-5 text-center">
<svg class="mx-auto mb-4 text-gray-400 w-12 h-12 dark:text-gray-200"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg" fill="none"
viewBox="0 0 20 20">
<path stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2"
d="M10 11V6m0 8h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/>
</svg>
<h3 class="mb-5 text-lg font-normal text-gray-500 dark:text-gray-400">
Are you sure you want to
delete this user {$ UserToDelete $} ?</h3>
<button ng-click="deleteUserFinal()" data-modal-hide="DeleteListUser"
type="button"
data-modal-toggle="DeleteListUser"
class="text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center me-2">
Yes, I'm sure
</button>
<button data-modal-hide="DeleteListUser" type="button"
data-modal-toggle="DeleteListUser"
class="text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600">
No, cancel
</button>
</div>
</div>
</div>
</div>
<a ng-click="deletePackageFinal(record.package)"
class="bg-orange-500 px-2 py-1 text-white" href="#"
title=""><span>{% trans 'Delete' %}</span></a>
{# <a onclick="return false;"#}
{# ng-click="editInitial(record.name)"#}
{# class="bg-orange-500 px-2 py-1 text-white ml-1"#}
{# href="#" data-modal-target="edit" data-modal-toggle="edit"><i class="fa fa-folder"#}
{# aria-hidden="true"></i> {% trans "EDIT" %}#}
{# </a>#}
{# <div id="edit" tabindex="-1"#}
{# class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full">#}
{# <div class="relative p-4 w-full max-w-4xl max-h-full">#}
{# <div class="relative bg-white shadow dark:bg-gray-700">#}
{# <div class="flex items-center bg-blue-400 px-4 py-4">#}
{# <p class="font-bold">Edit Package</p>#}
{# <button type="button" data-modal-toggle="edit"#}
{# class="absolute top-2 end-1 text-black bg-transparent hover:text-black rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center"#}
{# data-modal-hide="edit">#}
{# <svg class="w-3 h-3" aria-hidden="true"#}
{# xmlns="http://www.w3.org/2000/svg" fill="none"#}
{# viewBox="0 0 14 14">#}
{# <path stroke="currentColor" stroke-linecap="round"#}
{# stroke-linejoin="round" stroke-width="2"#}
{# d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>#}
{# </svg>#}
{# <span class="sr-only">Close modal</span>#}
{# </button>#}
{# </div>#}
{# <div class="p-4 md:p-5">#}
{# <form name="containerSettingsForm" action="/" id="createPackages"#}
{# class="form-horizontal bordered-row panel-body">#}
{# <div ng-hide="installationDetailsForm" class="flex mt-4 py-2 px-6">#}
{# <div>#}
{# <p class="font-semibold w-60">Name</p>#}
{# </div>#}
{# <div>#}
{# <input name="name" type="text"#}
{# class="w-80 bg-gray-100 rounded px-2 py-1"#}
{# ng-model="name" readonly>#}
{# </div>#}
{# </div>#}
{# <div class="flex py-2 px-6">#}
{# <div>#}
{# <p class="font-semibold w-60">Domains</p>#}
{# </div>#}
{# <div>#}
{# <input type="number" class="w-80 bg-gray-100 rounded px-2 py-1"#}
{# ng-model="$parent.allowedDomains" required>#}
{# </div>#}
{# <div class="text-orange-500 font-semibold ml-3">#}
{# <p>{% trans "(0 = Unlimited)" %}</p>#}
{# </div>#}
{# </div>#}
{# <div class="flex py-2 px-6">#}
{# <div>#}
{# <p class="font-semibold w-60">Disk Space</p>#}
{# </div>#}
{# <div>#}
{# <input type="number" class="w-80 bg-gray-100 rounded px-2 py-1"#}
{# ng-model="$parent.diskSpace" required>#}
{# </div>#}
{# <div class="text-orange-500 font-semibold ml-3">#}
{# <p>{% trans "MB (0 = Unlimited)" %}</p>#}
{# </div>#}
{# </div>#}
{# <div class="flex py-2 px-6">#}
{# <div>#}
{# <p class="font-semibold w-60">Bandwidth</p>#}
{# </div>#}
{# <div>#}
{# <input type="number" class="w-80 bg-gray-100 rounded px-2 py-1"#}
{# ng-model="$parent.bandwidth" required>#}
{# </div>#}
{# <div class="text-orange-500 font-semibold ml-3">#}
{# <p>{% trans "MB (0 = Unlimited)" %}</p>#}
{# </div>#}
{# </div>#}
{# <div class="flex py-2 px-6">#}
{# <div>#}
{# <p class="font-semibold w-60">FTP Account</p>#}
{# </div>#}
{# <div>#}
{# <input type="number" class="w-80 bg-gray-100 rounded px-2 py-1"#}
{# ng-model="$parent.ftpAccounts" required>#}
{# </div>#}
{# </div>#}
{# <div class="flex py-2 px-6">#}
{# <div>#}
{# <p class="font-semibold w-60">Databases</p>#}
{# </div>#}
{# <div>#}
{# <input type="number" class="w-80 bg-gray-100 rounded px-2 py-1"#}
{# ng-model="$parent.dataBases" required>#}
{# </div>#}
{# </div>#}
{# <div class="flex py-2 px-6">#}
{# <div>#}
{# <p class="font-semibold w-60">Emails</p>#}
{# </div>#}
{# <div>#}
{# <input type="number" class="w-80 bg-gray-100 rounded px-2 py-1"#}
{# ng-model="$parent.emails" required>#}
{# </div>#}
{# </div>#}
{# <div ng-hide="installationDetailsForm">#}
{# <div class="flex py-2 px-6">#}
{# <div>#}
{# <p class="font-semibold w-60">Additional</p>#}
{# </div>#}
{# <div>#}
{# <div>#}
{# <label>#}
{# <input ng-model="$parent.allowFullDomain"#}
{# type="checkbox" value="">#}
{# Allow Creation of Fully Qualified Domain as#}
{# Child-Domains#}
{# </label>#}
{# </div>#}
{# <div>#}
{# <label>#}
{# <input ng-model="$parent.enforceDiskLimits"#}
{# type="checkbox" value="">#}
{# Enforce Disk Limits#}
{# </label>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </form>#}
{# <div class="flex justify-end mt-3">#}
{# <button ng-click="saveChanges()"#}
{# data-modal-toggle="edit"#}
{# data-modal-hide="edit"#}
{# class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">#}
{# Save#}
{# </button>#}
{# <button data-modal-toggle="edit"#}
{# data-modal-hide="edit"#}
{# class="ml-2 bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded">#}
{# Close#}
{# </button>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
</td>
</tr>
</tbody>
<button class="btn btn-danger" data-modal-target="habitetest" data-modal-toggle="habitetest">check
moda
</button>
<div id="habitetest" tabindex="-1"
class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full">
<div class="relative p-4 w-full max-w-md max-h-full">
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700">
<button type="button" data-modal-toggle="habitetest"
class="absolute top-3 end-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white"
data-modal-hide="habitetest">
<svg class="w-3 h-3" aria-hidden="true"
xmlns="http://www.w3.org/2000/svg" fill="none"
viewBox="0 0 14 14">
<path stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2"
d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
</svg>
<span class="sr-only">Close modal</span>
</button>
<div class="p-4 md:p-5 text-center">
<svg class="mx-auto mb-4 text-gray-400 w-12 h-12 dark:text-gray-200"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg" fill="none"
viewBox="0 0 20 20">
<path stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2"
d="M10 11V6m0 8h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/>
</svg>
<h3 class="mb-5 text-lg font-normal text-gray-500 dark:text-gray-400">
Are you sure you want to
delete this user {$ UserToDelete $} ?</h3>
<button ng-click="deleteUserFinal()" data-modal-hide="DeleteListUser"
type="button"
data-modal-toggle="DeleteListUser"
class="text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center me-2">
Yes, I'm sure
</button>
<button data-modal-hide="DeleteListUser" type="button"
data-modal-toggle="DeleteListUser"
class="text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600">
No, cancel
</button>
</div>
</div>
</div>
</div>
</table>
</div>
</div>
{# <div>#}
{# <button ng-click="deleteUserInitial(record.name)" data-modal-target="DeleteListUser"#}
{# data-modal-toggle="DeleteListUser"#}
{# class="bg-orange-500 px-2 py-1 text-white"#}
{# type="button">#}
{# Delete#}
{# </button>#}
{##}
{# <div id="DeleteListUser" tabindex="-1"#}
{# class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full">#}
{# <div class="relative p-4 w-full max-w-md max-h-full">#}
{# <div class="relative bg-white rounded-lg shadow dark:bg-gray-700">#}
{# <button type="button" data-modal-toggle="DeleteListUser"#}
{# class="absolute top-3 end-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white"#}
{# data-modal-hide="DeleteListUser">#}
{# <svg class="w-3 h-3" aria-hidden="true"#}
{# xmlns="http://www.w3.org/2000/svg" fill="none"#}
{# viewBox="0 0 14 14">#}
{# <path stroke="currentColor" stroke-linecap="round"#}
{# stroke-linejoin="round" stroke-width="2"#}
{# d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>#}
{# </svg>#}
{# <span class="sr-only">Close modal</span>#}
{# </button>#}
{# <div class="p-4 md:p-5 text-center">#}
{# <svg class="mx-auto mb-4 text-gray-400 w-12 h-12 dark:text-gray-200"#}
{# aria-hidden="true"#}
{# xmlns="http://www.w3.org/2000/svg" fill="none"#}
{# viewBox="0 0 20 20">#}
{# <path stroke="currentColor" stroke-linecap="round"#}
{# stroke-linejoin="round" stroke-width="2"#}
{# d="M10 11V6m0 8h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/>#}
{# </svg>#}
{# <h3 class="mb-5 text-lg font-normal text-gray-500 dark:text-gray-400">#}
{# Are you sure you want to#}
{# delete this user {$ UserToDelete $} ?</h3>#}
{# <button ng-click="deleteUserFinal()" data-modal-hide="DeleteListUser" type="button"#}
{# data-modal-toggle="DeleteListUser"#}
{# class="text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center me-2">#}
{# Yes, I'm sure#}
{# </button>#}
{# <button data-modal-hide="DeleteListUser" type="button"#}
{# data-modal-toggle="DeleteListUser"#}
{# class="text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600">#}
{# No, cancel#}
{# </button>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# <div>#}
{# <button ng-click="editInitial(record.name)" data-modal-target="EditListUser"#}
{# data-modal-toggle="EditListUser"#}
{# class="bg-orange-500 px-2 py-1 text-white"#}
{# type="button">#}
{# Edit#}
{# </button>#}
{##}
{# <div id="EditListUser" tabindex="-1"#}
{# class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full">#}
{# <div>#}
{# <div class="relative bg-white rounded-lg shadow dark:bg-gray-700">#}
{# <h2 class="px-4 py-4 font-bold text-xl">Edit Users</h2>#}
{# <button type="button" data-modal-toggle="EditListUser"#}
{# class="absolute top-3 end-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white"#}
{# data-modal-hide="EditListUser">#}
{# <svg class="w-3 h-3" aria-hidden="true"#}
{# xmlns="http://www.w3.org/2000/svg" fill="none"#}
{# viewBox="0 0 14 14">#}
{# <path stroke="currentColor" stroke-linecap="round"#}
{# stroke-linejoin="round" stroke-width="2"#}
{# d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>#}
{# </svg>#}
{# <span class="sr-only">Close modal</span>#}
{# </button>#}
{# <div class="p-4">#}
{# <div ng-hide="installationDetailsForm" class="flex mt-4 py-2 px-6">#}
{# <div>#}
{# <p class="font-semibold w-60">Name</p>#}
{# </div>#}
{# <div>#}
{# <input name="name" type="text" class="w-80 bg-gray-100 rounded px-2 py-1"#}
{# ng-model="name" readonly>#}
{# </div>#}
{# </div>#}
{# <div class="flex py-2 px-6">#}
{# <div>#}
{# <p class="font-semibold w-60">New Owner</p>#}
{# </div>#}
{# <div>#}
{# <select ng-change="saveResellerChanges()"#}
{# ng-model="$parent.newOwner"#}
{# class="w-80 bg-gray-100 rounded px-2 py-1">#}
{# {% for items in resellerPrivUsers %}#}
{# <option>{{ items }}</option>#}
{# {% endfor %}#}
{# </select>#}
{# </div>#}
{# </div>#}
{# <div class="flex py-2 px-6">#}
{# <div>#}
{# <p class="font-semibold w-60">Select ACL</p>#}
{# </div>#}
{# <div>#}
{# <select ng-change="changeACLFunc()"#}
{# ng-model="$parent.selectedACL"#}
{# class="w-80 bg-gray-100 rounded px-2 py-1">#}
{# {% for items in aclNames %}#}
{# <option>{{ items }}</option>#}
{# {% endfor %}#}
{# </select>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
<a onclick="return false;"
ng-click="editInitial(record.name)"
class="bg-orange-500 px-2 py-1 text-white ml-1"
href="#" data-modal-target="edit" data-modal-toggle="edit"><i class="fa fa-folder"
aria-hidden="true"></i> {% trans "EDIT" %}
</a>
<div id="edit" tabindex="-1"
class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full">
<div class="relative p-4 w-full max-w-4xl max-h-full">
<div class="relative bg-white shadow dark:bg-gray-700">
<div class="flex items-center bg-blue-400 px-4 py-4">
<p class="font-bold">Edit Package</p>
<button type="button" data-modal-toggle="edit"
class="absolute top-2 end-1 text-black bg-transparent hover:text-black rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center"
data-modal-hide="edit">
<svg class="w-3 h-3" aria-hidden="true"
xmlns="http://www.w3.org/2000/svg" fill="none"
viewBox="0 0 14 14">
<path stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2"
d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
</svg>
<span class="sr-only">Close modal</span>
</button>
</div>
<div class="p-4 md:p-5">
<form name="containerSettingsForm" action="/" id="createPackages"
class="form-horizontal bordered-row panel-body">
<div ng-hide="installationDetailsForm" class="flex mt-4 py-2 px-6">
<div>
<p class="font-semibold w-60">Name</p>
</div>
<div>
<input name="name" type="text" class="w-80 bg-gray-100 rounded px-2 py-1"
ng-model="name" readonly>
</div>
</div>
<div class="flex py-2 px-6">
<div>
<p class="font-semibold w-60">Domains</p>
</div>
<div>
<input type="number" class="w-80 bg-gray-100 rounded px-2 py-1"
ng-model="$parent.allowedDomains" required>
</div>
<div class="text-orange-500 font-semibold ml-3">
<p>{% trans "(0 = Unlimited)" %}</p>
</div>
</div>
<div class="flex py-2 px-6">
<div>
<p class="font-semibold w-60">Disk Space</p>
</div>
<div>
<input type="number" class="w-80 bg-gray-100 rounded px-2 py-1"
ng-model="$parent.diskSpace" required>
</div>
<div class="text-orange-500 font-semibold ml-3"><p>{% trans "MB (0 = Unlimited)" %}</p>
</div>
</div>
<div class="flex py-2 px-6">
<div>
<p class="font-semibold w-60">Bandwidth</p>
</div>
<div>
<input type="number" class="w-80 bg-gray-100 rounded px-2 py-1"
ng-model="$parent.bandwidth" required>
</div>
<div class="text-orange-500 font-semibold ml-3"><p>{% trans "MB (0 = Unlimited)" %}</p>
</div>
</div>
<div class="flex py-2 px-6">
<div>
<p class="font-semibold w-60">FTP Account</p>
</div>
<div>
<input type="number" class="w-80 bg-gray-100 rounded px-2 py-1"
ng-model="$parent.ftpAccounts" required>
</div>
</div>
<div class="flex py-2 px-6">
<div>
<p class="font-semibold w-60">Databases</p>
</div>
<div>
<input type="number" class="w-80 bg-gray-100 rounded px-2 py-1"
ng-model="$parent.dataBases" required>
</div>
</div>
<div class="flex py-2 px-6">
<div>
<p class="font-semibold w-60">Emails</p>
</div>
<div>
<input type="number" class="w-80 bg-gray-100 rounded px-2 py-1"
ng-model="$parent.emails" required>
</div>
</div>
<div ng-hide="installationDetailsForm">
<div class="flex py-2 px-6">
<div>
<p class="font-semibold w-60">Additional</p>
</div>
<div>
<div>
<label>
<input ng-model="$parent.allowFullDomain"
type="checkbox" value="">
Allow Creation of Fully Qualified Domain as
Child-Domains
</label>
</div>
<div>
<label>
<input ng-model="$parent.enforceDiskLimits"
type="checkbox" value="">
Enforce Disk Limits
</label>
</div>
</div>
</div>
</div>
</form>
<div class="flex justify-end mt-3">
<button ng-click="saveChanges()"
data-modal-toggle="edit"
data-modal-hide="edit"
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Save
</button>
<button data-modal-toggle="edit"
data-modal-hide="edit"
class="ml-2 bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded">
Close
</button>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -94,13 +94,13 @@
<p class="font-semibold w-60">Additional Features</p>
</div>
<div>
<div class="checkbox">
<div>
<label>
<input ng-model="allowFullDomain" type="checkbox" value="">
Allow Creation of Fully Qualified Domain as Child-Domains
</label>
</div>
<div class="checkbox">
<div>
<label>
<input ng-model="enforceDiskLimits" type="checkbox" value="">
Enforce Disk Limits