mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [ADF-2726] start fixing the show of files loaded from CS * [ADF-2726] start fixing the show of files loaded from CS * [ADF-2726] fixed save content for external repository| * [ADF-2726] fixed save content for external repository| * [ADF-2726] reeanabled and fixed the tests * [ADF-2726] reeanabled and fixed the tests * [ADF-2726] added tests for attach file widget and activiti alfresco service * [ADF-2726] added tests for attach file widget and activiti alfresco service * [ADF-2726] fixed test
44 lines
2.4 KiB
HTML
44 lines
2.4 KiB
HTML
<mat-card class="adf-start-process">
|
|
<mat-card-title>{{'ADF_PROCESS_LIST.START_PROCESS.FORM.TITLE' | translate}}
|
|
</mat-card-title>
|
|
<mat-card-content *ngIf="isProcessDefinitionEmpty()">
|
|
<mat-card-subtitle id="error-message" *ngIf="errorMessageId">
|
|
{{errorMessageId|translate}}
|
|
</mat-card-subtitle>
|
|
<mat-form-field class="adf-process-input-container">
|
|
<input matInput placeholder="{{'ADF_PROCESS_LIST.START_PROCESS.FORM.LABEL.NAME'|translate}}" [(ngModel)]="name" id="processName" required />
|
|
</mat-form-field>
|
|
|
|
<div *ngIf="showSelectProcessDropdown">
|
|
<mat-form-field>
|
|
<mat-select [(value)]="selectedProcessDef" placeholder="{{'ADF_PROCESS_LIST.START_PROCESS.FORM.LABEL.TYPE'|translate}}" required>
|
|
<mat-option *ngIf="!hasSingleProcessDefinition()">{{'ADF_PROCESS_LIST.START_PROCESS.FORM.TYPE_PLACEHOLDER' | translate}}</mat-option>
|
|
<mat-option *ngFor="let processDef of processDefinitions" [value]="processDef">
|
|
{{ processDef.name }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
</div>
|
|
|
|
<adf-start-form
|
|
#startForm
|
|
*ngIf="hasStartForm()"
|
|
[data]="values"
|
|
[disableStartProcessButton]="!hasProcessName()"
|
|
[processDefinitionId]="selectedProcessDef.id"
|
|
(outcomeClick)="onOutcomeClick($event)"
|
|
[showRefreshButton]="false">
|
|
<button form-custom-button mat-button (click)="cancelStartProcess()" id="cancle_process" class=""> {{'ADF_PROCESS_LIST.START_PROCESS.FORM.ACTION.CANCEL'| translate}} </button>
|
|
</adf-start-form>
|
|
</mat-card-content>
|
|
<mat-card-content *ngIf="hasErrorMessage()">
|
|
<mat-card-subtitle class="error-message" id="no-process-message">
|
|
{{'ADF_PROCESS_LIST.START_PROCESS.NO_PROCESS_DEFINITIONS' | translate}}
|
|
</mat-card-subtitle>
|
|
</mat-card-content>
|
|
<mat-card-actions *ngIf="!hasStartForm()">
|
|
<button mat-button *ngIf="!hasStartForm()" (click)="cancelStartProcess()" id="cancle_process" class=""> {{'ADF_PROCESS_LIST.START_PROCESS.FORM.ACTION.CANCEL'| translate}} </button>
|
|
<button color="primary" mat-button *ngIf="!hasStartForm()" [disabled]="!validateForm()" (click)="startProcess()" data-automation-id="btn-start" id="button-start" class="btn-start"> {{'ADF_PROCESS_LIST.START_PROCESS.FORM.ACTION.START' | translate}} </button>
|
|
</mat-card-actions>
|
|
</mat-card>
|