35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
.container
|
|
h1 Pages
|
|
.row
|
|
.well.col-md-3(ui-tree)
|
|
.btn-toolbar
|
|
.btn-group
|
|
a.btn.btn-default(ng-click="add()")
|
|
span.glyphicon.glyphicon-plus
|
|
br
|
|
.list-group
|
|
.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()")
|
|
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
|
|
label Under Menu
|
|
i (http(s)://PLACEHOLDER/{{obj.menu.url}})
|
|
ui-select(ng-model="obj.menu",theme="bootstrap")
|
|
ui-select-match {{$select.selected.name}}
|
|
ui-select-choices(repeat="item in menulist | filter:$select.search")
|
|
div(ng-bind-html="item.name | highlight: $select.search")
|
|
.form-group
|
|
label(for="content") Content
|
|
textarea.form-control(id="content",markdown-editor="{hiddenButtons:'cmdImage',addExtraButtons: true, resize: 'vertical'}",ng-model="obj.content",rows="10")
|
|
input.btn.btn-default(type="submit",value="Save")
|