mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
fixed some bugs found in testing
This commit is contained in:
@@ -158,9 +158,9 @@ class DatabaseManager:
|
||||
|
||||
def listDBs(self, request = None, userID = None):
|
||||
currentACL = ACLManager.loadedACL(userID)
|
||||
websitesName = ACLManager.findAllSites(currentACL, userID)
|
||||
AllWebsites = ACLManager.findAllSites(currentACL, userID)
|
||||
template = 'databases/listDataBases.html'
|
||||
proc = httpProc(request, template, {'websitesList': websitesName}, 'listDatabases')
|
||||
proc = httpProc(request, template, {'AllWebsites': AllWebsites}, 'listDatabases')
|
||||
return proc.render()
|
||||
|
||||
def changePassword(self, userID = None, data = None):
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<label class="col-sm-3 control-label">{% trans "Select Domain" %}</label>
|
||||
<div class="col-sm-6">
|
||||
<select ng-change="fetchDBs()" ng-model="selectedDomain" class="form-control">
|
||||
{% for items in websiteList %}
|
||||
{% for items in AllWebsites %}
|
||||
<option>{{ items }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
@@ -53,7 +53,7 @@ class FTPManager:
|
||||
websitesName = ACLManager.findAllSites(currentACL, userID)
|
||||
|
||||
proc = httpProc(self.request, 'ftp/createFTPAccount.html',
|
||||
{'websiteList': websitesName, 'admin': admin.userName, "status": 1}, 'createFTPAccount')
|
||||
{'websiteList': websitesName, 'OwnerFTP': admin.userName, "status": 1}, 'createFTPAccount')
|
||||
return proc.render()
|
||||
|
||||
def submitFTPCreation(self):
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<input ng-change="hideFewDetails()" type="text" class="form-control"
|
||||
ng-model="ftpUserName" required>
|
||||
</div>
|
||||
<div class="current-pack">{{ admin }}_{$ ftpUserName $}</div>
|
||||
<div class="current-pack">{{ OwnerFTP }}_{$ ftpUserName $}</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user