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/web/blogpost.jade

47 lines
1.8 KiB
Plaintext
Raw Normal View History

2017-03-20 23:03:10 +01:00
h2 Posts
.row
2017-03-21 18:16:32 +01:00
.col-md-3
.panel.panel-default
.panel-heading All
a.pull-right.btn.btn-default.btn-xs(ng-click="add()")
2017-03-20 23:03:10 +01:00
span.glyphicon.glyphicon-plus
2017-03-21 18:16:32 +01:00
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
2017-03-20 23:03:10 +01:00
form.col-md-9(ng-submit="save()")
2017-03-21 18:16:32 +01:00
h3(ng-if="post.ID") Edit
h3(ng-if="!post.ID") New
2017-03-20 23:03:10 +01:00
.form-group
label(for="title") Title
2017-03-21 18:16:32 +01:00
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")
2017-03-20 23:03:10 +01:00
.form-group
2017-03-21 18:16:32 +01:00
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")
2017-03-20 23:03:10 +01:00
.form-group
label(for="content") Content
2017-03-21 18:16:32 +01:00
div(id="content",text-angular,ta-text-editor-class="clearfix border-around",ta-html-editor-class="border-around",ng-model="post.content")
2017-03-20 23:03:10 +01:00
input.btn.btn-default(type="submit",value="Save")