|
@@ -1,16 +1,15 @@
|
|
|
<div class="card" *ngIf="operation">
|
|
<div class="card" *ngIf="operation">
|
|
|
<div class="card-block">{{ interpolateDescription() }}</div>
|
|
<div class="card-block">{{ interpolateDescription() }}</div>
|
|
|
<div class="card-block" *ngIf="operation.args?.length">
|
|
<div class="card-block" *ngIf="operation.args?.length">
|
|
|
- <form clrForm [formGroup]="form" *ngIf="operation" class="operation-inputs">
|
|
|
|
|
- <clr-input-container *ngFor="let arg of operation.args">
|
|
|
|
|
|
|
+ <form [formGroup]="form" *ngIf="operation" class="operation-inputs">
|
|
|
|
|
+ <div *ngFor="let arg of operation.args" class="arg-row">
|
|
|
<label>{{ arg.name | titlecase }}</label>
|
|
<label>{{ arg.name | titlecase }}</label>
|
|
|
- <div *ngIf="arg.type === 'boolean'" clrInput class="checkbox">
|
|
|
|
|
|
|
+ <div *ngIf="arg.type === 'boolean'" class="checkbox">
|
|
|
<input type="checkbox" [formControlName]="arg.name" [id]="arg.name" />
|
|
<input type="checkbox" [formControlName]="arg.name" [id]="arg.name" />
|
|
|
<label [for]="arg.name"></label>
|
|
<label [for]="arg.name"></label>
|
|
|
</div>
|
|
</div>
|
|
|
<input
|
|
<input
|
|
|
*ngIf="arg.type === 'int'"
|
|
*ngIf="arg.type === 'int'"
|
|
|
- clrInput
|
|
|
|
|
[name]="arg.name"
|
|
[name]="arg.name"
|
|
|
type="number"
|
|
type="number"
|
|
|
step="1"
|
|
step="1"
|
|
@@ -18,31 +17,30 @@
|
|
|
/>
|
|
/>
|
|
|
<input
|
|
<input
|
|
|
*ngIf="arg.type === 'string'"
|
|
*ngIf="arg.type === 'string'"
|
|
|
- clrInput
|
|
|
|
|
[name]="arg.name"
|
|
[name]="arg.name"
|
|
|
type="text"
|
|
type="text"
|
|
|
[formControlName]="arg.name"
|
|
[formControlName]="arg.name"
|
|
|
/>
|
|
/>
|
|
|
<input
|
|
<input
|
|
|
*ngIf="arg.type === 'datetime'"
|
|
*ngIf="arg.type === 'datetime'"
|
|
|
- clrInput
|
|
|
|
|
[name]="arg.name"
|
|
[name]="arg.name"
|
|
|
type="date"
|
|
type="date"
|
|
|
[formControlName]="arg.name"
|
|
[formControlName]="arg.name"
|
|
|
/>
|
|
/>
|
|
|
<vdr-currency-input
|
|
<vdr-currency-input
|
|
|
*ngIf="arg.type === 'money'"
|
|
*ngIf="arg.type === 'money'"
|
|
|
- clrInput
|
|
|
|
|
[formControlName]="arg.name"
|
|
[formControlName]="arg.name"
|
|
|
></vdr-currency-input>
|
|
></vdr-currency-input>
|
|
|
<vdr-percentage-suffix-input
|
|
<vdr-percentage-suffix-input
|
|
|
*ngIf="arg.type === 'percentage'"
|
|
*ngIf="arg.type === 'percentage'"
|
|
|
[formControlName]="arg.name"
|
|
[formControlName]="arg.name"
|
|
|
- clrInput
|
|
|
|
|
></vdr-percentage-suffix-input>
|
|
></vdr-percentage-suffix-input>
|
|
|
-
|
|
|
|
|
- <clr-control-error>{{ 'error.this-field-is-required' | translate }}</clr-control-error>
|
|
|
|
|
- </clr-input-container>
|
|
|
|
|
|
|
+ <vdr-facet-value-selector
|
|
|
|
|
+ [facets]="facets"
|
|
|
|
|
+ [formControlName]="arg.name"
|
|
|
|
|
+ *ngIf="arg.type === 'facetValueIds' && facets"
|
|
|
|
|
+ ></vdr-facet-value-selector>
|
|
|
|
|
+ </div>
|
|
|
</form>
|
|
</form>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="card-footer">
|
|
<div class="card-footer">
|