Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | protected function renderModalContent() |
||
45 | { |
||
46 | $form = ActiveForm::begin([ |
||
47 | 'method' => 'post', |
||
48 | 'action' => ['account/update-note', 'id' => $this->model->id], |
||
49 | ]); |
||
50 | echo $form |
||
51 | ->field(new AccountNote(), 'note') |
||
52 | ->label(false) |
||
53 | ->textarea([ |
||
54 | 'maxlength' => true, |
||
55 | 'rows' => 5, |
||
56 | 'placeholder' => true, |
||
57 | 'autofocus' => true, |
||
58 | 'value' => $this->note, |
||
59 | ]); |
||
60 | |||
61 | echo Html::submitButton('Update', ['class' => 'btn btn-small btn-primary']); |
||
62 | |||
63 | ActiveForm::end(); |
||
64 | } |
||
72 | } |