123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <!--
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- -->
- <!-- ko if: isActive() || hasActiveOptions() -->
- <button class="action action-gift"
- data-bind="
- click: $data.toggleFormBlockVisibility.bind($data),
- css: {_active: formBlockVisibility() || resultBlockVisibility()}
- ">
- <span data-bind="i18n: 'Gift options'"></span>
- </button>
- <div class="gift-content" data-bind="css: {_active: formBlockVisibility() || resultBlockVisibility()}"> <!-- add class "active" to display the content -->
- <!-- ko ifnot: resultBlockVisibility() -->
- <div class="gift-options">
- <!-- ko foreach: getRegion('additionalOptions') -->
- <!-- ko template: getTemplate() --><!-- /ko -->
- <!-- /ko -->
- <!-- ko template: formTemplate --><!--/ko-->
- </div>
- <!-- /ko -->
- <!-- ko if: resultBlockVisibility() -->
- <div class="gift-summary">
- <!-- ko foreach: getRegion('additionalOptions') -->
- <!--ko template: appliedTemplate --><!-- /ko -->
- <!-- /ko -->
- <!-- ko if: getObservable('message') -->
- <div class="gift-message-summary">
- <span data-bind="i18n: 'Message' + ':'"></span>
- <!-- ko text: getObservable('message') --><!-- /ko -->
- </div>
- <!-- /ko -->
-
- <div class="actions-toolbar">
- <div class="secondary">
- <button type="submit" class="action action-edit" data-bind="
- click: $data.editOptions.bind($data),
- attr: {title: $t('Edit')">
- <span data-bind="i18n: 'Edit'"></span>
- </button>
- <button class="action action-delete" data-bind="
- click: $data.deleteOptions.bind($data),
- attr: {title: $t('Delete')">
- <span data-bind="i18n: 'Delete'"></span>
- </button>
- </div>
- </div>
- </div>
- <!-- /ko -->
- </div>
- <!-- /ko -->
|