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

78 lines
3.2 KiB
Plaintext
Raw Normal View History

2016-10-22 21:34:20 +02:00
.container
h1 Mail
2017-03-20 23:03:10 +01:00
.panel.panel-default
.panel-heading All
a.pull-right.btn.btn-default.btn-xs(ng-click="isAdding=true")
span.glyphicon.glyphicon-plus
.panel-body(ng-if="isAdding")
form(ng-submit="add()",name="addform")
.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}}
2016-10-22 21:34:20 +02:00
.form-group
2016-11-17 23:16:35 +01:00
label Inbox
.input-group
2017-03-20 23:03:10 +01:00
ui-select(ng-model="obj.login")
2016-11-17 23:16:35 +01:00
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
2017-03-20 23:03:10 +01:00
button.btn.btn-default(type="button",ng-click="obj.login = undefined")
2016-11-17 23:16:35 +01:00
span.glyphicon.glyphicon-trash
.form-group
label Forwards
2017-03-20 23:03:10 +01:00
ui-select(ng-model="obj.forwards",multiple,tagging="newMail")
2016-11-17 23:16:35 +01:00
ui-select-match {{$item.to}}
2017-03-20 23:03:10 +01:00
ui-select-choices(repeat="i in obj.forwards")
2016-11-17 23:16:35 +01:00
div(ng-bind-html="i.to | highlight: $select.search")
2017-03-20 23:03:10 +01:00
button.btn.btn-primary(type="submit")
span.glyphicon.glyphicon-floppy-disk
| Save
table.table(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