2016-10-17 12:50:31 +02:00
|
|
|
.container
|
|
|
|
h1 Database
|
|
|
|
a.btn.btn-default(ng-click="isAdding=true")
|
|
|
|
span.glyphicon.glyphicon-plus
|
|
|
|
form.well(ng-submit="add()",name="addform",ng-if="isAdding")
|
|
|
|
.form-group
|
2016-10-17 23:43:14 +02:00
|
|
|
label(for="password") Password
|
|
|
|
input.form-control(id="password",name="password",ng-model="obj.password",ng-minlength="3")
|
|
|
|
.form-group
|
|
|
|
label(for="comment") Comment
|
|
|
|
input.form-control(id="comment",name="comment",ng-model="obj.comment")
|
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")
|
|
|
|
td(data-title="'Database/User'")
|
|
|
|
span(ng-if="!item.isEditing") warehost_user{{item.profil}}_db{{item.ID}}
|
2016-10-17 23:43:14 +02:00
|
|
|
h4(ng-if="item.isEditing") Database: warehost_user{{item.profil}}_db{{item.ID}}
|
|
|
|
form(name="myform",ng-if="item.isEditing")
|
|
|
|
.form-group
|
|
|
|
label(for="password") Password
|
|
|
|
input.form-control(id="password",name="password",ng-model="item.password",ng-minlength="3")
|
|
|
|
.form-group
|
|
|
|
label(for="comment") Comment
|
|
|
|
input.form-control(id="comment",name="comment",ng-model="item.comment")
|
|
|
|
button.btn.btn-primary(type="submit",ng-click="edit(item)")
|
|
|
|
span.glyphicon.glyphicon-floppy-disk
|
|
|
|
| Save
|
2016-10-17 12:50:31 +02:00
|
|
|
td(data-title="'Kommentar'")
|
|
|
|
span.glyphicon.glyphicon-lock(ng-if="item.password")
|
|
|
|
span(ng-if="!item.isEditing") {{item.comment}}
|
|
|
|
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
|