Commit 459a11d67a9619dbd8368375b320d072036b90bd
1 parent
8b12853f
image size
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
frontend/views/basket/index.php
@@ -69,8 +69,11 @@ $('#orders-delivery input[type=\"radio\"]').click(function(){ | @@ -69,8 +69,11 @@ $('#orders-delivery input[type=\"radio\"]').click(function(){ | ||
69 | 69 | ||
70 | <div class="input-blocks-group radio_grp hidden_box"> | 70 | <div class="input-blocks-group radio_grp hidden_box"> |
71 | <div class="input-blocks-wrapper"> | 71 | <div class="input-blocks-wrapper"> |
72 | - <?= $form->field($modelOrder, 'delivery') | ||
73 | - ->radioList(ArrayHelper::map(Delivery::find()->where(['parent_id'=>0])->asArray()->all(), 'id', 'title'),[ | 72 | + <?php |
73 | + $deliveries = ArrayHelper::map(Delivery::find()->where(['parent_id'=>0])->asArray()->all(), 'id', 'title'); | ||
74 | + array_pop($deliveries); | ||
75 | + echo $form->field($modelOrder, 'delivery') | ||
76 | + ->radioList($deliveries,[ | ||
74 | 'item' => function($index, $label, $name, $checked, $value) { | 77 | 'item' => function($index, $label, $name, $checked, $value) { |
75 | $return = '<div class="custom-form-buttons">'; | 78 | $return = '<div class="custom-form-buttons">'; |
76 | $return .= '<input class="custom-radio" id="custom-radio-' . $value . '" ' . ( $checked ? "checked" : "" ) . ' type="radio" name="' . $name . '" value="' . $value . '" >'; | 79 | $return .= '<input class="custom-radio" id="custom-radio-' . $value . '" ' . ( $checked ? "checked" : "" ) . ' type="radio" name="' . $name . '" value="' . $value . '" >'; |