wip static
This commit is contained in:
parent
f25068075c
commit
53174f31b4
24 changed files with 2100 additions and 0 deletions
13
static/views/checks.html
Normal file
13
static/views/checks.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<div ng-repeat="room in rooms" ng-controller="ItemsRoomController">
|
||||
<h2>{{room.label}}</h2>
|
||||
<div ng-repeat="item in items">
|
||||
{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
<li>Entrée</li>
|
||||
<li>GTL</li>
|
||||
<li></li>
|
||||
<li>Entrée</li>
|
||||
</ul>
|
||||
70
static/views/home.html
Normal file
70
static/views/home.html
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
<div ng-repeat="room in rooms" ng-controller="ItemsRoomController">
|
||||
<h2>{{room.label}}</h2>
|
||||
<div class="card-columns" style="column-count: 4;">
|
||||
<div class="card" ng-repeat="item in items">
|
||||
<div class="card-header form-check">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="customCheck1">
|
||||
<label class="custom-control-label" for="customCheck1" ng-bind="item.label"></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body" ng-controller="ChecksItemController">
|
||||
{{ checks }}
|
||||
<p class="card-text" ng-if="item.description" ng-bind="item.description"></p>
|
||||
<button type="button" class="btn btn-outline-success" ng-click="checkOk()">OK</button>
|
||||
<button type="button" class="btn btn-outline-info" ng-click="checkMok()">OK, mais…</button>
|
||||
<button type="button" class="btn btn-outline-warning" ng-click="checkMko()">KO, mais…</button>
|
||||
<button type="button" class="btn btn-outline-danger" ng-click="checkKo()">KO</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<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>
|
||||
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>
|
||||
22
static/views/rooms.html
Normal file
22
static/views/rooms.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<ul>
|
||||
<li ng-repeat="room in rooms">
|
||||
<span ng-if="!room.edit" ng-bind="room.label"></span>
|
||||
<button type="button" class="btn btn-sm btn-primary" ng-click="editRoom()" ng-if="!room.edit">
|
||||
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-sm btn-danger" ng-click="delRoom()" ng-if="!room.edit">
|
||||
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
|
||||
</button>
|
||||
<form ng-if="room.edit" ng-submit="saveRoom()">
|
||||
<input ng-model="room.label" autofocus>
|
||||
<button type="submit" class="btn btn-sm btn-success">
|
||||
<span class="glyphicon glyphicon-check" aria-hidden="true"></span>
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="btn btn-sm btn-dark" ng-click="newRoom()">
|
||||
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
22
static/views/tags.html
Normal file
22
static/views/tags.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<ul>
|
||||
<li ng-repeat="tag in tags">
|
||||
<span ng-if="!tag.edit" ng-bind="tag.label"></span>
|
||||
<button type="button" class="btn btn-sm btn-primary" ng-click="editTag()" ng-if="!tag.edit">
|
||||
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-sm btn-danger" ng-click="delTag()" ng-if="!tag.edit">
|
||||
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
|
||||
</button>
|
||||
<form ng-if="tag.edit" ng-submit="saveTag()">
|
||||
<input ng-model="tag.label" autofocus>
|
||||
<button type="submit" class="btn btn-sm btn-success">
|
||||
<span class="glyphicon glyphicon-check" aria-hidden="true"></span>
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="btn btn-sm btn-dark" ng-click="newTag()">
|
||||
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
26
static/views/users.html
Normal file
26
static/views/users.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<ul>
|
||||
<li ng-repeat="user in users">
|
||||
<span ng-if="!user.edit" ng-bind="user.username"></span>
|
||||
<button type="button" class="btn btn-sm btn-primary" ng-click="editUser()" ng-if="!user.edit">
|
||||
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-sm btn-danger" ng-click="delUser()" ng-if="!user.edit">
|
||||
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
|
||||
</button>
|
||||
<form ng-if="user.edit" ng-submit="saveUser()">
|
||||
<input ng-model="user.username">
|
||||
<input ng-model="user.password" ng-if="user.editpass">
|
||||
<button type="button" class="btn btn-sm btn-primary" ng-click="editUserPass()" ng-if="!user.editpass">
|
||||
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
|
||||
</button>
|
||||
<button type="submit" class="btn btn-sm btn-success">
|
||||
<span class="glyphicon glyphicon-check" aria-hidden="true"></span>
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="btn btn-sm btn-dark" ng-click="newUser()">
|
||||
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue