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/web.jade

80 lines
2.8 KiB
Plaintext
Raw Normal View History

2016-10-22 21:34:20 +02:00
.container
h1 Web
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="subdomain") Subdomain
.input-group
input.form-control(id="subdomain",name="subdomain",ng-model="obj.subdomain")
span.input-group-addon .{{domain.fqdn}}
.form-group
label
input(type="checkbox",ng-model="obj.php")
| PHP
.form-group
label
input(type="checkbox",ng-model="obj.ssl")
| SSL
.form-group
label
input(type="checkbox",ng-model="obj.sslredirect")
| SSL-Redirect
.form-group
label(for="redirect") Redirect
input.form-control(id="redirect",name="redirect",ng-model="obj.redirect")
.form-group
label(for="proxy") Proxy
input.form-control(id="proxy",name="proxy",ng-model="obj.proxy")
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="'Domain'")
span(ng-if="!item.isEditing")
span(ng-if="item.subdomain != ''") {{item.subdomain}}.
| {{item.domain.fqdn}}
h4(ng-if="item.isEditing") {{item.subdomain}}.{{item.domain.fqdn}}
form(name="myform",ng-if="item.isEditing")
.form-group
label(for="subdomain") Subdomain
.input-group
input.form-control(id="subdomain",name="subdomain",ng-model="item.subdomain")
span.input-group-addon .{{item.domain.fqdn}}
.form-group
label
input(type="checkbox",ng-model="item.php")
| PHP
.form-group
label
input(type="checkbox",ng-model="item.ssl")
| SSL
.form-group
label
input(type="checkbox",ng-model="item.sslredirect")
| SSL-Redirect
.form-group
label(for="redirect") Redirect
input.form-control(id="redirect",name="redirect",ng-model="item.redirect")
.form-group
label(for="proxy") Proxy
input.form-control(id="proxy",name="proxy",ng-model="item.proxy")
button.btn.btn-primary(type="submit",ng-click="edit(item)")
span.glyphicon.glyphicon-floppy-disk
| Save
td(data-title="'Options'")
span.glyphicon.glyphicon-cd(ng-if="item.php")
span.glyphicon.glyphicon-lock(ng-if="item.ssl")
span.glyphicon.glyphicon-share(ng-if="item.sslredirect")
span.glyphicon.glyphicon-share-alt(ng-if="item.redirect")
span.glyphicon.glyphicon-send(ng-if="item.proxy")
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