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/blog.jade

56 lines
1.9 KiB
Plaintext
Raw Normal View History

2017-03-20 23:03:10 +01:00
.container
h1 Blogs
.row
ul.nav.nav-tabs
li(ng-repeat="item in bloglist", ng-class="{'active':item.ID == blog.ID}")
a(ui-sref="app.webS.blog.post({websiteid:websiteid, blogid:item.ID})",ui-sref-active="active") {{item.title}}
li
a(ui-sref="app.webS.blog({websiteid:websiteid, blogid:-1})")
span.glyphicon.glyphicon-plus
li(style="float:right")
a(ui-sref="app.webS.blog({websiteid:websiteid, blogid:blog.ID})",ui-sref-active="active")
span.glyphicon.glyphicon-cog
.row(ui-view="posts")
form(ng-submit="save()")
h3(ng-if="blog.ID") Edit
h3(ng-if="!blog.ID") New
.form-group
label(for="title") Title
input.form-control(id="title",ng-model="blog.title")
.form-group
label(for="url") URL
br
i (http(s)://DOMAIN/{{blog.url.path}})
input.form-control(id="url",ng-model="blog.url.path")
.form-group
2017-03-21 18:16:32 +01:00
label(for="posturl") Post url schema
.input-group
.input-group-addon http(s)://DOMAIN/{{blog.url.path}}
select.form-control(ng-model="blog.posturl",ng-options="item.key as item.label for item in posturlOptions")
2017-03-20 23:03:10 +01:00
.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="blog.content")
2017-03-21 18:16:32 +01:00
// .form-group
.checkbox
label
input(type="checkbox",ng-model="blog.preview_enable")
| Preview image
.form-group
.checkbox
label
input(type="checkbox",ng-model="blog.author_enable")
| Show author
.form-group
.checkbox
label
input(type="checkbox",ng-model="blog.createat_enable")
| Show create at
.form-group
.checkbox
label
input(type="checkbox",ng-model="blog.timerange_enable")
| Manage timerange in post
2017-03-20 23:03:10 +01:00
input.btn.btn-default(type="submit",value="Save")
input.btn.btn-danger(ng-if="blog.ID",value="Delete",ng-click="delete(blog)")