Browse Source

[backend] Documents : pouvoir envoyer un document non validé

refactoring
Guillaume 4 years ago
parent
commit
00f3dc3136
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      backend/views/document/_form.php

+ 3
- 0
backend/views/document/_form.php View File

@@ -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>

Loading…
Cancel
Save