| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | protected function renderModalContent() |
||
| 31 | { |
||
| 32 | $form = ActiveForm::begin([ |
||
| 33 | 'method' => 'post', |
||
| 34 | 'action' => ['account/update-note', 'id' => $this->model->id], |
||
| 35 | ]); |
||
| 36 | $note = $this->getNote(); |
||
| 37 | echo $form |
||
| 38 | ->field(new AccountNote(), 'note') |
||
| 39 | ->label(false) |
||
| 40 | ->textarea([ |
||
| 41 | 'maxlength' => true, |
||
| 42 | 'rows' => 5, |
||
| 43 | 'placeholder' => true, |
||
| 44 | 'autofocus' => true, |
||
| 45 | 'value' => $note, |
||
| 46 | ]); |
||
| 47 | |||
| 48 | echo Html::submitButton('Update', ['class' => 'btn btn-small btn-primary']); |
||
| 49 | |||
| 50 | ActiveForm::end(); |
||
| 51 | } |
||
| 68 | } |