bills-template.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\bootstrap\ActiveForm;
  4. $this->title = Yii::t('app', 'Bills template');
  5. $this->params['breadcrumbs'][] = $this->title;
  6. ?>
  7. <div class="lots-index" xmlns="http://www.w3.org/1999/html">
  8. <?= $this->render('@app/views/_alert'); ?>
  9. <div class="panel panel-primary">
  10. <div class="panel-heading"><span class="fa fa-credit-card"></span>
  11. <strong><?= Html::encode($this->title) ?></strong>
  12. </div>
  13. <div class="panel-body">
  14. <span class="lead">
  15. <?= Yii::t('app', 'Bills template description'); ?>
  16. <br><br>
  17. </span>
  18. <div class="row">
  19. <div class="col-md-4">
  20. <?php $form = ActiveForm::begin([
  21. 'options' => [
  22. 'enctype' => 'multipart/form-data',
  23. ]
  24. ]); ?>
  25. <div class="form-group">
  26. <label for="billTemplate"><?= Yii::t('app', 'Оберіть файл'); ?></label>
  27. <?= Html::fileInput('billTemplate', null); ?>
  28. </div>
  29. <div class="form-group">
  30. <?= Html::submitButton(Yii::t('app', 'Завантажити'), ['class' => 'btn btn-warning']); ?>
  31. </div>
  32. <?php ActiveForm::end(); ?>
  33. </div>
  34. <div class="col-md-4">
  35. <?= Html::a('Скачати шаблон', '/bill-template.docx', ['class' => 'btn btn-default']); ?>
  36. </div>
  37. <div class="col-md-4">
  38. <?= Html::a('Скачати шаблон з тестовими данними', '/settings/download-template', [
  39. 'class' => 'btn btn-info',
  40. 'target' => '_blank',
  41. ]); ?>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>