@@ -14,26 +14,28 @@ $_colspan = $block->isAddAfter() ? 2 : 1;
14
14
?>
15
15
16
16
<div class="design_theme_ua_regexp" id="grid<?php echo $ _htmlId ; ?> ">
17
- <table class="admin__control-table">
18
- <thead>
19
- <tr>
20
- <?php foreach ($ block ->getColumns () as $ columnName => $ column ): ?>
21
- <th><?php echo $ column ['label ' ]; ?> </th>
22
- <?php endforeach ;?>
23
- <th class="col-actions" colspan="<?php echo $ _colspan ; ?> ">Action</th>
24
- </tr>
25
- </thead>
26
- <tfoot>
27
- <tr>
28
- <td colspan="<?php echo count ($ block ->getColumns ())+$ _colspan ; ?> " class="col-actions-add">
29
- <button id="addToEndBtn<?php echo $ _htmlId ; ?> " class="action- add" title="<?php echo __ ('Add ' ); ?> " type="button">
30
- <span><?php echo $ block ->getAddButtonLabel (); ?> <?php echo __ ('Add ' ); ?> </span>
31
- </button>
32
- </td>
33
- </tr>
34
- </tfoot>
35
- <tbody id="addRow<?php echo $ _htmlId ; ?> "></tbody>
36
- </table>
17
+ <div class="admin__control-table-wrapper">
18
+ <table class="admin__control-table">
19
+ <thead>
20
+ <tr>
21
+ <?php foreach ($ block ->getColumns () as $ columnName => $ column ): ?>
22
+ <th><?php echo $ column ['label ' ]; ?> </th>
23
+ <?php endforeach ;?>
24
+ <th class="col-actions" colspan="<?php echo $ _colspan ; ?> ">Action</th>
25
+ </tr>
26
+ </thead>
27
+ <tfoot>
28
+ <tr>
29
+ <td colspan="<?php echo count ($ block ->getColumns ())+$ _colspan ; ?> " class="col-actions-add">
30
+ <button id="addToEndBtn<?php echo $ _htmlId ; ?> " class="action-add" title="<?php echo __ ('Add ' ); ?> " type="button">
31
+ <span><?php echo $ block ->getAddButtonLabel (); ?> <?php echo __ ('Add ' ); ?> </span>
32
+ </button>
33
+ </td>
34
+ </tr>
35
+ </tfoot>
36
+ <tbody id="addRow<?php echo $ _htmlId ; ?> "></tbody>
37
+ </table>
38
+ </div>
37
39
<input type="hidden" name="<?php echo $ block ->getElement ()->getName (); ?> [__empty]" value="" />
38
40
39
41
<script>
@@ -54,10 +56,10 @@ $_colspan = $block->isAddAfter() ? 2 : 1;
54
56
<?php endforeach ; ?>
55
57
56
58
<?php if ($ block ->isAddAfter ()): ?>
57
- + '<td><button class="action- add" type="button" id="addAfterBtn<%- _id %>"><span><?php echo __ ('Add after ' ); ?> <\/span><\/button><\/td>'
59
+ + '<td><button class="action-add" type="button" id="addAfterBtn<%- _id %>"><span><?php echo __ ('Add after ' ); ?> <\/span><\/button><\/td>'
58
60
<?php endif ; ?>
59
61
60
- + '<td class="col-actions"><button onclick="arrayRow<?php echo $ _htmlId ?> .del(\'<%- _id %>\')" class="action- delete" type="button"><span><?php echo __ ('Delete ' ); ?> <\/span><\/button><\/td>'
62
+ + '<td class="col-actions"><button onclick="arrayRow<?php echo $ _htmlId ?> .del(\'<%- _id %>\')" class="action-delete" type="button"><span><?php echo __ ('Delete ' ); ?> <\/span><\/button><\/td>'
61
63
+'<\/tr>'
62
64
),
63
65
0 commit comments