2016-10-18 20:33:55 +02:00
|
|
|
.container
|
|
|
|
h1 Database
|
2017-03-20 23:03:10 +01:00
|
|
|
.panel.panel-default
|
|
|
|
table.table(ng-table="tableParams")
|
|
|
|
tr(ng-hide='group.$hideRows',ng-repeat="item in $data")
|
|
|
|
td(data-title="'User'", filter="{'profil.login.username': 'text'}") {{item.profil.login.username}}
|
|
|
|
td(data-title="'Database/User'")
|
|
|
|
span(ng-if="!item.isEditing") warehost_user{{item.profil.ID}}_db{{item.ID}}
|
|
|
|
h4(ng-if="item.isEditing") Database: warehost_user{{item.profil.ID}}_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
|
|
|
|
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
|
|
|
|
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
|