admin: Can modify help and order props in ui
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
nemunaire 2021-08-31 20:39:24 +02:00
parent 6223d2be36
commit dcb0cb315b

View File

@ -32,6 +32,10 @@
<label for="kplaceholder{{flag.id}}" class="col-form-label-sm">Placeholder</label> <label for="kplaceholder{{flag.id}}" class="col-form-label-sm">Placeholder</label>
<input type="text" id="kplaceholder{{flag.id}}" ng-model="flag.placeholder" class="form-control form-control-sm" placeholder="Indication de formatage" title="Indication de formatage"> <input type="text" id="kplaceholder{{flag.id}}" ng-model="flag.placeholder" class="form-control form-control-sm" placeholder="Indication de formatage" title="Indication de formatage">
</div> </div>
<div class="form-group">
<label for="khelp{{flag.id}}" class="col-form-label-sm">Help</label>
<input type="text" id="khelp{{flag.id}}" ng-model="flag.help" class="form-control form-control-sm" help="Description du champ" title="Description du champ">
</div>
<div class="form-group"> <div class="form-group">
<label for="kvalue{{flag.id}}" class="col-form-label-sm">Valeur</label> <label for="kvalue{{flag.id}}" class="col-form-label-sm">Valeur</label>
<div class="input-group" ng-if="flag.id && !flag.show_raw"> <div class="input-group" ng-if="flag.id && !flag.show_raw">
@ -55,9 +59,12 @@
<input type="checkbox" class="custom-control-input" id="kmline{{flag.id}}" ng-model="flag.multiline"> <input type="checkbox" class="custom-control-input" id="kmline{{flag.id}}" ng-model="flag.multiline">
<label class="custom-control-label" for="kmline{{flag.id}}">Multiline</label> <label class="custom-control-label" for="kmline{{flag.id}}">Multiline</label>
</div> </div>
<div class="col-4"> <div class="col-2">
<input type="text" id="kccost{{flag.id}}" ng-model="flag.choices_cost" class="form-control form-control-sm" placeholder="Choices cost" title="Choices cost" integer> <input type="text" id="kccost{{flag.id}}" ng-model="flag.choices_cost" class="form-control form-control-sm" placeholder="Choices cost" title="Choices cost" integer>
</div> </div>
<div class="col-2">
<input type="text" id="korder{{flag.id}}" ng-model="flag.order" class="form-control form-control-sm" placeholder="Order" title="Order" integer>
</div>
</div> </div>
</form> </form>
</div> </div>
@ -121,6 +128,9 @@
<form ng-submit="saveQuiz()" class="list-group-item" ng-repeat="(qk,q) in quiz"> <form ng-submit="saveQuiz()" class="list-group-item" ng-repeat="(qk,q) in quiz">
<div class="form-group row" id="quiz-{{q.id}}"> <div class="form-group row" id="quiz-{{q.id}}">
<input type="text" id="qlabel{{q.id}}" ng-model="q.title" class="col form-control" placeholder="Intitulé"> <input type="text" id="qlabel{{q.id}}" ng-model="q.title" class="col form-control" placeholder="Intitulé">
<div class="col-1" ng-show="q.id">
<input type="text" id="qorder{{q.id}}" ng-model="q.order" class="col form-control" placeholder="Ordre" title="Ordre" integer>
</div>
<div class="col-auto" ng-show="q.id"> <div class="col-auto" ng-show="q.id">
<button type="button" ng-click="deleteQuiz()" class="btn btn-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button> <button type="button" ng-click="deleteQuiz()" class="btn btn-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button>
</div> </div>