2016-09-11 18:40:03 +02:00
|
|
|
.container
|
|
|
|
h1 Pages
|
2016-09-27 10:02:50 +02:00
|
|
|
.row
|
2016-09-27 11:44:48 +02:00
|
|
|
.well.col-md-3(ui-tree)
|
2016-09-27 10:02:50 +02:00
|
|
|
.btn-toolbar
|
|
|
|
.btn-group
|
2016-09-27 11:44:48 +02:00
|
|
|
a.btn.btn-default(ng-click="add()")
|
2016-09-27 10:02:50 +02:00
|
|
|
span.glyphicon.glyphicon-plus
|
|
|
|
br
|
|
|
|
.list-group
|
2016-09-27 11:44:48 +02:00
|
|
|
.list-group-item(ng-repeat="item in data")
|
|
|
|
.angular-ui-tree-handle {{item.title}}
|
|
|
|
.pull-right.btn-group.btn-group-xs
|
|
|
|
a.btn.btn-default(ng-click="edit(item)")
|
|
|
|
span.glyphicon.glyphicon-pencil
|
|
|
|
a.btn.btn-default(ng-click="delete(item)")
|
|
|
|
span.glyphicon.glyphicon-remove
|
|
|
|
form.col-md-9(ng-submit="save()")
|
2016-09-27 10:02:50 +02:00
|
|
|
h3(ng-if="obj.ID") Edit
|
|
|
|
h3(ng-if="!obj.ID") New
|
|
|
|
.form-group
|
|
|
|
label(for="title") Title
|
|
|
|
input.form-control(id="title",ng-model="obj.title")
|
|
|
|
.form-group
|
2017-02-26 15:48:12 +01:00
|
|
|
label(for="url") URL
|
|
|
|
br
|
|
|
|
i (http(s)://DOMAIN/{{obj.url.path}})
|
|
|
|
input.form-control(id="url",ng-model="obj.url.path")
|
2016-09-27 10:02:50 +02:00
|
|
|
.form-group
|
|
|
|
label(for="content") Content
|
2016-09-27 11:44:48 +02:00
|
|
|
textarea.form-control(id="content",markdown-editor="{hiddenButtons:'cmdImage',addExtraButtons: true, resize: 'vertical'}",ng-model="obj.content",rows="10")
|
2016-09-27 10:02:50 +02:00
|
|
|
input.btn.btn-default(type="submit",value="Save")
|