wip static
This commit is contained in:
parent
f25068075c
commit
53174f31b4
24 changed files with 2100 additions and 0 deletions
47
static/views/items.html
Normal file
47
static/views/items.html
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<ul ng-controller="TagsController">
|
||||
<li ng-repeat="room in rooms">
|
||||
<span ng-bind="room.label"></span>
|
||||
<ul ng-controller="ItemsRoomController">
|
||||
<li ng-repeat="item in items">
|
||||
<span ng-if="!item.edit" ng-controller="TagsItemController">
|
||||
<strong>{{ item.label }}</strong>
|
||||
<span class="badge badge-secondary" ng-repeat="tag in itags">
|
||||
<span ng-if="!tag.edit">{{ tag.label }}</span>
|
||||
<select ng-options="tag.id as tag.label for tag in tags track by tag.id" ng-model="tag.val" ng-if="tag.edit">
|
||||
</select>
|
||||
<a ng-click="delItemTag()" ng-if="!tag.edit">
|
||||
<span class="glyphicon glyphicon-minus" aria-hidden="true"></span>
|
||||
</a>
|
||||
<a ng-click="saveItemTag()" ng-if="tag.edit">
|
||||
<span class="glyphicon glyphicon-check" aria-hidden="true"></span>
|
||||
</a>
|
||||
</span>
|
||||
<a class="badge badge-secondary" ng-click="newItemTag()">
|
||||
Add
|
||||
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
||||
</a>
|
||||
<button type="button" class="btn btn-sm btn-primary" ng-click="editItem()" ng-if="!item.edit">
|
||||
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-sm btn-danger" ng-click="delItem()" ng-if="!item.edit">
|
||||
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
|
||||
</button><br>
|
||||
{{ item.description }}
|
||||
</span>
|
||||
<form ng-if="item.edit" ng-submit="saveItem()">
|
||||
<input ng-model="item.label">
|
||||
<button type="submit" class="btn btn-sm btn-success">
|
||||
<span class="glyphicon glyphicon-check" aria-hidden="true"></span>
|
||||
</button>
|
||||
<br>
|
||||
<textarea ng-model="item.description"></textarea>
|
||||
</form>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="btn btn-sm btn-dark" ng-click="newItem()">
|
||||
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue