Skip to content

Commit

Permalink
ENGCOM-3573: Forword Port : Fixed-19379-Tax Rate Checkbox alignment i…
Browse files Browse the repository at this point in the history
…ssue #19383 #19413
  • Loading branch information
sivaschenko authored Jan 13, 2019
2 parents adf4e6e + 3f88a05 commit 5c7f2c9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@

> .admin__field-control {
#mix-grid .column(@field-control-grid__column, @field-grid__columns);
input[type="checkbox"] {
margin-top: 1.2rem;
}
}

> .admin__field-label {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,4 +403,21 @@ public function getFileOptionElements()
{
return $this->_rootElement->getElements($this->hintMessage);
}

/**
* @inheritdoc
*/
protected function _fill(array $fields, SimpleElement $element = null)
{
$context = ($element === null) ? $this->_rootElement : $element;
foreach ($fields as $name => $field) {
$element = $this->getElement($context, $field);
if (!$element->isDisabled()) {
$element->getContext()->hover();
$element->setValue($field['value']);
} else {
throw new \Exception("Unable to set value to field '$name' as it's disabled.");
}
}
}
}

0 comments on commit 5c7f2c9

Please sign in to comment.