1 <form role=
"form" [formGroup]=
"form">
3 <ngb-tabset class=
"root-tabset bootstrap">
5 <ngb-tab i18n-title
title=
"Instance information">
6 <ng-template ngbTabContent
>
8 <ng-container formGroupName=
"instance">
10 <div i18n
class=
"inner-form-title">Instance
</div>
12 <div class=
"form-group">
13 <label i18n
for=
"instanceName">Name
</label>
15 type=
"text" id=
"instanceName"
16 formControlName=
"name" [ngClass]=
"{ 'input-error': formErrors.instance.name }"
18 <div *
ngIf=
"formErrors.instance.name" class=
"form-error">{{ formErrors.instance.name }}
</div>
21 <div class=
"form-group">
22 <label i18n
for=
"instanceShortDescription">Short description
</label>
24 id=
"instanceShortDescription" formControlName=
"shortDescription" class=
"small"
25 [ngClass]=
"{ 'input-error': formErrors['instance.shortDescription'] }"
27 <div *
ngIf=
"formErrors.instance.shortDescription" class=
"form-error">{{ formErrors.instance.shortDescription }}
</div>
30 <div class=
"form-group">
31 <label i18n
for=
"instanceDescription">Description
</label><my-help helpType=
"markdownText"></my-help>
33 id=
"instanceDescription" formControlName=
"description" textareaWidth=
"500px" [previewColumn]=
"true"
34 [classes]=
"{ 'input-error': formErrors['instance.description'] }"
35 ></my-markdown-textarea>
36 <div *
ngIf=
"formErrors.instance.description" class=
"form-error">{{ formErrors.instance.description }}
</div>
39 <div class=
"form-group">
40 <label i18n
for=
"instanceCategories">Main instance categories
</label>
44 inputId=
"instanceCategories" [options]=
"categoryItems" formControlName=
"categories" showToggleAll=
"false"
45 [defaultLabel]=
"getDefaultCategoryLabel()" [selectedItemsLabel]=
"getSelectedCategoryLabel()"
46 emptyFilterMessage=
"No results found" i18n-emptyFilterMessage
51 <div class=
"form-group">
52 <label i18n
for=
"instanceLanguages">Main languages you/your moderators speak
</label>
56 inputId=
"instanceLanguages" [options]=
"languageItems" formControlName=
"languages" showToggleAll=
"false"
57 [defaultLabel]=
"getDefaultLanguageLabel()" [selectedItemsLabel]=
"getSelectedLanguageLabel()"
58 emptyFilterMessage=
"No results found" i18n-emptyFilterMessage
63 <div i18n
class=
"inner-form-title">Moderation & NSFW
</div>
65 <div class=
"form-group">
66 <my-peertube-checkbox inputName=
"instanceIsNSFW" formControlName=
"isNSFW">
67 <ng-template ptTemplate=
"label">
68 <ng-container i18n
>This instance is dedicated to sensitive or NSFW content
</ng-container>
71 <ng-template ptTemplate=
"help">
73 Enabling it will allow other administrators to know that you are mainly federating sensitive content.
<br /><br />
74 Moreover, the NSFW checkbox on video upload will be automatically checked by default.
77 </my-peertube-checkbox>
80 <div class=
"form-group">
81 <label i18n
for=
"instanceDefaultNSFWPolicy">Policy on videos containing sensitive content
</label>
84 <ng-template ptTemplate=
"customHtml">
86 With
<strong>Do not list
</strong> or
<strong>Blur thumbnails
</strong>, a confirmation will be requested to watch the video.
91 <div class=
"peertube-select-container">
92 <select id=
"instanceDefaultNSFWPolicy" formControlName=
"defaultNSFWPolicy">
93 <option i18n
value=
"do_not_list">Do not list
</option>
94 <option i18n
value=
"blur">Blur thumbnails
</option>
95 <option i18n
value=
"display">Display
</option>
98 <div *
ngIf=
"formErrors.instance.defaultNSFWPolicy" class=
"form-error">{{ formErrors.instance.defaultNSFWPolicy }}
</div>
101 <div class=
"form-group">
102 <label i18n
for=
"instanceTerms">Terms
</label><my-help helpType=
"markdownText"></my-help>
103 <my-markdown-textarea
104 id=
"instanceTerms" formControlName=
"terms" textareaWidth=
"500px" [previewColumn]=
"true"
105 [ngClass]=
"{ 'input-error': formErrors['instance.terms'] }"
106 ></my-markdown-textarea>
107 <div *
ngIf=
"formErrors.instance.terms" class=
"form-error">{{ formErrors.instance.terms }}
</div>
110 <div class=
"form-group">
111 <label i18n
for=
"instanceCodeOfConduct">Code of conduct
</label><my-help helpType=
"markdownText"></my-help>
112 <my-markdown-textarea
113 id=
"instanceCodeOfConduct" formControlName=
"codeOfConduct" textareaWidth=
"500px" [previewColumn]=
"true"
114 [ngClass]=
"{ 'input-error': formErrors['instance.codeOfConduct'] }"
115 ></my-markdown-textarea>
116 <div *
ngIf=
"formErrors.instance.codeOfConduct" class=
"form-error">{{ formErrors.instance.codeOfConduct }}
</div>
119 <div class=
"form-group">
120 <label i18n
for=
"instanceModerationInformation">Moderation information
</label><my-help helpType=
"markdownText"></my-help>
121 <div class=
"label-small-info">Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
</div>
123 <my-markdown-textarea
124 id=
"instanceModerationInformation" formControlName=
"moderationInformation" textareaWidth=
"500px" [previewColumn]=
"true"
125 [ngClass]=
"{ 'input-error': formErrors['instance.moderationInformation'] }"
126 ></my-markdown-textarea>
127 <div *
ngIf=
"formErrors.instance.moderationInformation" class=
"form-error">{{ formErrors.instance.moderationInformation }}
</div>
130 <div i18n
class=
"inner-form-title">You and your instance
</div>
132 <div class=
"form-group">
133 <label i18n
for=
"instanceAdministrator">Who is behind the instance?
</label>
134 <div class=
"label-small-info">A single person? A non-profit? A company?
</div>
136 <my-markdown-textarea
137 id=
"instanceAdministrator" formControlName=
"administrator" textareaWidth=
"500px" textareaHeight=
"75px" [previewColumn]=
"true"
138 [classes]=
"{ 'input-error': formErrors['instance.administrator'] }"
139 ></my-markdown-textarea>
141 <div *
ngIf=
"formErrors.instance.administrator" class=
"form-error">{{ formErrors.instance.administrator }}
</div>
144 <div class=
"form-group">
145 <label i18n
for=
"instanceCreationReason">Why did you create this instance?
</label>
146 <div class=
"label-small-info">To share your personal videos? To open registrations and allow people to upload what they want?
</div>
149 id=
"instanceCreationReason" formControlName=
"creationReason" class=
"small"
150 [ngClass]=
"{ 'input-error': formErrors['instance.creationReason'] }"
152 <div *
ngIf=
"formErrors.instance.creationReason" class=
"form-error">{{ formErrors.instance.creationReason }}
</div>
155 <div class=
"form-group">
156 <label i18n
for=
"instanceMaintenanceLifetime">How long do you plan to maintain this instance?
</label>
157 <div class=
"label-small-info">It's important to know for users who want to register on your instance
</div>
160 id=
"instanceMaintenanceLifetime" formControlName=
"maintenanceLifetime" class=
"small"
161 [ngClass]=
"{ 'input-error': formErrors['instance.maintenanceLifetime'] }"
163 <div *
ngIf=
"formErrors.instance.maintenanceLifetime" class=
"form-error">{{ formErrors.instance.maintenanceLifetime }}
</div>
166 <div class=
"form-group">
167 <label i18n
for=
"instanceBusinessModel">How will you finance the PeerTube server?
</label>
168 <div class=
"label-small-info">With your own funds? With users donations? Advertising?
</div>
171 id=
"instanceBusinessModel" formControlName=
"businessModel" class=
"small"
172 [ngClass]=
"{ 'input-error': formErrors['instance.businessModel'] }"
174 <div *
ngIf=
"formErrors.instance.businessModel" class=
"form-error">{{ formErrors.instance.businessModel }}
</div>
177 <div i18n
class=
"inner-form-title">Other information
</div>
179 <div class=
"form-group">
180 <label i18n
for=
"instanceHardwareInformation">What server/hardware does the instance run on?
</label>
181 <div class=
"label-small-info">2vCore
2GB RAM/or directly the link to the server you rent etc
</div>
183 <my-markdown-textarea
184 id=
"instanceHardwareInformation" formControlName=
"hardwareInformation" textareaWidth=
"500px" textareaHeight=
"75px" [previewColumn]=
"true"
185 [classes]=
"{ 'input-error': formErrors['instance.hardwareInformation'] }"
186 ></my-markdown-textarea>
188 <div *
ngIf=
"formErrors.instance.hardwareInformation" class=
"form-error">{{ formErrors.instance.hardwareInformation }}
</div>
195 <ngb-tab i18n-title
title=
"Basic configuration">
196 <ng-template ngbTabContent
>
198 <div i18n
class=
"inner-form-title">Theme & Default route
</div>
200 <ng-container formGroupName=
"theme">
201 <div class=
"form-group">
202 <label i18n
for=
"themeDefault">Global theme
</label>
204 <div class=
"peertube-select-container">
205 <select formControlName=
"default" id=
"themeDefault">
206 <option i18n
value=
"default">default
</option>
208 <option *
ngFor=
"let theme of availableThemes" [value]=
"theme">{{ theme }}
</option>
215 <div class=
"form-group" formGroupName=
"instance">
216 <label i18n
for=
"instanceDefaultClientRoute">Default client route
</label>
217 <div class=
"peertube-select-container">
218 <select id=
"instanceDefaultClientRoute" formControlName=
"defaultClientRoute">
219 <option i18n
value=
"/videos/overview">Discover videos
</option>
220 <option i18n
value=
"/videos/trending">Trending videos
</option>
221 <option i18n
value=
"/videos/most-liked">Most liked videos
</option>
222 <option i18n
value=
"/videos/recently-added">Recently added videos
</option>
223 <option i18n
value=
"/videos/local">Local videos
</option>
226 <div *
ngIf=
"formErrors.instance.defaultClientRoute" class=
"form-error">{{ formErrors.instance.defaultClientRoute }}
</div>
229 <div i18n
class=
"inner-form-title">Signup
</div>
231 <ng-container formGroupName=
"signup">
232 <div class=
"form-group">
233 <my-peertube-checkbox
234 inputName=
"signupEnabled" formControlName=
"enabled"
235 i18n-labelText
labelText=
"Signup enabled"
237 <ng-container ngProjectAs=
"extra">
238 <my-peertube-checkbox [ngClass]=
"{ 'disabled-checkbox-extra': !isSignupEnabled() }"
239 inputName=
"signupRequiresEmailVerification" formControlName=
"requiresEmailVerification"
240 i18n-labelText
labelText=
"Signup requires email verification"
241 ></my-peertube-checkbox>
243 <div [ngClass]=
"{ 'disabled-checkbox-extra': !isSignupEnabled() }" class=
"mt-3">
244 <label i18n
for=
"signupLimit">Signup limit
</label>
246 type=
"text" id=
"signupLimit"
247 formControlName=
"limit" [ngClass]=
"{ 'input-error': formErrors['signup.limit'] }"
249 <div *
ngIf=
"formErrors.signup.limit" class=
"form-error">{{ formErrors.signup.limit }}
</div>
252 </my-peertube-checkbox>
257 <div i18n
class=
"inner-form-title">Users
</div>
259 <ng-container formGroupName=
"user">
260 <div class=
"form-group">
261 <label i18n
for=
"userVideoQuota">Default video quota per user
</label>
262 <div class=
"peertube-select-container">
263 <select id=
"userVideoQuota" formControlName=
"videoQuota">
264 <option *
ngFor=
"let videoQuotaOption of videoQuotaOptions" [value]=
"videoQuotaOption.value">
265 {{ videoQuotaOption.label }}
269 <div *
ngIf=
"formErrors.user.videoQuota" class=
"form-error">{{ formErrors.user.videoQuota }}
</div>
272 <div class=
"form-group">
273 <label i18n
for=
"userVideoQuotaDaily">Default daily upload limit per user
</label>
274 <div class=
"peertube-select-container">
275 <select id=
"userVideoQuotaDaily" formControlName=
"videoQuotaDaily">
276 <option *
ngFor=
"let videoQuotaDailyOption of videoQuotaDailyOptions" [value]=
"videoQuotaDailyOption.value">
277 {{ videoQuotaDailyOption.label }}
281 <div *
ngIf=
"formErrors.user.videoQuotaDaily" class=
"form-error">{{ formErrors.user.videoQuotaDaily }}
</div>
286 <div i18n
class=
"inner-form-title">Import
</div>
288 <ng-container formGroupName=
"import">
289 <ng-container formGroupName=
"videos">
291 <div class=
"form-group" formGroupName=
"http">
292 <my-peertube-checkbox
293 inputName=
"importVideosHttpEnabled" formControlName=
"enabled"
294 i18n-labelText
labelText=
"Allow import with HTTP URL (i.e. YouTube)"
295 ></my-peertube-checkbox>
298 <div class=
"form-group" formGroupName=
"torrent">
299 <my-peertube-checkbox
300 inputName=
"importVideosTorrentEnabled" formControlName=
"enabled"
301 i18n-labelText
labelText=
"Allow import with a torrent file or a magnet URI"
302 ></my-peertube-checkbox>
309 <div i18n
class=
"inner-form-title">Auto-blacklist
</div>
311 <ng-container formGroupName=
"autoBlacklist">
312 <ng-container formGroupName=
"videos">
313 <ng-container formGroupName=
"ofUsers">
315 <div class=
"form-group">
316 <my-peertube-checkbox
317 inputName=
"autoBlacklistVideosOfUsersEnabled" formControlName=
"enabled"
318 i18n-labelText
labelText=
"Blacklist new videos automatically"
320 <ng-container ngProjectAs=
"description">
321 <span i18n
>Videos of regular users will stay private until a moderator reviews them. Can be overriden per user.
</span>
323 </my-peertube-checkbox>
331 <div i18n
class=
"inner-form-title">Instance followers
</div>
333 <ng-container formGroupName=
"followers">
334 <ng-container formGroupName=
"instance">
336 <div class=
"form-group">
337 <my-peertube-checkbox
338 inputName=
"followersInstanceEnabled" formControlName=
"enabled"
339 i18n-labelText
labelText=
"Other instances can follow your instance"
340 ></my-peertube-checkbox>
343 <div class=
"form-group">
344 <my-peertube-checkbox
345 inputName=
"followersInstanceManualApproval" formControlName=
"manualApproval"
346 i18n-labelText
labelText=
"Manually approve new instance followers"
347 ></my-peertube-checkbox>
352 <div i18n
class=
"inner-form-title">Instance followings
</div>
354 <ng-container formGroupName=
"followings">
355 <ng-container formGroupName=
"instance">
357 <ng-container formGroupName=
"autoFollowBack">
358 <div class=
"form-group">
359 <my-peertube-checkbox
360 inputName=
"followingsInstanceAutoFollowBackEnabled" formControlName=
"enabled"
361 i18n-labelText
labelText=
"Automatically follow other instances that follow you"
363 <ng-container ngProjectAs=
"description">
364 <span i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</span>
366 </my-peertube-checkbox>
370 <ng-container formGroupName=
"autoFollowIndex">
371 <div class=
"form-group">
372 <my-peertube-checkbox
373 inputName=
"followingsInstanceAutoFollowIndexEnabled" formControlName=
"enabled"
374 i18n-labelText
labelText=
"Automatically follow instances of the public index"
375 [(ngModel)]=
"isAutoFollowIndexEnabled"
377 <ng-container ngProjectAs=
"description">
378 <span i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</span>
381 <ng-container ngProjectAs=
"extra">
382 <div [ngClass]=
"{ 'disabled-checkbox-extra': !isAutoFollowIndexEnabled }">
383 <label i18n
for=
"followingsInstanceAutoFollowIndexUrl">Index URL
</label>
385 type=
"text" id=
"followingsInstanceAutoFollowIndexUrl"
386 formControlName=
"indexUrl" [ngClass]=
"{ 'input-error': formErrors['followings.instance.autoFollowIndex.indexUrl'] }"
388 <div *
ngIf=
"formErrors.followings.instance.autoFollowIndex.indexUrl" class=
"form-error">{{ formErrors.followings.instance.autoFollowIndex.indexUrl }}
</div>
391 </my-peertube-checkbox>
399 <div i18n
class=
"inner-form-title">Administrator
</div>
401 <div class=
"form-group" formGroupName=
"admin">
402 <label i18n
for=
"adminEmail">Admin email
</label>
404 type=
"text" id=
"adminEmail"
405 formControlName=
"email" [ngClass]=
"{ 'input-error': formErrors['admin.email'] }"
407 <div *
ngIf=
"formErrors.admin.email" class=
"form-error">{{ formErrors.admin.email }}
</div>
410 <div class=
"form-group" formGroupName=
"contactForm">
411 <my-peertube-checkbox
412 inputName=
"enableContactForm" formControlName=
"enabled"
413 i18n-labelText
labelText=
"Enable contact form"
414 ></my-peertube-checkbox>
420 <ngb-tab i18n-title
title=
"Services">
421 <ng-template ngbTabContent
>
422 <div i18n
class=
"inner-form-title">Twitter
</div>
424 <ng-container formGroupName=
"services">
425 <ng-container formGroupName=
"twitter">
427 <div class=
"form-group">
428 <label i18n
for=
"signupLimit">Your Twitter username
</label>
431 <ng-template ptTemplate=
"customHtml">
432 <ng-container i18n
>Indicates the Twitter account for the website or platform on which the content was published.
</ng-container>
437 type=
"text" id=
"servicesTwitterUsername"
438 formControlName=
"username" [ngClass]=
"{ 'input-error': formErrors['services.twitter.username'] }"
440 <div *
ngIf=
"formErrors.services.twitter.username" class=
"form-error">{{ formErrors.services.twitter.username }}
</div>
443 <div class=
"form-group">
444 <my-peertube-checkbox inputName=
"servicesTwitterWhitelisted" formControlName=
"whitelisted">
445 <ng-template ptTemplate=
"label">
446 <ng-container i18n
>Instance whitelisted by Twitter
</ng-container>
449 <ng-template ptTemplate=
"help">
451 If your instance is whitelisted by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.
<br />
452 If the instance is not whitelisted, we use an image link card that will redirect on your PeerTube instance.
<br /><br />
453 Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/videos/watch/blabla) on
454 <a target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'
>https://cards-dev.twitter.com/validator
</a>
455 to see if you instance is whitelisted.
458 </my-peertube-checkbox>
467 <ngb-tab i18n-title
title=
"Advanced configuration">
468 <ng-template ngbTabContent
>
470 <div i18n
class=
"inner-form-title">Transcoding
</div>
472 <ng-container formGroupName=
"transcoding">
473 <div class=
"form-group">
474 <my-peertube-checkbox inputName=
"transcodingEnabled" formControlName=
"enabled">
475 <ng-template ptTemplate=
"label">
476 <ng-container i18n
>Transcoding enabled
</ng-container>
479 <ng-template ptTemplate=
"help">
480 <ng-container i18n
>If you disable transcoding, many videos from your users will not work!
</ng-container>
482 </my-peertube-checkbox>
485 <ng-container *
ngIf=
"isTranscodingEnabled()">
487 <div class=
"form-group">
488 <my-peertube-checkbox
489 inputName=
"transcodingAllowAdditionalExtensions" formControlName=
"allowAdditionalExtensions"
490 i18n-labelText
labelText=
"Allow additional extensions"
492 <ng-template ptTemplate=
"help">
493 <ng-container i18n
>Allow your users to upload .mkv, .mov, .avi and .flv videos
</ng-container>
495 </my-peertube-checkbox>
498 <div class=
"form-group">
499 <my-peertube-checkbox
500 inputName=
"transcodingAllowAudioFiles" formControlName=
"allowAudioFiles"
501 i18n-labelText
labelText=
"Allow audio files upload"
503 <ng-template ptTemplate=
"help">
504 <ng-container i18n
>Allow your users to upload audio files that will be merged with the preview file on upload
</ng-container>
506 </my-peertube-checkbox>
509 <ng-container formGroupName=
"webtorrent">
510 <div class=
"form-group" >
511 <my-peertube-checkbox
512 inputName=
"transcodingWebTorrentEnabled" formControlName=
"enabled"
513 i18n-labelText
labelText=
"WebTorrent support enabled"
515 <ng-template ptTemplate=
"help">
517 <strong>Experimental, we suggest you to not disable webtorrent support for now
</strong>
519 <p>If you also enabled HLS support, it will multiply videos storage by
2</p>
523 <strong>If disabled, breaks federation with PeerTube instances <
2.1</strong>
526 </my-peertube-checkbox>
530 <ng-container formGroupName=
"hls">
531 <div class=
"form-group" >
532 <my-peertube-checkbox
533 inputName=
"transcodingHlsEnabled" formControlName=
"enabled"
534 i18n-labelText
labelText=
"HLS support enabled"
536 <ng-template ptTemplate=
"help">
538 <strong>Requires ffmpeg
>=
4.1</strong>
540 <p>Generate HLS playlists and fragmented MP4 files resulting in a better playback than with the current default player:
</p>
542 <li>Resolution change is smoother
</li>
543 <li>Faster playback in particular with long videos
</li>
544 <li>More stable playback (less bugs/infinite loading)
</li>
547 <p>If you also enabled WebTorrent support, it will multiply videos storage by
2</p>
550 </my-peertube-checkbox>
554 <div class=
"form-group">
555 <label i18n
for=
"transcodingThreads">Transcoding threads
</label>
556 <div class=
"peertube-select-container">
557 <select id=
"transcodingThreads" formControlName=
"threads">
558 <option *
ngFor=
"let transcodingThreadOption of transcodingThreadOptions" [value]=
"transcodingThreadOption.value">
559 {{ transcodingThreadOption.label }}
563 <div *
ngIf=
"formErrors.transcoding.threads" class=
"form-error">{{ formErrors.transcoding.threads }}
</div>
566 <ng-container formGroupName=
"resolutions">
567 <div class=
"form-group" *
ngFor=
"let resolution of resolutions">
568 <my-peertube-checkbox
569 [inputName]=
"getResolutionKey(resolution.id)" [formControlName]=
"resolution.id"
570 i18n-labelText
labelText=
"Resolution {{resolution.label}} enabled"
572 <ng-template *
ngIf=
"resolution.description" ptTemplate=
"help">
573 <div [innerHTML]=
"resolution.description"></div>
575 </my-peertube-checkbox>
582 <div class=
"inner-form-title">
583 <ng-container i18n
>Cache
</ng-container>
586 <ng-template ptTemplate=
"customHtml">
587 <ng-container i18n
>Some files are not federated (previews, captions). We fetch them directly from the origin instance and cache them.
</ng-container>
592 <ng-container formGroupName=
"cache">
593 <div class=
"form-group" formGroupName=
"previews">
594 <label i18n
for=
"cachePreviewsSize">Previews cache size
</label>
596 type=
"text" id=
"cachePreviewsSize"
597 formControlName=
"size" [ngClass]=
"{ 'input-error': formErrors['cache.previews.size'] }"
599 <div *
ngIf=
"formErrors.cache.previews.size" class=
"form-error">{{ formErrors.cache.previews.size }}
</div>
602 <div class=
"form-group" formGroupName=
"captions">
603 <label i18n
for=
"cacheCaptionsSize">Video captions cache size
</label>
605 type=
"text" id=
"cacheCaptionsSize"
606 formControlName=
"size" [ngClass]=
"{ 'input-error': formErrors['cache.captions.size'] }"
608 <div *
ngIf=
"formErrors.cache.captions.size" class=
"form-error">{{ formErrors.cache.captions.size }}
</div>
612 <div i18n
class=
"inner-form-title">Customizations
</div>
614 <ng-container formGroupName=
"instance">
615 <ng-container formGroupName=
"customizations">
616 <div class=
"form-group">
617 <label i18n
for=
"customizationJavascript">JavaScript
</label>
619 <ng-template ptTemplate=
"customHtml">
621 Write JavaScript code directly.
<br />Example:
<pre>console.log('my instance is amazing');
</pre>
627 id=
"customizationJavascript" formControlName=
"javascript"
628 [ngClass]=
"{ 'input-error': formErrors['instance.customizations.javascript'] }"
631 <div *
ngIf=
"formErrors.instance.customizations.javascript" class=
"form-error">{{ formErrors.instance.customizations.javascript }}
</div>
634 <div class=
"form-group">
635 <label for=
"customizationCSS">CSS
</label>
638 <ng-template ptTemplate=
"customHtml">
640 Write CSS code directly. Example:
<br /><br />
642 #custom-css {{ '{' }}
647 Prepend with
<em>#custom-css
</em> to override styles. Example:
<br /><br />
649 #custom-css .logged-in-email {{ '{' }}
658 id=
"customizationCSS" formControlName=
"css"
659 [ngClass]=
"{ 'input-error': formErrors['instance.customizations.css'] }"
661 <div *
ngIf=
"formErrors.instance.customizations.css" class=
"form-error">{{ formErrors.instance.customizations.css }}
</div>
670 <input (click)=
"formValidated()" type=
"submit" i18n-value
value=
"Update configuration" [disabled]=
"!form.valid">
671 <span class=
"form-error" i18n *
ngIf=
"!form.valid">It seems like the configuration is invalid. Please search for potential errors in the different tabs.
</span>