Browse Source

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

dev
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

<?= Html::hiddenInput('id', $model->id); ?> <?= Html::hiddenInput('id', $model->id); ?>
<button class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Valider le document</button> <button class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Valider le document</button>
</form> </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> </div>
</div> </div>

Loading…
Cancel
Save