47 lines
1.8 KiB
Plaintext
47 lines
1.8 KiB
Plaintext
h2 Posts
|
|
.row
|
|
.col-md-3
|
|
.panel.panel-default
|
|
.panel-heading All
|
|
a.pull-right.btn.btn-default.btn-xs(ng-click="add()")
|
|
span.glyphicon.glyphicon-plus
|
|
table.table
|
|
tr(ng-repeat="item in blog.posts")
|
|
td {{item.title}}
|
|
td
|
|
.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="post.ID") Edit
|
|
h3(ng-if="!post.ID") New
|
|
.form-group
|
|
label(for="title") Title
|
|
input.form-control(id="title",ng-model="post.title")
|
|
.form-group(ng-if="blog.author_enable")
|
|
label(for="author") Author
|
|
input.form-control(id="author",ng-model="post.author")
|
|
.form-group(ng-if="blog.createat_enable")
|
|
label(for="date") Create at
|
|
input.form-control(id="date",ng-model="post.createat")
|
|
.form-group(ng-if="blog.timerange_enable")
|
|
label(for="timerange") Timerange
|
|
.row
|
|
.col-md-6
|
|
.input-group
|
|
.input-group-addon start
|
|
input.form-control(id="timerange",ng-model="post.start")
|
|
.col-md-6
|
|
.input-group
|
|
.input-group-addon end
|
|
input.form-control(id="timerange",ng-model="post.end")
|
|
.form-group
|
|
label(for="summary") Summary
|
|
div(id="summary",text-angular,ta-text-editor-class="clearfix border-around",ta-html-editor-class="border-around",ng-model="post.summary")
|
|
.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="post.content")
|
|
input.btn.btn-default(type="submit",value="Save")
|