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/admin/database.jade

31 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

.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