@@ -51,11 +51,7 @@ export class BrandForm extends ModelForm<Brand, string> {
51
51
}
52
52
53
53
renderForm ( ) : TemplateResult {
54
- return html ` < ak-form-element-horizontal
55
- label =${ msg ( "Domain" ) }
56
- ?required =${ true }
57
- name="domain"
58
- >
54
+ return html ` < ak-form-element-horizontal label =${ msg ( "Domain" ) } required name ="domain ">
59
55
< input
60
56
type ="text "
61
57
value ="${ first ( this . instance ?. domain , window . location . host ) } "
@@ -90,14 +86,10 @@ export class BrandForm extends ModelForm<Brand, string> {
90
86
</ p >
91
87
</ ak-form-element-horizontal >
92
88
93
- < ak-form-group .expanded = ${ true } >
89
+ < ak-form-group >
94
90
< span slot ="header "> ${ msg ( "Branding settings" ) } </ span >
95
91
< div slot ="body " class ="pf-c-form ">
96
- < ak-form-element-horizontal
97
- label =${ msg ( "Title" ) }
98
- ?required =${ true }
99
- name="brandingTitle"
100
- >
92
+ < ak-form-element-horizontal label =${ msg ( "Title" ) } required name ="brandingTitle ">
101
93
< input
102
94
type ="text "
103
95
value ="${ first (
@@ -111,11 +103,7 @@ export class BrandForm extends ModelForm<Brand, string> {
111
103
${ msg ( "Branding shown in page title and several other places." ) }
112
104
</ p >
113
105
</ ak-form-element-horizontal >
114
- < ak-form-element-horizontal
115
- label =${ msg ( "Logo" ) }
116
- ?required =${ true }
117
- name="brandingLogo"
118
- >
106
+ < ak-form-element-horizontal label =${ msg ( "Logo" ) } required name ="brandingLogo ">
119
107
< input
120
108
type ="text "
121
109
value ="${ first ( this . instance ?. brandingLogo , DefaultBrand . brandingLogo ) } "
@@ -130,7 +118,7 @@ export class BrandForm extends ModelForm<Brand, string> {
130
118
</ ak-form-element-horizontal >
131
119
< ak-form-element-horizontal
132
120
label =${ msg ( "Favicon" ) }
133
- ? required= ${ true }
121
+ required
134
122
name ="brandingFavicon "
135
123
>
136
124
< input
@@ -148,6 +136,23 @@ export class BrandForm extends ModelForm<Brand, string> {
148
136
${ msg ( "Icon shown in the browser tab." ) }
149
137
</ p >
150
138
</ ak-form-element-horizontal >
139
+ < ak-form-element-horizontal
140
+ label =${ msg ( "Custom CSS" ) }
141
+ required
142
+ name ="brandingCustomCss "
143
+ >
144
+ < ak-codemirror
145
+ mode =${ CodeMirrorMode . CSS }
146
+ value ="${ first (
147
+ this . instance ?. brandingCustomCss ,
148
+ DefaultBrand . brandingCustomCss ,
149
+ ) } "
150
+ >
151
+ </ ak-codemirror >
152
+ < p class ="pf-c-form__helper-text ">
153
+ ${ msg ( "Custom CSS to apply to pages when this brand is active." ) }
154
+ </ p >
155
+ </ ak-form-element-horizontal >
151
156
</ div >
152
157
</ ak-form-group >
153
158
0 commit comments