server/admin/static/views/theme.html

35 lines
1.2 KiB
HTML
Raw Normal View History

2016-12-26 00:20:06 +00:00
<h2>{{theme.name}} <small>{{theme.authors}}</small></h2>
<form class="form" ng-submit="saveTheme()" class="form-horizontal">
2016-01-22 16:37:29 +00:00
<div class="form-group" ng-repeat="field in fields">
2016-12-26 00:20:06 +00:00
<label for="{{ field }}">{{ field | capitalize }}</label>
2016-01-22 16:37:29 +00:00
<input type="text" class="form-control" id="{{ field }}" ng-model="theme[field]">
</div>
2016-12-26 00:20:06 +00:00
<div class="text-right">
<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-save" aria-hidden="true"></span> Save</button>
<button class="btn btn-danger" ng-click="deleteTheme()"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Delete</button>
</div>
2016-01-22 16:37:29 +00:00
</form>
2016-12-26 00:20:06 +00:00
<h3>Exercices</h3>
2016-01-22 16:37:29 +00:00
<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>
2016-12-26 00:20:06 +00:00
<tr ng-repeat="exercice in exercices | filter: query" ng-click="show(exercice.id)">
2016-01-22 16:37:29 +00:00
<td ng-repeat="field in fields">
2016-12-26 00:20:06 +00:00
{{ exercice[field] }}
2016-01-22 16:37:29 +00:00
</td>
</tr>
</tbody>
</table>
</div>