From ea319a5cc9b3fb642f0876739279efb704712ca8 Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Sun, 20 Nov 2016 12:04:58 +0100 Subject: [PATCH] fix #13 web (http and ftp) access adding and editing --- public/app/host/web.jade | 65 +++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 34 deletions(-) diff --git a/public/app/host/web.jade b/public/app/host/web.jade index a32ccce..ac26aca 100644 --- a/public/app/host/web.jade +++ b/public/app/host/web.jade @@ -26,19 +26,18 @@ .form-group label(for="proxy") Proxy input.form-control(id="proxy",name="proxy",ng-model="obj.proxy") - // - .form-group - label FTP Access - ui-select(ng-model="obj.ftpaccess",multiple,on-select="newUser(obj.ftpaccess, $model)") - ui-select-match {{$item.login.username}} - ui-select-choices(repeat="i in loginlist | afterKeyID:obj.ftpaccess:'login' | filter: $select.search") - div(ng-bind-html="i.username | highlight: $select.search") - .form-group - label HTTP Access - ui-select(ng-model="obj.httpaccess",multiple,on-select="newUser(obj.httpaccess, $model)") - ui-select-match {{$item.login.username}} - ui-select-choices(repeat="i in loginlist | afterKeyID:obj.httpaccess:'login' | filter: $select.search") - div(ng-bind-html="i.username | highlight: $select.search") + .form-group + label FTP Access + ui-select(ng-model="obj.ftpaccess",multiple,on-select="newUser(obj.ftpaccess, $model)") + ui-select-match {{$item.login.username}} + ui-select-choices(repeat="i in loginlist | afterKeyID:obj.ftpaccess:'login' | filter: $select.search") + div(ng-bind-html="i.username | highlight: $select.search") + .form-group + label HTTP Access + ui-select(ng-model="obj.httpaccess",multiple,on-select="newUser(obj.httpaccess, $model)") + ui-select-match {{$item.login.username}} + ui-select-choices(repeat="i in loginlist | afterKeyID:obj.httpaccess:'login' | filter: $select.search") + div(ng-bind-html="i.username | highlight: $select.search") button.btn.btn-primary(type="submit") span.glyphicon.glyphicon-floppy-disk | Save @@ -73,30 +72,28 @@ .form-group label(for="proxy") Proxy input.form-control(id="proxy",name="proxy",ng-model="item.proxy") - // - .form-group - label FTP Access - ui-select(ng-model="item.ftpaccess",multiple,on-select="newUser(item.ftpaccess, $model)") - ui-select-match {{$item.login.username}} - ui-select-choices(repeat="i in loginlist | afterKeyID:obj.ftpaccess:'login' | filter: $select.search") - div(ng-bind-html="i.username | highlight: $select.search") - .form-group - label HTTP Access - ui-select(ng-model="item.httpaccess",multiple,on-select="newUser(item.httpaccess, $model)") - ui-select-match {{$item.login.username}} - ui-select-choices(repeat="i in loginlist | afterKeyID:obj.httpaccess:'login' | filter: $select.search") - div(ng-bind-html="i.username | highlight: $select.search") + .form-group + label FTP Access + ui-select(ng-model="item.ftpaccess",multiple,on-select="newUser(item.ftpaccess, $model)") + ui-select-match {{$item.login.username}} + ui-select-choices(repeat="i in loginlist | afterKeyID:item.ftpaccess:'login' | filter: $select.search") + div(ng-bind-html="i.username | highlight: $select.search") + .form-group + label HTTP Access + ui-select(ng-model="item.httpaccess",multiple,on-select="newUser(item.httpaccess, $model)") + ui-select-match {{$item.login.username}} + ui-select-choices(repeat="i in loginlist | afterKeyID:item.httpaccess:'login' | filter: $select.search") + div(ng-bind-html="i.username | highlight: $select.search") button.btn.btn-primary(type="submit",ng-click="edit(item)") span.glyphicon.glyphicon-floppy-disk | Save - // - td(data-title="'FTPAccess'") - ul - li(ng-repeat="i in item.ftpaccess") {{i.login.username}} - td(data-title="'HTTPAccess'") - ul - li(ng-repeat="i in item.httpaccess") {{i.login.username}} - td(data-title="'Options'") + td(data-title="'FTPAccess'") + ul + li(ng-repeat="i in item.ftpaccess") {{i.login.username}} + td(data-title="'HTTPAccess'") + ul + li(ng-repeat="i in item.httpaccess") {{i.login.username}} + td(data-title="'Features'") span.glyphicon.glyphicon-cd(ng-if="item.php") span.glyphicon.glyphicon-lock(ng-if="item.ssl") span.glyphicon.glyphicon-share(ng-if="item.sslredirect")