@@ -43,13 +43,16 @@ |
||
| 43 | 43 | 'value' => !is_null($country) ? (new AddressHelper())->formatList($country->getDivisions()) : [], |
| 44 | 44 | ], |
| 45 | 45 | ]);?> |
| 46 | - <?php else:?> |
|
| 46 | + <?php else { |
|
| 47 | + :?> |
|
| 47 | 48 | <?= $form->field($model, 'state')->widget(Select2::class, [ |
| 48 | 49 | 'data'=> ArrayHelper::map((new AddressHelper())->formatList($country->getDivisions()),'id', 'name'), |
| 49 | 50 | 'options' => [ |
| 50 | 51 | 'placeholder' => $widget->placeHolders['state'], |
| 51 | 52 | ], |
| 52 | - ]);?> |
|
| 53 | + ]); |
|
| 54 | +} |
|
| 55 | +?> |
|
| 53 | 56 | <?php endif;?> |
| 54 | 57 | </div> |
| 55 | 58 | </div> |