ciyidogan commited on
Commit
20a83de
·
verified ·
1 Parent(s): 1dfc709

Update flare-ui/src/app/dialogs/intent-edit-dialog/intent-edit-dialog.component.html

Browse files
flare-ui/src/app/dialogs/intent-edit-dialog/intent-edit-dialog.component.html CHANGED
@@ -25,14 +25,6 @@
25
  <mat-error *ngIf="form.get('caption')?.hasError('required')">Caption is required</mat-error>
26
  </mat-form-field>
27
 
28
- <mat-form-field appearance="outline">
29
- <mat-label>Locale</mat-label>
30
- <mat-select formControlName="locale">
31
- <mat-option value="tr-TR">Turkish (tr-TR)</mat-option>
32
- <mat-option value="en-US">English (en-US)</mat-option>
33
- </mat-select>
34
- </mat-form-field>
35
-
36
  <mat-form-field appearance="outline" class="full-width">
37
  <mat-label>Detection Prompt*</mat-label>
38
  <textarea matInput formControlName="detection_prompt" class="code-textarea"
@@ -153,11 +145,15 @@
153
  </mat-form-field>
154
 
155
  <mat-form-field appearance="outline">
156
- <mat-label>Display Name*</mat-label>
157
- <input matInput formControlName="caption"
158
- placeholder="e.g., Origin City">
159
- <mat-hint>Human-friendly name shown to users</mat-hint>
160
- <mat-error *ngIf="param.get('caption')?.hasError('required')">Display name is required</mat-error>
 
 
 
 
161
  </mat-form-field>
162
 
163
  <mat-form-field appearance="outline">
 
25
  <mat-error *ngIf="form.get('caption')?.hasError('required')">Caption is required</mat-error>
26
  </mat-form-field>
27
 
 
 
 
 
 
 
 
 
28
  <mat-form-field appearance="outline" class="full-width">
29
  <mat-label>Detection Prompt*</mat-label>
30
  <textarea matInput formControlName="detection_prompt" class="code-textarea"
 
145
  </mat-form-field>
146
 
147
  <mat-form-field appearance="outline">
148
+ <mat-label>Display Name</mat-label>
149
+ <input matInput [value]="getCaptionDisplay(param.get('caption')?.value)"
150
+ readonly
151
+ (click)="openCaptionDialog(i)"
152
+ placeholder="Click to edit captions">
153
+ <button mat-icon-button matSuffix (click)="openCaptionDialog(i)" type="button">
154
+ <mat-icon>edit</mat-icon>
155
+ </button>
156
+ <mat-hint>Multi-language captions</mat-hint>
157
  </mat-form-field>
158
 
159
  <mat-form-field appearance="outline">