.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 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") .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") // .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 input.btn.btn-default(type="submit",value="Save") input.btn.btn-danger(ng-if="blog.ID",value="Delete",ng-click="delete(blog)")