2016-10-17 12:50:31 +02:00
|
|
|
.container
|
|
|
|
h1 Domains
|
|
|
|
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="domain") Domain
|
|
|
|
input.form-control(id="domain",name="domain",ng-model="obj.fqdn",ng-minlength="3")
|
2016-10-18 20:33:55 +02:00
|
|
|
.form-group(ng-if="session.login.superadmin")
|
|
|
|
label
|
|
|
|
input(type="checkbox",ng-model="obj.active")
|
|
|
|
| Active
|
2016-10-17 23:43:14 +02:00
|
|
|
.form-group
|
|
|
|
label
|
|
|
|
input(type="checkbox",ng-model="obj.web")
|
|
|
|
| Web
|
|
|
|
.form-group
|
|
|
|
label
|
|
|
|
input(type="checkbox",ng-model="obj.mail")
|
|
|
|
| Mail
|
2016-10-17 12:50:31 +02:00
|
|
|
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")
|
2016-10-18 20:33:55 +02:00
|
|
|
td(data-title="'Domain'", filter="{'fqdn': 'text'}")
|
2016-10-17 12:50:31 +02:00
|
|
|
span(ng-if="!item.isEditing") {{item.fqdn}}
|
2016-10-17 23:43:14 +02:00
|
|
|
h4(ng-if="item.isEditing") Domain: {{item.fqdn}}
|
|
|
|
form(name="myform",ng-if="item.isEditing")
|
|
|
|
.form-group
|
|
|
|
label(for="domain") Domain
|
|
|
|
input.form-control(id="domain",name="domain",ng-model="item.fqdn",ng-minlength="3")
|
2016-10-18 20:33:55 +02:00
|
|
|
.form-group(ng-if="session.login.superadmin")
|
|
|
|
label
|
|
|
|
input(type="checkbox",ng-model="item.active")
|
|
|
|
| Active
|
2016-10-17 23:43:14 +02:00
|
|
|
.form-group
|
|
|
|
label
|
|
|
|
input(type="checkbox",ng-model="item.web")
|
|
|
|
| Web
|
|
|
|
.form-group
|
|
|
|
label
|
|
|
|
input(type="checkbox",ng-model="item.mail")
|
|
|
|
| Mail
|
|
|
|
button.btn.btn-primary(type="submit",ng-click="edit(item)")
|
|
|
|
span.glyphicon.glyphicon-floppy-disk
|
|
|
|
| Save
|
2016-10-18 20:33:55 +02:00
|
|
|
td(data-title="'Active'", filter="{'active': 'components/ngfilter-boolean.html'}")
|
|
|
|
span.glyphicon.glyphicon-ok(aria-hidden="true",ng-if="item.active")
|
|
|
|
span.glyphicon.glyphicon-lock(aria-hidden="true",ng-if="!item.active")
|
2016-10-17 12:50:31 +02:00
|
|
|
td(data-title="'Funktions'")
|
2016-10-22 21:34:20 +02:00
|
|
|
a(ng-if="item.mail && !item.isEditing && item.active",ui-sref="app.host.mail({domainid:item.ID})")
|
2016-10-17 12:50:31 +02:00
|
|
|
span.glyphicon.glyphicon-envelope(aria-hidden="true")
|
|
|
|
| Mail
|
2016-10-22 21:34:20 +02:00
|
|
|
a(ng-if="item.web && !item.isEditing && item.active",ui-sref="app.host.web({domainid:item.ID})")
|
2016-10-17 12:50:31 +02:00
|
|
|
span.glyphicon.glyphicon-globe(aria-hidden="true")
|
|
|
|
| Web
|
|
|
|
td(data-title="'Option'")
|
|
|
|
.btn-group.btn-group-xs
|
2016-10-17 23:43:14 +02:00
|
|
|
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
|
2016-10-17 12:50:31 +02:00
|
|
|
span.btn.btn-default(ng-click="delete(item)")
|
|
|
|
span.glyphicon.glyphicon-trash
|