File tree Expand file tree Collapse file tree 3 files changed +50
-4
lines changed
code/Magento/Sales/view/adminhtml/templates/order/create
design/adminhtml/Magento/backend/Magento_Sales/web/css/source/module Expand file tree Collapse file tree 3 files changed +50
-4
lines changed Original file line number Diff line number Diff line change 20
20
<input type="text" class="admin__control-text" id="coupons:code" value="" name="coupon_code" />
21
21
<?php echo $ block ->getButtonHtml (__ ('Apply ' ), 'order.applyCoupon($F( \'coupons:code \')) ' ) ?>
22
22
<?php if ($ block ->getCouponCode ()): ?>
23
- <p><strong><?php echo $ block ->escapeHtml ($ block ->getCouponCode ()) ?> </strong> [<a href="#" onclick="order.applyCoupon(''); return false;" title="<?php echo __ ('Remove Coupon Code ' ) ?> "><?php echo __ ('Remove ' ) ?> </a>]</p>
23
+ <p class="added-coupon-code">
24
+ <span><?php echo $ block ->escapeHtml ($ block ->getCouponCode ()) ?> </span>
25
+ <a href="#" onclick="order.applyCoupon(''); return false;" title="<?php echo __ ('Remove Coupon Code ' ) ?> "
26
+ class="action-remove"><span><?php echo __ ('Remove ' ) ?> </span></a>
27
+ </p>
24
28
<?php endif ; ?>
25
29
<script>
26
30
require(["Magento_Sales/order/create/form"], function(){
Original file line number Diff line number Diff line change @@ -95,7 +95,9 @@ require(['prototype'], function(){
95
95
<input type="hidden" name="order[has_shipping]" value="" class="required-entry" />
96
96
</div>
97
97
<?php endif ; ?>
98
- <div style="display:none;" id="shipping-method-overlay" class="overlay"><span><?php echo __ ('You don \'t need to select a shipping method. ' ) ?> </span></div>
98
+ <div style="display: none;" id="shipping-method-overlay" class="order-methods-overlay">
99
+ <span><?php echo __ ('You don \'t need to select a shipping method. ' ) ?> </span>
100
+ </div>
99
101
<script>
100
102
require(["Magento_Sales/order/create/form"], function(){
101
103
Original file line number Diff line number Diff line change 225
225
vertical-align : top ;
226
226
227
227
.admin__field-control {
228
- padding-right : 35 px ;
228
+ padding-right : 32 px ;
229
229
position : relative ;
230
230
}
231
231
232
232
.action-default {
233
233
& :extend(.abs-action-reset all );
234
- bottom : 7px ;
234
+ top : 7px ;
235
235
position : absolute ;
236
236
right : 0 ;
237
237
> span {
247
247
color : @page-order-icon-plus__hover__color ;
248
248
}
249
249
}
250
+ p {
251
+ margin : @indent__s 0 0 ;
252
+ }
253
+ }
254
+ .action-remove {
255
+ color : @color-brownie ;
256
+ margin-left : @indent__xs ;
257
+ & :hover {
258
+ color : @color-very-dark-gray-black2 ;
259
+ text-decoration : none ;
260
+ }
261
+ > span {
262
+ .extend__visually-hidden ();
263
+ }
264
+ & :before {
265
+ & :extend(.abs-icon all );
266
+ content : @page-order-icon-remove__content ;
267
+ }
250
268
}
251
269
}
252
270
383
401
padding-top : @field-option__padding-top ;
384
402
}
385
403
404
+ .order-shipping-method ,
405
+ .order-billing-method {
406
+ position : relative ;
407
+ }
408
+
409
+ .order-methods-overlay {
410
+ background : rgba (255 , 255 , 255 , .5 );
411
+ bottom : 0 ;
412
+ left : 0 ;
413
+ position : absolute ;
414
+ right : 0 ;
415
+ top : 0 ;
416
+ span {
417
+ background : @color-white ;
418
+ display : block ;
419
+ font-weight : @font-weight__bold ;
420
+ left : 0 ;
421
+ position : absolute ;
422
+ top : 48px ;
423
+ }
424
+ }
425
+
386
426
//
387
427
// Gift options
388
428
// ---------------------------------------------
You can’t perform that action at this time.
0 commit comments