sum7/warehost-frontend
sum7
/
warehost-frontend
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
warehost-frontend/public/app/host/mail.jade

48 lines
2.0 KiB
Plaintext
Raw Normal View History

2016-10-22 21:34:20 +02:00
.container
h1 Mail
a.btn.btn-default(ng-click="isAdding=true")
span.glyphicon.glyphicon-plus
form.well(ng-submit="add()",name="addform",ng-if="isAdding")
.form-group
label(for="name") Name
.input-group
input.form-control(id="name",name="name",ng-model="obj.name")
span.input-group-addon @{{domain.fqdn}}
.form-group
ui-select(ng-model="obj.login",theme="bootstrap")
ui-select-match {{$select.selected.username}}
ui-select-choices(repeat="item in loginlist | filter: $select.search")
div(ng-bind-html="item.username | highlight: $select.search")
button.btn.btn-primary(type="submit")
span.glyphicon.glyphicon-floppy-disk
| Save
table.table.table-bordered(ng-table="tableParams")
tr(ng-hide='group.$hideRows',ng-repeat="item in $data")
td(data-title="'Mail-Adresse'")
span(ng-if="!item.isEditing") {{item.name}}@{{item.domain.fqdn}}
h4(ng-if="item.isEditing") {{item.name}}@{{item.domain.fqdn}}
form(name="myform",ng-if="item.isEditing")
.form-group
label(for="name") Name
.input-group
input.form-control(id="name",name="name",ng-model="item.name")
span.input-group-addon @{{item.domain.fqdn}}
.form-group
ui-select(ng-model="item.login",theme="bootstrap")
ui-select-match {{$select.selected.username}}
ui-select-choices(repeat="i in loginlist | 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="'Postfach'")
span(ng-repeat="i in loginlist",ng-if="i.ID == item.login.Int64") {{i.username}}
td(data-title="'Option'")
.btn-group.btn-group-xs
span.btn.btn-default(ng-click="item.isEditing = true",ng-if="!item.isEditing")
span.glyphicon.glyphicon-pencil
span.btn.btn-default(ng-click="edit(item)",ng-if="item.isEditing")
span.glyphicon.glyphicon-remove-circle
span.btn.btn-default(ng-click="delete(item)")
span.glyphicon.glyphicon-trash