32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
|
h2 Posts
|
||
|
.row
|
||
|
.well.col-md-3
|
||
|
.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(for="url") URL
|
||
|
br
|
||
|
i (http(s)://DOMAIN/{{obj.url.path}})
|
||
|
input.form-control(id="url",ng-model="obj.url.path")
|
||
|
.form-group
|
||
|
label(for="content") Content
|
||
|
div(id="content",text-angular,ta-text-editor-class="clearfix border-around" ta-html-editor-class="border-around",ng-model="obj.content")
|
||
|
input.btn.btn-default(type="submit",value="Save")
|