11
11
$ stores = $ block ->getStoresSortedBySortOrder ();
12
12
?>
13
13
<fieldset class="fieldset">
14
- <legend class="legend"><span><?php /* @escapeNotVerified */ echo __ ('Manage Swatch (Values of Your Attribute) ' ) ?> </span></legend>
14
+ <legend class="legend">
15
+ <span><?php /* @escapeNotVerified */ echo __ ('Manage Swatch (Values of Your Attribute) ' ) ?> </span>
16
+ </legend>
15
17
<div id="swatch-text-options-panel">
16
18
<table class="data-table clearfix" cellspacing="0">
17
19
<thead>
18
20
<tr id="swatch-text-options-table">
19
21
<th class="col-draggable"></th>
20
22
<th class="col-default"><span><?php /* @escapeNotVerified */ echo __ ('Is Default ' ) ?> </span></th>
21
23
<?php foreach ($ stores as $ _store ): ?>
22
- <?php if ($ _store ->getId () != \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?>
23
- <th class="col-swatch col-<%- data.id %>"><span><?php /* @escapeNotVerified */ echo __ ('Swatch ' ); ?> </span></th>
24
- <?php endif ; ?>
25
- <th<?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> class="_required"<?php endif ; ?> >
24
+ <th class="col-swatch col-<%- data.id %>
25
+ <?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> _required<?php endif ; ?> "
26
+ colspan="2">
26
27
<span><?php /* @escapeNotVerified */ echo $ _store ->getName () ?> </span>
27
28
</th>
28
29
<?php endforeach ; ?>
@@ -40,7 +41,8 @@ $stores = $block->getStoresSortedBySortOrder();
40
41
<tr>
41
42
<th colspan="<?php /* @escapeNotVerified */ echo $ colTotal ; ?> " class="col-actions-add">
42
43
<?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()):?>
43
- <button id="add_new_swatch_text_option_button" title="<?php /* @escapeNotVerified */ echo __ ('Add Swatch ' ); ?> "
44
+ <button id="add_new_swatch_text_option_button" title="
45
+ <?php /* @escapeNotVerified */ echo __ ('Add Swatch ' ); ?> "
44
46
type="button" class="action- scalable add">
45
47
<span><?php /* @escapeNotVerified */ echo __ ('Add Swatch ' ); ?> </span>
46
48
</button>
@@ -55,21 +57,36 @@ $stores = $block->getStoresSortedBySortOrder();
55
57
<tr>
56
58
<td class="col-draggable">
57
59
<?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()): ?>
58
- <div data-role="draggable-handle" class="draggable-handle" title="<?php /* @escapeNotVerified */ echo __ ('Sort Option ' ); ?> "></div>
60
+ <div data-role="draggable-handle"
61
+ class="draggable-handle"
62
+ title="<?php /* @escapeNotVerified */ echo __ ('Sort Option ' ); ?> "></div>
59
63
<?php endif ; ?>
60
- <input data-role="order" type="hidden" name="optiontext[order][<%- data.id %>]" value="<%- data.sort_order %>" <?php if ($ block ->getReadOnly () || $ block ->canManageOptionDefaultOnly ()): ?> disabled="disabled"<?php endif ; ?> />
64
+ <input data-role="order" type="hidden" name="optiontext[order][<%- data.id %>]"
65
+ value="<%- data.sort_order %>"
66
+ <?php if ($ block ->getReadOnly () || $ block ->canManageOptionDefaultOnly ()): ?> disabled="disabled"<?php endif ; ?>
67
+ />
61
68
</td>
62
69
<td class="col-default">
63
- <input class="input-radio" type="<%- data.intype %>" name="defaulttext[]" value="<%- data.id %>" <%- data.checked %><?php if ($ block ->getReadOnly ()):?> disabled="disabled"<?php endif ;?> />
70
+ <input class="input-radio"
71
+ type="<%- data.intype %>"
72
+ name="defaulttext[]"
73
+ value="<%- data.id %>" <%- data.checked %><?php if ($ block ->getReadOnly ()):?> disabled="disabled"<?php endif ;?> />
64
74
</td>
65
75
<?php foreach ($ stores as $ _store ): ?>
66
- <?php if ($ _store ->getId () != \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?>
67
76
<td class="col-swatch col-<%- data.id %>">
68
- <input class="input-text swatch-text-field-<?php /* @escapeNotVerified */ echo $ _store ->getId () ?> <?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> required-option<?php endif ; ?> " name="swatchtext[value][<%- data.id %>][<?php /* @escapeNotVerified */ echo $ _store ->getId () ?> ]" type="text" value="<%- data.swatch<?php /* @escapeNotVerified */ echo $ _store ->getId () ?> %>" />
77
+ <input class="input-text
78
+ swatch-text-field-<?php /* @escapeNotVerified */ echo $ _store ->getId () ?>
79
+ <?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> required-option<?php endif ; ?> "
80
+ name="swatchtext[value][<%- data.id %>][<?php /* @escapeNotVerified */ echo $ _store ->getId () ?> ]"
81
+ type="text" value="<%- data.swatch<?php /* @escapeNotVerified */ echo $ _store ->getId () ?> %>"
82
+ placeholder="<?php echo __ ("Swatch " ); ?> " />
69
83
</td>
70
- <?php endif ; ?>
71
84
<td class="swatch-col-<%- data.id %>">
72
- <input name="optiontext[value][<%- data.id %>][<?php /* @escapeNotVerified */ echo $ _store ->getId () ?> ]" value="<%- data.store<?php /* @escapeNotVerified */ echo $ _store ->getId () ?> %>" class="input-text<?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> required-option<?php endif ; ?> " type="text" <?php if ($ block ->getReadOnly () || $ block ->canManageOptionDefaultOnly ()):?> disabled="disabled"<?php endif ;?> />
85
+ <input name="optiontext[value][<%- data.id %>][<?php /* @escapeNotVerified */ echo $ _store ->getId () ?> ]"
86
+ value="<%- data.store<?php /* @escapeNotVerified */ echo $ _store ->getId () ?> %>"
87
+ class="input-text<?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> required-option<?php endif ; ?> "
88
+ type="text" <?php if ($ block ->getReadOnly () || $ block ->canManageOptionDefaultOnly ()):?> disabled="disabled"<?php endif ;?>
89
+ placeholder="<?php echo __ ("Description " ); ?> " />
73
90
</td>
74
91
<?php endforeach ; ?>
75
92
<td id="delete_button_swatch_container_<%- data.id %>" class="col-delete">
0 commit comments