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