Commit 375d6177263f18e159d9db013ff8ce8fbaf7c2d5
1 parent
a8b15d40
Веталь
Showing
2 changed files
with
37 additions
and
7 deletions
Show diff stats
frontend/views/basket/index.php
... | ... | @@ -44,14 +44,40 @@ $('#orders-delivery input[type=\"radio\"]').click(function(){ |
44 | 44 | <?php $form = ActiveForm::begin(['enableClientScript' => false]); ?> |
45 | 45 | <div class="rightbar basket_rightbar"> |
46 | 46 | <div class="form-order"> |
47 | -<?php echo $form->field($modelOrder,'name'); ?> | |
48 | -<?php echo $form->field($modelOrder,'phone'); ?> | |
49 | -<?php echo $form->field($modelOrder,'phone2'); ?> | |
50 | -<?php echo $form->field($modelOrder,'city'); ?> | |
51 | -<?php echo $form->field($modelOrder,'adress'); ?> | |
52 | -<?php echo $form->field($modelOrder,'email'); ?> | |
47 | + <div class="input-blocks-wrapper"> | |
48 | + <?php echo $form->field($modelOrder, 'name', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> | |
49 | + </div> | |
50 | + <div class="input-blocks-wrapper"> | |
51 | + <?php echo $form->field($modelOrder, 'phone', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> | |
52 | + </div> | |
53 | + <div class="input-blocks-wrapper"> | |
54 | + <?php echo $form->field($modelOrder, 'phone2', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> | |
55 | + </div> | |
56 | + <div class="input-blocks-wrapper"> | |
57 | + <?php echo $form->field($modelOrder, 'city', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> | |
58 | + </div> | |
59 | + <div class="input-blocks-wrapper"> | |
60 | + <?php echo $form->field($modelOrder, 'adress', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> | |
61 | + </div> | |
62 | + <div class="input-blocks-wrapper"> | |
63 | + <?php echo $form->field($modelOrder, 'email', [ 'options' => [ 'class' => 'input-blocks' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> | |
64 | + </div> | |
65 | + | |
66 | + | |
67 | + | |
68 | + | |
69 | + | |
70 | + | |
53 | 71 | <?= $form->field($modelOrder, 'delivery') |
54 | - ->radioList(ArrayHelper::map(Delivery::find()->where(['parent_id'=>0])->asArray()->all(), 'id', 'title')) | |
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 | + ]) | |
55 | 81 | ?> |
56 | 82 | <div class="both"></div> |
57 | 83 | ... | ... |
frontend/web/css/style.css
... | ... | @@ -1302,4 +1302,8 @@ ul.product-special li.promo:after { |
1302 | 1302 | .info.product-thumb-video iframe { |
1303 | 1303 | width: 100% !important; |
1304 | 1304 | height: 100% !important; |
1305 | +} | |
1306 | +.input-blocks-wrapper { | |
1307 | + width: 100%; | |
1308 | + float: left; | |
1305 | 1309 | } |
1306 | 1310 | \ No newline at end of file | ... | ... |