Ver código fonte

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

refactoring
Guillaume 4 anos atrás
pai
commit
00f3dc3136
1 arquivos alterados com 3 adições e 0 exclusões
  1. +3
    -0
      backend/views/document/_form.php

+ 3
- 0
backend/views/document/_form.php Ver arquivo

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

Carregando…
Cancelar
Salvar