mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
* ACS-7768 Style inputs in create from template dialog * ACS-7768 Used globally configured outline appearance for inputs * ACS-7768 Style inputs for profile page * ACS-7768 Style inputs for library metadata form * ACS-7768 Style inputs for folder rules dialog * ACS-7768 Style inputs for manage rules page * ACS-7768 Set outline appearance for input, fix small issue * ACS-7768 Addressed comment
68 lines
2.9 KiB
HTML
68 lines
2.9 KiB
HTML
<form class="aca-rule-composite-condition__form" [formGroup]="form">
|
|
<div *ngIf="hasNoConditions" class="aca-rule-composite-condition__form__no-conditions" data-automation-id="no-conditions">
|
|
{{ 'ACA_FOLDER_RULES.RULE_DETAILS.' + (childCondition ? 'NO_CONDITIONS_IN_GROUP' : 'NO_CONDITIONS') | translate }}
|
|
</div>
|
|
|
|
<div
|
|
class="aca-rule-composite-condition__form__row"
|
|
*ngFor="let control of conditionFormControls; let i = index">
|
|
|
|
<mat-form-field *ngIf="i === 0" appearance="outline" subscriptSizing="dynamic" class="aca-rule-composite-condition-form-field">
|
|
<mat-select
|
|
[formControl]="invertedControl"
|
|
[disabled]="readOnly">
|
|
<mat-option [value]="false">{{ 'ACA_FOLDER_RULES.RULE_DETAILS.LOGIC_OPERATORS.IF' | translate }}</mat-option>
|
|
<mat-option [value]="true">{{ 'ACA_FOLDER_RULES.RULE_DETAILS.LOGIC_OPERATORS.NOT_IF' | translate }}</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field *ngIf="i > 0" appearance="outline" subscriptSizing="dynamic" class="aca-rule-composite-condition-form-field">
|
|
<mat-select
|
|
[formControl]="booleanModeControl">
|
|
<mat-option value="and">{{ 'ACA_FOLDER_RULES.RULE_DETAILS.LOGIC_OPERATORS.AND' | translate }}</mat-option>
|
|
<mat-option value="or">{{ 'ACA_FOLDER_RULES.RULE_DETAILS.LOGIC_OPERATORS.OR' | translate }}</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<aca-rule-composite-condition
|
|
*ngIf="!isFormControlSimpleCondition(control)"
|
|
[secondaryBackground]="!secondaryBackground"
|
|
[childCondition]="true"
|
|
[formControl]="control"
|
|
[readOnly]="readOnly">
|
|
</aca-rule-composite-condition>
|
|
|
|
<aca-rule-simple-condition
|
|
*ngIf="isFormControlSimpleCondition(control)"
|
|
[formControl]="control"
|
|
[readOnly]="readOnly">
|
|
</aca-rule-simple-condition>
|
|
|
|
<button mat-icon-button [matMenuTriggerFor]="menu" *ngIf="!readOnly" data-automation-id="condition-actions-button">
|
|
<mat-icon>more_vert</mat-icon>
|
|
</button>
|
|
|
|
<mat-menu #menu="matMenu">
|
|
<button
|
|
mat-menu-item
|
|
[title]="'ACA_FOLDER_RULES.RULE_DETAILS.CONDITION_BUTTONS.REMOVE' | translate"
|
|
(click)="removeCondition(control)">
|
|
<mat-icon>delete</mat-icon>
|
|
<span>{{ 'ACA_FOLDER_RULES.RULE_DETAILS.CONDITION_BUTTONS.REMOVE' | translate }}</span>
|
|
</button>
|
|
</mat-menu>
|
|
|
|
</div>
|
|
|
|
<div class="aca-rule-composite-condition__form__actions" *ngIf="!readOnly" data-automation-id="add-actions">
|
|
<button mat-flat-button (click)="addSimpleCondition()" data-automation-id="add-condition-button">
|
|
<mat-icon>add</mat-icon>
|
|
<span>{{ 'ACA_FOLDER_RULES.RULE_DETAILS.CONDITION_BUTTONS.ADD_CONDITION' | translate }}</span>
|
|
</button>
|
|
<button mat-flat-button (click)="addCompositeCondition()" data-automation-id="add-group-button">
|
|
<mat-icon>add</mat-icon>
|
|
<span>{{ 'ACA_FOLDER_RULES.RULE_DETAILS.CONDITION_BUTTONS.ADD_GROUP' | translate }}</span>
|
|
</button>
|
|
</div>
|
|
</form>
|