|
|
@@ -156,10 +156,13 @@ use common\models\Producer; |
|
|
|
<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 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> |
|
|
|
<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> |