Skip to content

Commit

Permalink
Merge pull request #19 from magento-webdev/PR-4
Browse files Browse the repository at this point in the history
[WebDev] Bugfixes - part 2
  • Loading branch information
dkvashninbay committed Oct 21, 2015
2 parents 098d3ff + ec58e4d commit 9b1f7f5
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,18 @@ public function render(\Magento\Framework\DataObject $row)
*/
protected function _getCheckboxHtml($value, $checked)
{
$html = '<input type="checkbox" ';
$html = '<label class="data-grid-checkbox-cell-inner" ';
$html .= ' for="id_' . $this->escapeHtml($value) . '">';
$html .= '<input type="checkbox" ';
$html .= 'name="' . $this->getColumn()->getFieldName() . '" ';
$html .= 'value="' . $this->escapeHtml($value) . '" ';
$html .= 'id="id_' . $this->escapeHtml($value) . '" ';
$html .= 'class="' .
($this->getColumn()->getInlineCss() ? $this->getColumn()->getInlineCss() : 'checkbox') .
' admin__control-checkbox' .
'"';
' admin__control-checkbox' . '"';
$html .= $checked . $this->getDisabled() . '/>';
$html .= '<label></label>';
$html .= '<label for="id_' . $this->escapeHtml($value) . '"></label>';
$html .= '</label>';
/* ToDo UI: add class="admin__field-label" after some refactoring _fields.less */
return $html;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ protected function _getInputHtmlWithValue(Attribute $attribute, $value)
{
$html = '<input type="text" name="' . $this->getFilterElementName(
$attribute->getAttributeCode()
) . '" class="input-text input-text-export-filter"';
) . '" class="admin__control-text input-text input-text-export-filter"';
if ($value) {
$html .= ' value="' . $this->escapeHtml($value) . '"';
}
Expand Down Expand Up @@ -190,7 +190,7 @@ protected function _getNumberFromToHtmlWithValue(Attribute $attribute, $value)
':</strong>&nbsp;' .
'<input type="text" name="' .
$name .
'[]" class="input-text input-text-range"' .
'[]" class="admin__control-text input-text input-text-range"' .
' value="' .
$fromValue .
'"/>&nbsp;' .
Expand All @@ -200,7 +200,7 @@ protected function _getNumberFromToHtmlWithValue(Attribute $attribute, $value)
) .
':</strong>&nbsp;<input type="text" name="' .
$name .
'[]" class="input-text input-text-range" value="' .
'[]" class="admin__control-text input-text input-text-range" value="' .
$toValue .
'" />';
}
Expand Down Expand Up @@ -236,7 +236,7 @@ protected function _getSelectHtmlWithValue(Attribute $attribute, $value)
$arguments = [
'name' => $this->getFilterElementName($attribute->getAttributeCode()),
'id' => $this->getFilterElementId($attribute->getAttributeCode()),
'class' => 'select select-export-filter',
'class' => 'admin__control-select select select-export-filter',
];
/** @var $selectBlock \Magento\Framework\View\Element\Html\Select */
$selectBlock = $this->_layout->createBlock(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

// @codingStandardsIgnoreFile
?>
<fieldset class="fieldset" id="export_filter_container" style="display:none;">
<legend class="legend">
<fieldset class="admin__fieldset" id="export_filter_container" style="display:none;">
<legend class="admin__legend">
<span><?php /* @escapeNotVerified */ echo __('Entity Attributes'); ?></span>
</legend>
<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected function _prepareForm()

$fieldset = $form->addFieldset(
'base_fieldset',
['legend' => __('Integration Tokens for Extensions'), 'class' => 'fieldset-wide']
['legend' => __('Integration Tokens for Extensions'), 'class' => ' fieldset-wide']
);

foreach ($this->getFormFields() as $field) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// @codingStandardsIgnoreFile

?>
<fieldset class="fieldset form-inline entry-edit">
<fieldset class="admin__fieldset form-inline entry-edit">
<?php if ($block->isTreeEmpty()): ?>
<p class="empty"><?php /* @escapeNotVerified */ echo __('No permissions requested'); ?></p>
<?php else: ?>
Expand Down
14 changes: 12 additions & 2 deletions app/design/adminhtml/Magento/backend/web/css/styles-old.less
Original file line number Diff line number Diff line change
Expand Up @@ -2640,8 +2640,8 @@
}

//
// Configuration -> Design
// --------------------------------------
// Configuration -> Design
// --------------------------------------

#row_design_theme_ua_regexp .design_theme_ua_regexp {
float: left;
Expand All @@ -2654,6 +2654,16 @@
clear: both;
}

//
// Configuration -> Advanced -> System -> Notifications section
// --------------------------------------

#row_system_adminnotification_last_update {
.value {
vertical-align: bottom;
}
}

//
// CMS -> Banners
// --------------------------------------
Expand Down

0 comments on commit 9b1f7f5

Please sign in to comment.