fixed some bugs found in testing

This commit is contained in:
Usman Nasir
2021-03-08 11:08:13 +05:00
parent 826e260169
commit ae32836325
4 changed files with 5 additions and 5 deletions

View File

@@ -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):

View File

@@ -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>

View File

@@ -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):

View File

@@ -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>