|
|
@@ -164,6 +164,9 @@ use common\models\Producer; |
|
|
|
<?= Html::hiddenInput('id', $model->id); ?> |
|
|
|
<button class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Valider le document</button> |
|
|
|
</form> |
|
|
|
<?php if(isset($model->user) && strlen($model->user->email) > 0): ?> |
|
|
|
<a href="<?= Yii::$app->urlManager->createUrl([Yii::$app->controller->getControllerUrl().'/send', 'id' => $model->id]) ?>" class="btn btn-default"><span class="glyphicon glyphicon-send"></span> Envoyer le document</a> |
|
|
|
<?php endif; ?> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |