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 name=
"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 name=
"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 name=
"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 name=
"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 name=
"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 name=
"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"
376 <ng-container ngProjectAs=
"description">
377 <span i18n
>⚠️ This functionality requires a lot of attention and extra moderation.
</span>
380 <ng-container ngProjectAs=
"extra">
381 <div [ngClass]=
"{ 'disabled-checkbox-extra': !isAutoFollowIndexEnabled() }">
382 <label i18n
for=
"followingsInstanceAutoFollowIndexUrl">Index URL
</label>
384 type=
"text" id=
"followingsInstanceAutoFollowIndexUrl"
385 formControlName=
"indexUrl" [ngClass]=
"{ 'input-error': formErrors['followings.instance.autoFollowIndex.indexUrl'] }"
387 <div *
ngIf=
"formErrors.followings.instance.autoFollowIndex.indexUrl" class=
"form-error">{{ formErrors.followings.instance.autoFollowIndex.indexUrl }}
</div>
390 </my-peertube-checkbox>
398 <div i18n
class=
"inner-form-title">Administrator
</div>
400 <div class=
"form-group" formGroupName=
"admin">
401 <label i18n
for=
"adminEmail">Admin email
</label>
403 type=
"text" id=
"adminEmail"
404 formControlName=
"email" [ngClass]=
"{ 'input-error': formErrors['admin.email'] }"
406 <div *
ngIf=
"formErrors.admin.email" class=
"form-error">{{ formErrors.admin.email }}
</div>
409 <div class=
"form-group" formGroupName=
"contactForm">
410 <my-peertube-checkbox
411 inputName=
"enableContactForm" formControlName=
"enabled"
412 i18n-labelText
labelText=
"Enable contact form"
413 ></my-peertube-checkbox>
419 <ngb-tab i18n-title
title=
"Services">
420 <ng-template ngbTabContent
>
421 <div i18n
class=
"inner-form-title">Twitter
</div>
423 <ng-container formGroupName=
"services">
424 <ng-container formGroupName=
"twitter">
426 <div class=
"form-group">
427 <label i18n
for=
"signupLimit">Your Twitter username
</label>
430 <ng-template ptTemplate=
"customHtml">
431 <ng-container i18n
>Indicates the Twitter account for the website or platform on which the content was published.
</ng-container>
436 type=
"text" id=
"servicesTwitterUsername"
437 formControlName=
"username" [ngClass]=
"{ 'input-error': formErrors['services.twitter.username'] }"
439 <div *
ngIf=
"formErrors.services.twitter.username" class=
"form-error">{{ formErrors.services.twitter.username }}
</div>
442 <div class=
"form-group">
443 <my-peertube-checkbox inputName=
"servicesTwitterWhitelisted" formControlName=
"whitelisted">
444 <ng-template ptTemplate=
"label">
445 <ng-container i18n
>Instance whitelisted by Twitter
</ng-container>
448 <ng-template ptTemplate=
"help">
450 If your instance is whitelisted by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.
<br />
451 If the instance is not whitelisted, we use an image link card that will redirect on your PeerTube instance.
<br /><br />
452 Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/videos/watch/blabla) on
453 <a target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'
>https://cards-dev.twitter.com/validator
</a>
454 to see if you instance is whitelisted.
457 </my-peertube-checkbox>
466 <ngb-tab i18n-title
title=
"Advanced configuration">
467 <ng-template ngbTabContent
>
469 <div i18n
class=
"inner-form-title">Transcoding
</div>
471 <ng-container formGroupName=
"transcoding">
472 <div class=
"form-group">
473 <my-peertube-checkbox inputName=
"transcodingEnabled" formControlName=
"enabled">
474 <ng-template ptTemplate=
"label">
475 <ng-container i18n
>Transcoding enabled
</ng-container>
478 <ng-template ptTemplate=
"help">
479 <ng-container i18n
>If you disable transcoding, many videos from your users will not work!
</ng-container>
481 </my-peertube-checkbox>
484 <ng-container *
ngIf=
"isTranscodingEnabled()">
486 <div class=
"form-group">
487 <my-peertube-checkbox
488 inputName=
"transcodingAllowAdditionalExtensions" formControlName=
"allowAdditionalExtensions"
489 i18n-labelText
labelText=
"Allow additional extensions"
491 <ng-template ptTemplate=
"help">
492 <ng-container i18n
>Allow your users to upload .mkv, .mov, .avi and .flv videos
</ng-container>
494 </my-peertube-checkbox>
497 <div class=
"form-group">
498 <my-peertube-checkbox
499 inputName=
"transcodingAllowAudioFiles" formControlName=
"allowAudioFiles"
500 i18n-labelText
labelText=
"Allow audio files upload"
502 <ng-template ptTemplate=
"help">
503 <ng-container i18n
>Allow your users to upload audio files that will be merged with the preview file on upload
</ng-container>
505 </my-peertube-checkbox>
508 <ng-container formGroupName=
"webtorrent">
509 <div class=
"form-group" >
510 <my-peertube-checkbox
511 inputName=
"transcodingWebTorrentEnabled" formControlName=
"enabled"
512 i18n-labelText
labelText=
"WebTorrent support enabled"
514 <ng-template ptTemplate=
"help">
516 <strong>Experimental, we suggest you to not disable webtorrent support for now
</strong>
518 <p>If you also enabled HLS support, it will multiply videos storage by
2</p>
522 <strong>If disabled, breaks federation with PeerTube instances <
2.1</strong>
525 </my-peertube-checkbox>
529 <ng-container formGroupName=
"hls">
530 <div class=
"form-group" >
531 <my-peertube-checkbox
532 inputName=
"transcodingHlsEnabled" formControlName=
"enabled"
533 i18n-labelText
labelText=
"HLS support enabled"
535 <ng-template ptTemplate=
"help">
537 <strong>Requires ffmpeg
>=
4.1</strong>
539 <p>Generate HLS playlists and fragmented MP4 files resulting in a better playback than with the current default player:
</p>
541 <li>Resolution change is smoother
</li>
542 <li>Faster playback in particular with long videos
</li>
543 <li>More stable playback (less bugs/infinite loading)
</li>
546 <p>If you also enabled WebTorrent support, it will multiply videos storage by
2</p>
549 </my-peertube-checkbox>
553 <div class=
"form-group">
554 <label i18n
for=
"transcodingThreads">Transcoding threads
</label>
555 <div class=
"peertube-select-container">
556 <select id=
"transcodingThreads" formControlName=
"threads">
557 <option *
ngFor=
"let transcodingThreadOption of transcodingThreadOptions" [value]=
"transcodingThreadOption.value">
558 {{ transcodingThreadOption.label }}
562 <div *
ngIf=
"formErrors.transcoding.threads" class=
"form-error">{{ formErrors.transcoding.threads }}
</div>
565 <ng-container formGroupName=
"resolutions">
566 <div class=
"form-group" *
ngFor=
"let resolution of resolutions">
567 <my-peertube-checkbox
568 [inputName]=
"getResolutionKey(resolution.id)" [formControlName]=
"resolution.id"
569 i18n-labelText
labelText=
"Resolution {{resolution.label}} enabled"
571 <ng-template *
ngIf=
"resolution.description" ptTemplate=
"help">
572 <div [innerHTML]=
"resolution.description"></div>
574 </my-peertube-checkbox>
581 <div class=
"inner-form-title">
582 <ng-container i18n
>Cache
</ng-container>
585 <ng-template ptTemplate=
"customHtml">
586 <ng-container i18n
>Some files are not federated (previews, captions). We fetch them directly from the origin instance and cache them.
</ng-container>
591 <ng-container formGroupName=
"cache">
592 <div class=
"form-group" formGroupName=
"previews">
593 <label i18n
for=
"cachePreviewsSize">Previews cache size
</label>
595 type=
"text" id=
"cachePreviewsSize"
596 formControlName=
"size" [ngClass]=
"{ 'input-error': formErrors['cache.previews.size'] }"
598 <div *
ngIf=
"formErrors.cache.previews.size" class=
"form-error">{{ formErrors.cache.previews.size }}
</div>
601 <div class=
"form-group" formGroupName=
"captions">
602 <label i18n
for=
"cacheCaptionsSize">Video captions cache size
</label>
604 type=
"text" id=
"cacheCaptionsSize"
605 formControlName=
"size" [ngClass]=
"{ 'input-error': formErrors['cache.captions.size'] }"
607 <div *
ngIf=
"formErrors.cache.captions.size" class=
"form-error">{{ formErrors.cache.captions.size }}
</div>
611 <div i18n
class=
"inner-form-title">Customizations
</div>
613 <ng-container formGroupName=
"instance">
614 <ng-container formGroupName=
"customizations">
615 <div class=
"form-group">
616 <label i18n
for=
"customizationJavascript">JavaScript
</label>
618 <ng-template ptTemplate=
"customHtml">
620 Write JavaScript code directly.
<br />Example:
<pre>console.log('my instance is amazing');
</pre>
626 id=
"customizationJavascript" formControlName=
"javascript"
627 [ngClass]=
"{ 'input-error': formErrors['instance.customizations.javascript'] }"
630 <div *
ngIf=
"formErrors.instance.customizations.javascript" class=
"form-error">{{ formErrors.instance.customizations.javascript }}
</div>
633 <div class=
"form-group">
634 <label for=
"customizationCSS">CSS
</label>
637 <ng-template ptTemplate=
"customHtml">
639 Write CSS code directly. Example:
<br /><br />
641 #custom-css {{ '{' }}
646 Prepend with
<em>#custom-css
</em> to override styles. Example:
<br /><br />
648 #custom-css .logged-in-email {{ '{' }}
657 id=
"customizationCSS" formControlName=
"css"
658 [ngClass]=
"{ 'input-error': formErrors['instance.customizations.css'] }"
660 <div *
ngIf=
"formErrors.instance.customizations.css" class=
"form-error">{{ formErrors.instance.customizations.css }}
</div>
669 <input (click)=
"formValidated()" type=
"submit" i18n-value
value=
"Update configuration" [disabled]=
"!form.valid">
670 <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>