75 lines
3.1 KiB
Plaintext
75 lines
3.1 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
|
|
label Inbox
|
|
.input-group
|
|
ui-select(ng-model="obj.login")
|
|
ui-select-match
|
|
span(ng-repeat="i in loginlist",ng-show="i.ID == $select.selected.ID") {{i.username}}
|
|
ui-select-choices(repeat="i.ID as i in loginlist | filter: $select.search")
|
|
div(ng-bind-html="i.username | highlight: $select.search")
|
|
span.input-group-btn
|
|
button.btn.btn-default(type="button",ng-click="obj.login = undefined")
|
|
span.glyphicon.glyphicon-trash
|
|
.form-group
|
|
label Forwards
|
|
ui-select(ng-model="obj.forwards",multiple,tagging="newMail")
|
|
ui-select-match {{$item.to}}
|
|
ui-select-choices(repeat="i in obj.forwards")
|
|
div(ng-bind-html="i.to | 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
|
|
label Inbox
|
|
.input-group
|
|
ui-select(ng-model="item.login")
|
|
ui-select-match
|
|
span(ng-repeat="i in loginlist",ng-show="i.ID == $select.selected.ID") {{i.username}}
|
|
ui-select-choices(repeat="i.ID as i in loginlist | filter: $select.search")
|
|
div(ng-bind-html="i.username | highlight: $select.search")
|
|
span.input-group-btn
|
|
button.btn.btn-default(type="button",ng-click="item.login = undefined")
|
|
span.glyphicon.glyphicon-trash
|
|
.form-group
|
|
label Forwards
|
|
ui-select(ng-model="item.forwards",multiple,tagging="newMail")
|
|
ui-select-match {{$item.to}}
|
|
ui-select-choices(repeat="i in item.forwards")
|
|
div(ng-bind-html="i.to | highlight: $select.search")
|
|
button.btn.btn-primary(type="submit",ng-click="edit(item)")
|
|
span.glyphicon.glyphicon-floppy-disk
|
|
| Save
|
|
td(data-title="'Inbox'")
|
|
span(ng-repeat="i in loginlist",ng-if="i.ID == item.login") {{i.username}}
|
|
td(data-title="'Forwards'")
|
|
ul
|
|
li(ng-repeat="i in item.forwards") {{i.to}}
|
|
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
|