File tree Expand file tree Collapse file tree 3 files changed +43
-16
lines changed
Cms/view/adminhtml/ui_component
Ui/view/base/web/templates/form/element
design/adminhtml/Magento/backend/web/css/source/components Expand file tree Collapse file tree 3 files changed +43
-16
lines changed Original file line number Diff line number Diff line change 83
83
</checkbox >
84
84
</formElements >
85
85
</field >
86
- <field name =" title" sortOrder =" 20" formElement = " input " >
86
+ <urlInput name =" title" sortOrder =" 20" >
87
87
<argument name =" data" xsi : type =" array" >
88
88
<item name =" config" xsi : type =" array" >
89
89
<item name =" source" xsi : type =" string" >page</item >
93
93
<validation >
94
94
<rule name =" required-entry" xsi : type =" boolean" >true</rule >
95
95
</validation >
96
+ <isDisplayAdditionalSettings >true</isDisplayAdditionalSettings >
97
+ <settingLabel translate =" true" >Label bla bla</settingLabel >
96
98
<dataType >text</dataType >
97
99
<label translate =" true" >Page Title</label >
98
100
<dataScope >title</dataScope >
101
+ <urlTypes class =" Magento\Ui\Model\UrlInput\LinksProvider" />
99
102
</settings >
100
- </field >
103
+ <!-- <formElements>-->
104
+ <!-- <select>-->
105
+ <!-- <settings>-->
106
+ <!-- <options>-->
107
+ <!-- <option name="url" xsi:type="string">Url</option>-->
108
+ <!-- </options>-->
109
+ <!-- <caption translate="true">-- Please Select --</caption>-->
110
+ <!-- </settings>-->
111
+ <!-- </select>-->
112
+ <!-- </formElements>-->
113
+ </urlInput >
101
114
</fieldset >
102
115
<fieldset name =" content" sortOrder =" 10" >
103
116
<settings >
Original file line number Diff line number Diff line change 5
5
*/
6
6
-->
7
7
<!--render select with link types-->
8
- < div class ="admin__field "
8
+ < div class ="admin__field url-input-container "
9
9
visible ="visible "
10
10
attr ="'data-index': index ">
11
11
< label class ="admin__field-label " if ="$data.label " visible ="$data.labelVisible " attr ="for: uid ">
12
12
< span translate ="label " attr ="'data-config-scope': $data.scopeLabel "/>
13
13
</ label >
14
14
< div class ="admin__field-control url-input-element "
15
15
css ="'_with-tooltip': $data.tooltip, '_with-reset': $data.showFallbackReset && $data.isDifferedFromDefault ">
16
- <!--render link types select-->
17
- < render args ="typeSelectorTemplate "/>
18
16
19
- <!--display field to insert link value based on link type-->
20
- < div ko-scope ="getLinkedElementName() " class ="url-input-element-linked-element ">
21
- < render />
22
- < label class ="admin__field-error " if ="error " attr ="for: uid " text ="error "/>
17
+ < div >
18
+ <!--render link types select-->
19
+ < render args ="typeSelectorTemplate "/>
20
+
21
+ <!--display field to insert link value based on link type-->
22
+ < div ko-scope ="getLinkedElementName() " class ="url-input-element-linked-element ">
23
+ < render />
24
+ < label class ="admin__field-error " if ="error " attr ="for: uid " text ="error "/>
25
+ </ div >
23
26
</ div >
24
27
25
28
<!--display container to specify url options(Example: open in new tab)-->
26
29
< render if ="isDisplayAdditionalSettings " args ="settingTemplate "/>
27
-
30
+ < div />
28
31
</ div >
29
32
</ div >
Original file line number Diff line number Diff line change 6
6
//
7
7
// Components -> Url Input
8
8
// _____________________________________________
9
+ .url-input-container .url-input-element {
10
+ & > div :after {
11
+ clear : both ;
12
+ }
9
13
10
- .url-input-element {
11
14
.url-input-select {
12
- display : inline-block ;
15
+ float : left ;
16
+ margin-right : 20px ;
13
17
}
14
18
15
- .url-input-element-linked-element {
16
- display : inline-block ;
17
- + label {
18
- display : inline-block ;
19
+ .url-input-setting {
20
+ clear : both ;
21
+ display : block ;
22
+ & :before {
23
+ content : " " ;
24
+ clear : both ;
19
25
}
20
26
}
27
+
28
+ .url-input-element-linked-element {
29
+ float : left ;
30
+ }
21
31
}
22
32
33
+
You can’t perform that action at this time.
0 commit comments