Add UI help

This commit is contained in:
Kalutka Zhenya 2022-10-03 16:43:53 +03:00
parent e182930da5
commit ddd64c88fb
3 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,7 @@
<tb-markdown-editor [fxShow]="!markdownWidgetSettingsForm.get('useMarkdownTextFunction').value" <tb-markdown-editor [fxShow]="!markdownWidgetSettingsForm.get('useMarkdownTextFunction').value"
formControlName="markdownTextPattern" formControlName="markdownTextPattern"
label="{{ 'widgets.markdown.markdown-text-pattern' | translate }}" label="{{ 'widgets.markdown.markdown-text-pattern' | translate }}"
helpId="widget/editor/test"> helpId="widget/editor/widget_js_markdown_pattern">
</tb-markdown-editor> </tb-markdown-editor>
<tb-css formControlName="markdownCss" <tb-css formControlName="markdownCss"
label="{{ 'widgets.markdown.markdown-css' | translate }}"> label="{{ 'widgets.markdown.markdown-css' | translate }}">

View File

@ -22,6 +22,7 @@
<mat-form-field [fxShow]="!qrCodeWidgetSettingsForm.get('useQrCodeTextFunction').value"> <mat-form-field [fxShow]="!qrCodeWidgetSettingsForm.get('useQrCodeTextFunction').value">
<mat-label translate>widgets.qr-code.qr-code-text-pattern</mat-label> <mat-label translate>widgets.qr-code.qr-code-text-pattern</mat-label>
<input required matInput formControlName="qrCodeTextPattern"> <input required matInput formControlName="qrCodeTextPattern">
<mat-hint>{{ 'widgets.qr-code.qr-code-text-pattern-hint' | translate }}</mat-hint>
<mat-error *ngIf="qrCodeWidgetSettingsForm.get('qrCodeTextPattern').hasError('required')"> <mat-error *ngIf="qrCodeWidgetSettingsForm.get('qrCodeTextPattern').hasError('required')">
{{ 'widgets.qr-code.qr-code-text-pattern-required' | translate }} {{ 'widgets.qr-code.qr-code-text-pattern-required' | translate }}
</mat-error> </mat-error>

View File

@ -4190,6 +4190,7 @@
"qr-code": { "qr-code": {
"use-qr-code-text-function": "Use QR code text function", "use-qr-code-text-function": "Use QR code text function",
"qr-code-text-pattern": "QR code text pattern (for ex. '${entityName} | ${keyName} - some text.')", "qr-code-text-pattern": "QR code text pattern (for ex. '${entityName} | ${keyName} - some text.')",
"qr-code-text-pattern-hint": "QR code text pattern get keys only from the first entity in the entity alias.",
"qr-code-text-pattern-required": "QR code text pattern is required.", "qr-code-text-pattern-required": "QR code text pattern is required.",
"qr-code-text-function": "QR code text function" "qr-code-text-function": "QR code text function"
}, },