Browse Source

Validation d'un document : formulaire classique avec redirection vers l'index #166

dev
Guillaume Bourgeois 4 years ago
parent
commit
d042f0ac29
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      backend/views/document/_form.php

+ 5
- 2
backend/views/document/_form.php View File

<a href="<?= Yii::$app->urlManager->createUrl([Yii::$app->controller->getControllerUrl().'/download', 'id' => $model->id]) ?>" class="btn btn-default"><span class="glyphicon glyphicon-download-alt"></span> Télécharger (PDF)</a> <a href="<?= Yii::$app->urlManager->createUrl([Yii::$app->controller->getControllerUrl().'/download', 'id' => $model->id]) ?>" class="btn btn-default"><span class="glyphicon glyphicon-download-alt"></span> Télécharger (PDF)</a>
</div> </div>
</div> </div>
<div id="" class="info-box">
<div v-if="document.status == 'draft'" id="" class="info-box">
<span class="info-box-icon bg-red"><i class="fa fa-flash"></i></span> <span class="info-box-icon bg-red"><i class="fa fa-flash"></i></span>
<div class="info-box-content"> <div class="info-box-content">
<a v-if="document.status == 'draft'" class="btn btn-default" @click="validateDocument"><span class="glyphicon glyphicon-ok"></span> Valider le document</a>
<form action="<?= Yii::$app->urlManager->createUrl([Yii::$app->controller->getControllerUrl().'/validate']) ?>">
<?= Html::hiddenInput('id', $model->id); ?>
<button class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Valider le document</button>
</form>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save