@@ -48,14 +48,17 @@ |
||
48 | 48 | 'value' => !is_null($country) ? (new AddressHelper())->formatList($country->getDivisions()) : [], |
49 | 49 | ], |
50 | 50 | ]);?> |
51 | - <?php else:?> |
|
51 | + <?php else { |
|
52 | + :?> |
|
52 | 53 | <?= $form->field($model, 'state')->widget(Select2::class, [ |
53 | 54 | 'data'=> ArrayHelper::map((new AddressHelper())->formatList($country->getDivisions()),'id', 'name'), |
54 | 55 | 'options' => [ |
55 | 56 | 'id' => $widget->fieldIdPrefix . "-state", |
56 | 57 | 'placeholder' => $widget->placeHolders['state'], |
57 | 58 | ], |
58 | - ]);?> |
|
59 | + ]); |
|
60 | +} |
|
61 | +?> |
|
59 | 62 | <?php endif;?> |
60 | 63 | </div> |
61 | 64 | </div> |