2016-09-03 16:30:05 +02:00
|
|
|
.container
|
|
|
|
h1 Websites
|
|
|
|
div (where you are involved)
|
2017-03-20 23:03:10 +01:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading All
|
|
|
|
a.pull-right.btn.btn-default.btn-xs(ng-click="isAdding=true")
|
|
|
|
span.glyphicon.glyphicon-plus
|
|
|
|
.panel-body(ng-if="isAdding")
|
|
|
|
form(ng-submit="add()",name="addform")
|
|
|
|
.form-group
|
|
|
|
label(for="name") Name
|
|
|
|
input.form-control(id="name",name="name",ng-model="obj.name",ng-minlength="3")
|
|
|
|
button.btn.btn-primary(type="submit")
|
|
|
|
span.glyphicon.glyphicon-floppy-disk
|
|
|
|
| Save
|
|
|
|
table.table(ng-table="tableParams")
|
|
|
|
tr(ng-hide='group.$hideRows',ng-repeat="item in $data")
|
|
|
|
td(data-title="'#'") {{item.website.ID}}
|
|
|
|
td(data-title="'Name'")
|
|
|
|
span(ng-if="!item.isEditing") {{item.website.name}}
|
|
|
|
form(name="myform",ng-if="item.isEditing",ng-submit="edit(item)")
|
|
|
|
.form-group(ng-class="{'has-error': (error.fields.indexOf('name') >= 0 || !myform.name.$valid)}")
|
|
|
|
label(for="name") Name
|
|
|
|
input.form-control(id="name",name="name",ng-model="item.website.name")
|
|
|
|
button.btn.btn-primary(type="submit")
|
|
|
|
span.glyphicon.glyphicon-floppy-disk
|
|
|
|
| Save
|
|
|
|
td(data-title="'Option'")
|
|
|
|
.btn-group.btn-group-xs
|
|
|
|
a.btn.btn-default(ui-sref="app.webS.blog.post({websiteid:item.website.ID})")
|
|
|
|
span.glyphicon.glyphicon-dashboard
|
|
|
|
span.btn.btn-default(ng-click="item.isEditing = true",ng-if="!item.isEditing")
|
|
|
|
span.glyphicon.glyphicon-pencil
|
|
|
|
span.btn.btn-default(ng-click="edit(item)",ng-if="item.isEditing")
|
|
|
|
span.glyphicon.glyphicon-floppy-disk
|
|
|
|
span.btn.btn-default(ng-click="delete(item)")
|
|
|
|
span.glyphicon.glyphicon-trash
|