Commit a12b9fdd1651a25217711b4157235cb4c09088c8

Authored by Виталий
1 parent 375d6177

Веталь

Showing 1 changed file with 14 additions and 16 deletions   Show diff stats
frontend/views/basket/index.php
... ... @@ -62,23 +62,21 @@ $('#orders-delivery input[type=\"radio\"]').click(function(){
62 62 <div class="input-blocks-wrapper">
63 63 <?php echo $form->field($modelOrder, 'email', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?>
64 64 </div>
  65 +
  66 + <div class="input-blocks-wrapper">
  67 + <?= $form->field($modelOrder, 'delivery')
  68 + ->radioList(ArrayHelper::map(Delivery::find()->where(['parent_id'=>0])->asArray()->all(), 'id', 'title'),[
  69 + 'item' => function($index, $label, $name, $checked, $value) {
  70 + $return = '<div class="custom-form-buttons">';
  71 + $return .= '<input class="custom-radio" id="custom-radio-' . $value . '" ' . ( $checked ? "checked" : "" ) . ' type="radio" name="' . $name . '" value="' . $value . '" >';
  72 + $return .= '<label for="custom-radio-' . $value . '" ><span></span>' . $label . '</label>';
  73 + $return .= '</div>';
  74 + return $return;
  75 + },
  76 + ])
  77 + ?>
  78 + </div>
65 79  
66   -
67   -
68   -
69   -
70   -
71   - <?= $form->field($modelOrder, 'delivery')
72   - ->radioList(ArrayHelper::map(Delivery::find()->where(['parent_id'=>0])->asArray()->all(), 'id', 'title'),[
73   - 'item' => function($index, $label, $name, $checked, $value) {
74   - $return = '<div class="custom-form-buttons">';
75   - $return .= '<input class="custom-radio" id="custom-radio-' . $value . '" ' . ( $checked ? "checked" : "" ) . ' type="radio" name="' . $name . '" value="' . $value . '" >';
76   - $return .= '<label for="custom-radio-' . $value . '" ><span></span>' . $label . '</label>';
77   - $return .= '</div>';
78   - return $return;
79   - },
80   - ])
81   - ?>
82 80 <div class="both"></div>
83 81  
84 82 <?php foreach(Delivery::find()->where(['parent_id'=>0])->all() as $item):?>
... ...