Able to duplicate existing survey
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2021-03-01 18:00:28 +01:00
commit f3fd0be2b8
2 changed files with 19 additions and 2 deletions

View file

@ -54,7 +54,8 @@
<div class="form-group row">
<div class="col-sm-10">
<button type="submit" class="btn btn-primary">Enregistrer</button>
<button type="button" class="btn btn-danger" ng-click="deleteSurvey()">Supprimer</button>
<button type="button" class="btn btn-danger" ng-if="survey.id" ng-click="deleteSurvey()">Supprimer</button>
<button type="button" class="btn btn-secondary" ng-if="survey.id" ng-click="duplicateSurvey()">Dupliquer avec ces nouveaux paramètres</button>
</div>
</div>