frontend: interface can open hints
This commit is contained in:
parent
ab63617993
commit
4be161dd90
2 changed files with 32 additions and 3 deletions
|
|
@ -32,8 +32,8 @@
|
|||
</div>
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item" ng-repeat="hint in my.exercices[current_exercice].hints">
|
||||
<form class="pull-right" ng-show="!hint.unlocked">
|
||||
<button type="submit" class="btn btn-info"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span> Débloquer</button>
|
||||
<form class="pull-right" ng-show="!hint.unlocked" ng-submit="hsubmit(hint)">
|
||||
<button type="submit" class="btn btn-info" ng-class="{disabled: hint.submitted}"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span> Débloquer</button>
|
||||
</form>
|
||||
<h4 class="list-group-item-heading">{{ hint.title }}</h4>
|
||||
<p class="list-group-item-text" ng-show="hint.unlocked" ng-bind-html="hint.content"></p>
|
||||
|
|
|
|||
Reference in a new issue