Commit 034ab0d0c041a7f2f2d06895639891b8074995aa
1 parent
372c512e
Веталь
Showing
2 changed files
with
22 additions
and
4 deletions
Show diff stats
frontend/views/basket/index.php
... | ... | @@ -46,7 +46,7 @@ $('#orders-delivery input[type=\"radio\"]').click(function(){ |
46 | 46 | <div class="form-order"> |
47 | 47 | <div class="input-blocks-group"> |
48 | 48 | <div class="title_groups">контакты</div> |
49 | - <div class="input-blocks-wrapper"> | |
49 | + <div class="input-blocks-wrapper" style="margin-top: 0"> | |
50 | 50 | <?php echo $form->field($modelOrder, 'name', [ 'options' => [ 'class' => 'input-blocks basket_input_2' ] ])->textInput([ 'class' => 'custom-input-2' ]); ?> |
51 | 51 | </div> |
52 | 52 | <div class="input-blocks-wrapper"> |
... | ... | @@ -104,14 +104,26 @@ $('#orders-delivery input[type=\"radio\"]').click(function(){ |
104 | 104 | <?php endforeach;?> |
105 | 105 | <div class="input-blocks-group radio_grp"> |
106 | 106 | <div class="input-blocks-wrapper"> |
107 | - <?php echo $form->field($modelOrder, 'payment')->radioList(['Оплатить наличными'=>'Оплатить наличными','Оплатить на карту Приват Банка'=>'Оплатить на карту Приват Банка','Оплатить по безналичному расчету'=>'Оплатить по безналичному расчету','Оплатить Правекс-телеграф'=>'Оплатить Правекс-телеграф','Наложенным платежом'=>'Наложенным платежом']); ?> | |
107 | + <?php echo $form->field($modelOrder, 'payment')->radioList(['Оплатить наличными'=>'Оплатить наличными','Оплатить на карту Приват Банка'=>'Оплатить на карту Приват Банка','Оплатить по безналичному расчету'=>'Оплатить по безналичному расчету','Оплатить Правекс-телеграф'=>'Оплатить Правекс-телеграф','Наложенным платежом'=>'Наложенным платежом'],[ | |
108 | + 'item' => function($index, $label, $name, $checked, $value) { | |
109 | + $return = '<div class="custom-form-buttons">'; | |
110 | + $return .= '<input class="custom-radio" id="custom-radio-' . $value . '" ' . ( $checked ? "checked" : "" ) . ' type="radio" name="' . $name . '" value="' . $value . '" >'; | |
111 | + $return .= '<label for="custom-radio-' . $value . '" ><span></span>' . $label . '</label>'; | |
112 | + $return .= '</div>'; | |
113 | + return $return; | |
114 | + }, | |
115 | + ]); ?> | |
108 | 116 | </div> |
109 | 117 | </div> |
110 | 118 | |
119 | + | |
120 | + | |
121 | + | |
111 | 122 | <div class="both"></div> |
112 | 123 | |
113 | 124 | |
114 | -<?php echo $form->field($modelOrder,'body')->textarea(['rows'=>7]); ?> | |
125 | +<?php echo $form->field($modelOrder,'body')->textarea(['rows'=>7]); ?> | |
126 | + | |
115 | 127 | <?php echo Html::submitButton(' Оформить заказ ',array('class'=>'submit4')); ?> |
116 | 128 | </div> |
117 | 129 | </div> | ... | ... |
frontend/web/css/style.css
... | ... | @@ -1346,6 +1346,7 @@ ul.product-special li.promo:after { |
1346 | 1346 | font-size: 12px; |
1347 | 1347 | font-weight: bold; |
1348 | 1348 | text-transform: uppercase; |
1349 | + margin-bottom: 12px; | |
1349 | 1350 | } |
1350 | 1351 | .input-blocks-group { |
1351 | 1352 | width: 100%; |
... | ... | @@ -1371,6 +1372,7 @@ input.custom-radio + label span{ |
1371 | 1372 | background: url('../img/radio_new.png') no-repeat; |
1372 | 1373 | float: left; |
1373 | 1374 | transition: .2s; |
1375 | + margin-top: 1px; | |
1374 | 1376 | } |
1375 | 1377 | input.custom-radio:checked + label span, input.custom-radio:checked + label:hover span { |
1376 | 1378 | background: url('../img/radio_new-active.png') no-repeat; |
... | ... | @@ -1378,4 +1380,8 @@ input.custom-radio:checked + label span, input.custom-radio:checked + label:hove |
1378 | 1380 | |
1379 | 1381 | input.custom-radio + label:hover { |
1380 | 1382 | text-decoration: underline; |
1381 | -} | |
1382 | 1383 | \ No newline at end of file |
1384 | +} | |
1385 | +.custom-form-buttons { | |
1386 | + margin-top: 7px; | |
1387 | +} | |
1388 | +.custom-form-buttons:first-child {margin-top: 0} | |
1383 | 1389 | \ No newline at end of file | ... | ... |