admin: improve human interface

This commit is contained in:
nemunaire 2016-01-22 17:37:29 +01:00
parent 61dc38c09c
commit 46dcff83c3
4 changed files with 111 additions and 7 deletions

View file

@ -0,0 +1,27 @@
<form class="form" ng-submit="ssubmit()">
<div class="form-group" ng-repeat="field in fields">
<label for="{{ field }}">{{ field }}</label>
<input type="text" class="form-control" id="{{ field }}" ng-model="theme[field]">
</div>
<button class="btn btn-primary" ng-click="saveTheme()">Save</button>
</form>
<div ng-controller="ExercicesListController">
<p><input type="search" class="form-control" placeholder="Search" ng-model="query"></p>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th ng-repeat="field in fields">
{{ field }}
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="team in teams | filter: query" ng-click="show(team.id)">
<td ng-repeat="field in fields">
{{ team[field] }}
</td>
</tr>
</tbody>
</table>
</div>