sum7/warehost-frontend
sum7
/
warehost-frontend
Archived
1
0
Fork 0

fix #13 web (http and ftp) access adding and editing

This commit is contained in:
Martin Geno 2016-11-20 12:04:58 +01:00
parent e3df788f05
commit ea319a5cc9
1 changed files with 31 additions and 34 deletions

View File

@ -26,7 +26,6 @@
.form-group .form-group
label(for="proxy") Proxy label(for="proxy") Proxy
input.form-control(id="proxy",name="proxy",ng-model="obj.proxy") input.form-control(id="proxy",name="proxy",ng-model="obj.proxy")
//
.form-group .form-group
label FTP Access label FTP Access
ui-select(ng-model="obj.ftpaccess",multiple,on-select="newUser(obj.ftpaccess, $model)") ui-select(ng-model="obj.ftpaccess",multiple,on-select="newUser(obj.ftpaccess, $model)")
@ -73,30 +72,28 @@
.form-group .form-group
label(for="proxy") Proxy label(for="proxy") Proxy
input.form-control(id="proxy",name="proxy",ng-model="item.proxy") input.form-control(id="proxy",name="proxy",ng-model="item.proxy")
//
.form-group .form-group
label FTP Access label FTP Access
ui-select(ng-model="item.ftpaccess",multiple,on-select="newUser(item.ftpaccess, $model)") ui-select(ng-model="item.ftpaccess",multiple,on-select="newUser(item.ftpaccess, $model)")
ui-select-match {{$item.login.username}} ui-select-match {{$item.login.username}}
ui-select-choices(repeat="i in loginlist | afterKeyID:obj.ftpaccess:'login' | filter: $select.search") ui-select-choices(repeat="i in loginlist | afterKeyID:item.ftpaccess:'login' | filter: $select.search")
div(ng-bind-html="i.username | highlight: $select.search") div(ng-bind-html="i.username | highlight: $select.search")
.form-group .form-group
label HTTP Access label HTTP Access
ui-select(ng-model="item.httpaccess",multiple,on-select="newUser(item.httpaccess, $model)") ui-select(ng-model="item.httpaccess",multiple,on-select="newUser(item.httpaccess, $model)")
ui-select-match {{$item.login.username}} ui-select-match {{$item.login.username}}
ui-select-choices(repeat="i in loginlist | afterKeyID:obj.httpaccess:'login' | filter: $select.search") ui-select-choices(repeat="i in loginlist | afterKeyID:item.httpaccess:'login' | filter: $select.search")
div(ng-bind-html="i.username | highlight: $select.search") div(ng-bind-html="i.username | highlight: $select.search")
button.btn.btn-primary(type="submit",ng-click="edit(item)") button.btn.btn-primary(type="submit",ng-click="edit(item)")
span.glyphicon.glyphicon-floppy-disk span.glyphicon.glyphicon-floppy-disk
| Save | Save
//
td(data-title="'FTPAccess'") td(data-title="'FTPAccess'")
ul ul
li(ng-repeat="i in item.ftpaccess") {{i.login.username}} li(ng-repeat="i in item.ftpaccess") {{i.login.username}}
td(data-title="'HTTPAccess'") td(data-title="'HTTPAccess'")
ul ul
li(ng-repeat="i in item.httpaccess") {{i.login.username}} li(ng-repeat="i in item.httpaccess") {{i.login.username}}
td(data-title="'Options'") td(data-title="'Features'")
span.glyphicon.glyphicon-cd(ng-if="item.php") span.glyphicon.glyphicon-cd(ng-if="item.php")
span.glyphicon.glyphicon-lock(ng-if="item.ssl") span.glyphicon.glyphicon-lock(ng-if="item.ssl")
span.glyphicon.glyphicon-share(ng-if="item.sslredirect") span.glyphicon.glyphicon-share(ng-if="item.sslredirect")