Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
popup_content.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php ?>
11 <div id="packaging_window">
12  <div class="message message-warning" style="display: none"></div>
13  <section class="admin__page-section" id="package_template" style="display:none;">
14  <div class="admin__page-section-title">
15  <span class="title">
16  <?= /* @escapeNotVerified */ __('Package') ?> <span data-role="package-number"></span>
17  </span>
18  <div class="actions _primary">
19  <button type="button" class="action-secondary" data-action="package-save-items" onclick="packaging.packItems(this);">
20  <span><?= /* @escapeNotVerified */ __('Add Selected Product(s) to Package') ?></span>
21  </button>
22  <button type="button" class="action-secondary" data-action="package-add-items" onclick="packaging.getItemsForPack(this);">
23  <span><?= /* @escapeNotVerified */ __('Add Products to Package') ?></span>
24  </button>
25  </div>
26  </div>
27  <div class="admin__control-table-wrapper admin__page-subsection">
28  <table class="data-table admin__control-table">
29  <thead>
30  <tr>
31  <th class="col-type"><?= /* @escapeNotVerified */ __('Type') ?></th>
32  <?php if ($girthEnabled == 1): ?>
33  <th class="col-size"><?= /* @escapeNotVerified */ __('Size') ?></th>
34  <th class="col-girth"><?= /* @escapeNotVerified */ __('Girth') ?></th>
35  <th>&nbsp;</th>
36  <?php endif; ?>
37  <th class="col-custom" <?= $block->displayCustomsValue() ? '' : 'style="display: none;"' ?>>
38  <?= /* @escapeNotVerified */ __('Customs Value') ?>
39  </th>
40  <th class="col-total-weight"><?= /* @escapeNotVerified */ __('Total Weight') ?></th>
41  <th class="col-length"><?= /* @escapeNotVerified */ __('Length') ?></th>
42  <th class="col-width"><?= /* @escapeNotVerified */ __('Width') ?></th>
43  <th class="col-height"><?= /* @escapeNotVerified */ __('Height') ?></th>
44  <th>&nbsp;</th>
45  <?php if ($block->getDeliveryConfirmationTypes()): ?>
46  <th class="col-signature"><?= /* @escapeNotVerified */ __('Signature Confirmation') ?></th>
47  <?php endif; ?>
48  <th class="col-actions">&nbsp;</th>
49  </tr>
50  </thead>
51  <tbody>
52  <tr>
53  <td class="col-type">
54  <?php $containers = $block->getContainers(); ?>
55  <select name="package_container"
56  onchange="packaging.changeContainerType(this);packaging.checkSizeAndGirthParameter(this, <?= /* @escapeNotVerified */ $girthEnabled ?>);"
57  <?php if (empty($containers)):?>
58  title="<?= /* @escapeNotVerified */ __('USPS domestic shipments don\'t use package types.') ?>"
59  disabled=""
60  class="admin__control-select disabled"
61  <?php else: ?>
62  class="admin__control-select"
63  <?php endif; ?>>
64  <?php foreach ($block->getContainers() as $key => $value): ?>
65  <option value="<?= /* @escapeNotVerified */ $key ?>" >
66  <?= /* @escapeNotVerified */ $value ?>
67  </option>
68  <?php endforeach; ?>
69  </select>
70  </td>
71  <?php if ($girthEnabled == 1 && !empty($sizeSource)): ?>
72  <td>
73  <select name="package_size"
74  class="admin__control-select"
75  onchange="packaging.checkSizeAndGirthParameter(this, <?= /* @escapeNotVerified */ $girthEnabled ?>);">
76  <?php foreach ($sizeSource as $key => $value): ?>
77  <option value="<?= /* @escapeNotVerified */ $sizeSource[$key]['value'] ?>">
78  <?= /* @escapeNotVerified */ $sizeSource[$key]['label'] ?>
79  </option>
80  <?php endforeach; ?>
81  </select>
82  </td>
83  <td>
84  <input type="text"
85  class="input-text admin__control-text validate-greater-than-zero"
86  name="container_girth" />
87  </td>
88  <td>
89  <select name="container_girth_dimension_units"
90  class="options-units-dimensions measures admin__control-select"
91  onchange="packaging.changeMeasures(this);">
92  <option value="<?= /* @escapeNotVerified */ Zend_Measure_Length::INCH ?>" selected="selected" ><?= /* @escapeNotVerified */ __('in') ?></option>
93  <option value="<?= /* @escapeNotVerified */ Zend_Measure_Length::CENTIMETER ?>" ><?= /* @escapeNotVerified */ __('cm') ?></option>
94  </select>
95  </td>
96  <?php endif; ?>
97  <?php
98  if ($block->displayCustomsValue()) {
99  $customsValueDisplay = '';
100  $customsValueValidation = ' validate-zero-or-greater ';
101  } else {
102  $customsValueDisplay = ' style="display: none;" ';
104  }
105  ?>
106  <td class="col-custom" <?= /* @escapeNotVerified */ $customsValueDisplay ?>>
107  <div class="admin__control-addon">
108  <input type="text"
109  class="customs-value input-text admin__control-text <?= /* @escapeNotVerified */ $customsValueValidation ?>"
110  name="package_customs_value" />
111  <span class="admin__addon-suffix">
112  <span class="customs-value-currency"><?= /* @escapeNotVerified */ $block->getCustomValueCurrencyCode() ?></span>
113  </span>
114  </div>
115  </td>
116  <td class="col-total-weight">
117  <div class="admin__control-addon">
118  <input type="text"
119  class="options-weight input-text admin__control-text required-entry validate-greater-than-zero"
120  name="container_weight" />
121  <select name="container_weight_units"
122  class="options-units-weight measures admin__control-select"
123  onchange="packaging.changeMeasures(this);">
124  <option value="<?= /* @escapeNotVerified */ Zend_Measure_Weight::POUND ?>" selected="selected" ><?= /* @escapeNotVerified */ __('lb') ?></option>
125  <option value="<?= /* @escapeNotVerified */ Zend_Measure_Weight::KILOGRAM ?>" ><?= /* @escapeNotVerified */ __('kg') ?></option>
126  </select>
127  <span class="admin__addon-prefix"></span>
128  </div>
129  </td>
130  <td class="col-length">
131  <input type="text"
132  class="input-text admin__control-text validate-greater-than-zero"
133  name="container_length" />
134  </td>
135  <td class="col-width">
136  <input type="text"
137  class="input-text admin__control-text validate-greater-than-zero"
138  name="container_width" />
139  </td>
140  <td class="col-height">
141  <input type="text"
142  class="input-text admin__control-text validate-greater-than-zero"
143  name="container_height" />
144  </td>
145  <td class="col-measure">
146  <select name="container_dimension_units"
147  class="options-units-dimensions measures admin__control-select"
148  onchange="packaging.changeMeasures(this);">
149  <option value="<?= /* @escapeNotVerified */ Zend_Measure_Length::INCH ?>" selected="selected" ><?= /* @escapeNotVerified */ __('in') ?></option>
150  <option value="<?= /* @escapeNotVerified */ Zend_Measure_Length::CENTIMETER ?>" ><?= /* @escapeNotVerified */ __('cm') ?></option>
151  </select>
152  </td>
153  <?php if ($block->getDeliveryConfirmationTypes()): ?>
154  <td>
155  <select name="delivery_confirmation_types" class="admin__control-select">
156  <?php foreach ($block->getDeliveryConfirmationTypes() as $key => $value): ?>
157  <option value="<?= /* @escapeNotVerified */ $key ?>" >
158  <?= /* @escapeNotVerified */ $value ?>
159  </option>
160  <?php endforeach; ?>
161  </select>
162  </td>
163  <?php endif; ?>
164  <td class="col-actions">
165  <button type="button" class="action-delete DeletePackageBtn" onclick="packaging.deletePackage(this);">
166  <span><?= /* @escapeNotVerified */ __('Delete Package') ?></span>
167  </button>
168  </td>
169  </tr>
170  </tbody>
171  </table>
172  <?php if ($block->getContentTypes()): ?>
173  <table class="data-table admin__control-table" cellspacing="0">
174  <thead>
175  <tr>
176  <th><?= /* @escapeNotVerified */ __('Contents') ?></th>
177  <th><?= /* @escapeNotVerified */ __('Explanation') ?></th>
178  </tr>
179  </thead>
180  <tbody>
181  <tr>
182  <td>
183  <select name="content_type"
184  class="admin__control-select"
185  onchange="packaging.changeContentTypes(this);">
186  <?php foreach ($block->getContentTypes() as $key => $value): ?>
187  <option value="<?= /* @escapeNotVerified */ $key ?>" >
188  <?= /* @escapeNotVerified */ $value ?>
189  </option>
190  <?php endforeach; ?>
191  </select>
192  </td>
193  <td>
194  <input name="content_type_other"
195  type="text"
196  class="input-text admin__control-text options-content-type disabled"
197  disabled="disabled" />
198  </td>
199  </tr>
200  </tbody>
201  </table>
202  <?php endif; ?>
203  </div>
204  <div class="admin__page-subsection" data-role="package-items">
205  <div class="grid_prepare admin__page-subsection"></div>
206  </div>
207  </section>
208  <div id="packages_content"></div>
209 </div>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
$sizeSource
Definition: popup.phtml:13
foreach( $this->main as $item) endforeach
Definition: side-menu.phtml:10
__()
Definition: __.php:13
$block
Definition: block.php:8
$_count $_index $_prevOptionId if($block->getOrderOptions()|| $_item->getDescription()) foreach( $items as $_item)( $_item) ?><?php $attributes if( $_item->getOrderItem() ->getParentItem())($_prevOptionId !=$attributes['option_id'])</td >< td > & nbsp
Definition: renderer.phtml:33
$value
Definition: gender.phtml:16
$girthEnabled
Definition: popup.phtml:14