File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed
app/design/adminhtml/Magento/backend/web/css/source/forms
lib/internal/Magento/Framework/Data Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,15 @@ option:empty {
176
176
}
177
177
}
178
178
179
+ //
180
+ // Service text or control. Can be used to add text or "Use Default Value" checkbox
181
+ // ---------------------------------------------
182
+
183
+ .admin__control-service {
184
+ float : left ;
185
+ margin : .8rem 0 0 3rem ;
186
+ }
187
+
179
188
//
180
189
// Textarea
181
190
// ---------------------------------------------
Original file line number Diff line number Diff line change @@ -194,20 +194,20 @@ protected function _optionToHtml($option)
194
194
{
195
195
$ id = $ this ->getHtmlId () . '_ ' . $ this ->_escape ($ option ['value ' ]);
196
196
197
- $ html = '<div class="field choice"><input id=" ' . $ id . '" ' ;
197
+ $ html = '<div class="field choice admin__field admin__field-option "><input id=" ' . $ id . '" ' ;
198
198
foreach ($ this ->getHtmlAttributes () as $ attribute ) {
199
199
if ($ value = $ this ->getDataUsingMethod ($ attribute , $ option ['value ' ])) {
200
- $ html .= ' ' . $ attribute . '=" ' . $ value . '" ' ;
200
+ $ html .= ' ' . $ attribute . '=" ' . $ value . '" class="admin__control-checkbox" ' ;
201
201
}
202
202
}
203
203
$ html .= ' value=" ' .
204
204
$ option ['value ' ] .
205
205
'" /> ' .
206
206
' <label for=" ' .
207
207
$ id .
208
- '"> ' .
208
+ '" class="admin__field-label"><span > ' .
209
209
$ option ['label ' ] .
210
- '</label></div> ' .
210
+ '</span></ label></div> ' .
211
211
"\n" ;
212
212
return $ html ;
213
213
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public function getElementHtml()
39
39
$ html = $ this ->getBeforeElementHtml ()
40
40
. '<div id=" '
41
41
. $ this ->getHtmlId ()
42
- . '" class="control-value"> '
42
+ . '" class="control-value admin__field-value "> '
43
43
. $ this ->getText ()
44
44
. '</div> '
45
45
. $ this ->getAfterElementHtml ();
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public function testGetElementHtml()
63
63
$ this ->_model ->setValue ('Note Text ' );
64
64
$ html = $ this ->_model ->getElementHtml ();
65
65
$ this ->assertEquals (
66
- "note_before<div id= \"note_id \" class= \"control-value \"></div>note_after " ,
66
+ "note_before<div id= \"note_id \" class= \"control-value admin__field-value \"></div>note_after " ,
67
67
$ html
68
68
);
69
69
}
You can’t perform that action at this time.
0 commit comments