48 lines
2.0 KiB
Plaintext
48 lines
2.0 KiB
Plaintext
|
.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
|