| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | public function renderForm() |
||
| 51 | { |
||
| 52 | $form = ActiveForm::begin([ |
||
| 53 | 'action' => Url::to(['upload-image']), |
||
| 54 | 'options' => [ |
||
| 55 | 'enctype' => 'multipart/form-data' |
||
| 56 | ] |
||
| 57 | ]); |
||
| 58 | echo $form->field($this->model, 'imageFile')->fileInput(); |
||
| 59 | echo Html::submitButton('<span class="fa fa-upload"></span> ' . Module::t('module', 'Submit'), [ |
||
| 60 | 'class' => 'btn btn-primary', |
||
| 61 | 'name' => 'submit-button', |
||
| 62 | ]); |
||
| 63 | ActiveForm::end(); |
||
| 64 | } |
||
| 66 |