Skip to content

Commit 3044345

Browse files
author
Natalia Momotenko
committed
Merge remote-tracking branch 'origin/MAGETWO-37876' into PR
2 parents c2ac30e + 4b4b010 commit 3044345

File tree

2 files changed

+33
-22
lines changed
  • app
    • code/Magento/Config/view/adminhtml/templates/system/config/form/field
    • design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/main

2 files changed

+33
-22
lines changed

app/code/Magento/Config/view/adminhtml/templates/system/config/form/field/array.phtml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,28 @@ $_colspan = $block->isAddAfter() ? 2 : 1;
1414
?>
1515

1616
<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>
3739
<input type="hidden" name="<?php echo $block->getElement()->getName(); ?>[__empty]" value="" />
3840

3941
<script>
@@ -54,10 +56,10 @@ $_colspan = $block->isAddAfter() ? 2 : 1;
5456
<?php endforeach; ?>
5557

5658
<?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>'
5860
<?php endif; ?>
5961

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>'
6163
+'<\/tr>'
6264
),
6365

app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/main/_collapsible-blocks.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,15 @@
287287
td[colspan] {
288288
padding: 0;
289289
}
290+
.admin__control-table {
291+
margin: 0 0 @indent__xs;
292+
td {
293+
padding: @control-table-cell__padding-vertical 2.5rem @control-table-cell__padding-vertical 0;
294+
&:first-child {
295+
padding-left: 1.5rem;
296+
}
297+
}
298+
}
290299
input[type='text'],
291300
input[type='password'],
292301
select,

0 commit comments

Comments
 (0)