28 lines
807 B
HTML
28 lines
807 B
HTML
<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>
|