mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-10-10 02:16:12 -05:00
Update workflow-edit-dialog.component.html
This commit is contained in:
@@ -156,25 +156,25 @@
|
|||||||
<p class="small" i18n>Trigger for documents that match <em>all</em> filters specified below.</p>
|
<p class="small" i18n>Trigger for documents that match <em>all</em> filters specified below.</p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<pngx-input-text i18n-title title="Filter filename" formControlName="filter_filename" i18n-hint hint="Apply to documents that match this filename. Wildcards such as *.pdf or *invoice* are allowed. Case insensitive." [error]="error?.filter_filename"></pngx-input-text>
|
<pngx-input-text i18n-title title="Filter filename" formControlName="filter_filename" horizontal="true" i18n-hint hint="Apply to documents that match this filename. Wildcards such as *.pdf or *invoice* are allowed. Case insensitive." [error]="error?.filter_filename"></pngx-input-text>
|
||||||
@if (formGroup.get('type').value === WorkflowTriggerType.Consumption) {
|
@if (formGroup.get('type').value === WorkflowTriggerType.Consumption) {
|
||||||
<pngx-input-select i18n-title title="Filter sources" [items]="sourceOptions" [multiple]="true" formControlName="sources" [error]="error?.sources"></pngx-input-select>
|
<pngx-input-select i18n-title title="Filter sources" [items]="sourceOptions" horizontal="true" [multiple]="true" formControlName="sources" [error]="error?.sources"></pngx-input-select>
|
||||||
<pngx-input-text i18n-title title="Filter path" formControlName="filter_path" i18n-hint hint="Apply to documents that match this path. Wildcards specified as * are allowed. Case-normalized.</a>" [error]="error?.filter_path"></pngx-input-text>
|
<pngx-input-text i18n-title title="Filter path" formControlName="filter_path" horizontal="true" i18n-hint hint="Apply to documents that match this path. Wildcards specified as * are allowed. Case-normalized.</a>" [error]="error?.filter_path"></pngx-input-text>
|
||||||
<pngx-input-select i18n-title title="Filter mail rule" [items]="mailRules" [allowNull]="true" formControlName="filter_mailrule" i18n-hint hint="Apply to documents consumed via this mail rule." [error]="error?.filter_mailrule"></pngx-input-select>
|
<pngx-input-select i18n-title title="Filter mail rule" [items]="mailRules" horizontal="true" [allowNull]="true" formControlName="filter_mailrule" i18n-hint hint="Apply to documents consumed via this mail rule." [error]="error?.filter_mailrule"></pngx-input-select>
|
||||||
}
|
}
|
||||||
@if (formGroup.get('type').value === WorkflowTriggerType.DocumentAdded || formGroup.get('type').value === WorkflowTriggerType.DocumentUpdated || formGroup.get('type').value === WorkflowTriggerType.Scheduled) {
|
@if (formGroup.get('type').value === WorkflowTriggerType.DocumentAdded || formGroup.get('type').value === WorkflowTriggerType.DocumentUpdated || formGroup.get('type').value === WorkflowTriggerType.Scheduled) {
|
||||||
<pngx-input-select i18n-title title="Content matching algorithm" [items]="getMatchingAlgorithms()" formControlName="matching_algorithm"></pngx-input-select>
|
<pngx-input-select i18n-title title="Content matching algorithm" horizontal="true" [items]="getMatchingAlgorithms()" formControlName="matching_algorithm"></pngx-input-select>
|
||||||
@if (patternRequired) {
|
@if (patternRequired) {
|
||||||
<pngx-input-text i18n-title title="Content matching pattern" formControlName="match" [error]="error?.match"></pngx-input-text>
|
<pngx-input-text i18n-title title="Content matching pattern" horizontal="true" formControlName="match" [error]="error?.match"></pngx-input-text>
|
||||||
}
|
}
|
||||||
@if (patternRequired) {
|
@if (patternRequired) {
|
||||||
<pngx-input-check i18n-title title="Case insensitive" formControlName="is_insensitive"></pngx-input-check>
|
<pngx-input-check i18n-title title="Case insensitive" horizontal="true" formControlName="is_insensitive"></pngx-input-check>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
|
||||||
@if (formGroup.get('type').value === WorkflowTriggerType.DocumentAdded || formGroup.get('type').value === WorkflowTriggerType.DocumentUpdated || formGroup.get('type').value === WorkflowTriggerType.Scheduled) {
|
@if (formGroup.get('type').value === WorkflowTriggerType.DocumentAdded || formGroup.get('type').value === WorkflowTriggerType.DocumentUpdated || formGroup.get('type').value === WorkflowTriggerType.Scheduled) {
|
||||||
|
<div class="row mt-3">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="trigger-conditions mb-3">
|
<div class="trigger-conditions mb-3">
|
||||||
<div class="d-flex align-items-center">
|
<div class="d-flex align-items-center">
|
||||||
@@ -202,6 +202,7 @@
|
|||||||
[items]="getConditionTypeOptions(formGroup, conditionIndex)"
|
[items]="getConditionTypeOptions(formGroup, conditionIndex)"
|
||||||
formControlName="type"
|
formControlName="type"
|
||||||
[allowNull]="false"
|
[allowNull]="false"
|
||||||
|
horizontal="true"
|
||||||
></pngx-input-select>
|
></pngx-input-select>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
@@ -209,8 +210,7 @@
|
|||||||
class="btn btn-link text-danger p-0 ms-1"
|
class="btn btn-link text-danger p-0 ms-1"
|
||||||
(click)="removeCondition(formGroup, conditionIndex)"
|
(click)="removeCondition(formGroup, conditionIndex)"
|
||||||
>
|
>
|
||||||
<i-bs name="trash"></i-bs>
|
<i-bs name="trash"></i-bs><span class="ms-1" i18n>Delete</span>
|
||||||
<span class="visually-hidden" i18n>Remove condition</span>
|
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@if (isTagsCondition(condition.get('type').value)) {
|
@if (isTagsCondition(condition.get('type').value)) {
|
||||||
@@ -219,6 +219,7 @@
|
|||||||
[title]="getConditionValueLabel(condition.get('type').value)"
|
[title]="getConditionValueLabel(condition.get('type').value)"
|
||||||
[hint]="getConditionHint(formGroup, conditionIndex)"
|
[hint]="getConditionHint(formGroup, conditionIndex)"
|
||||||
formControlName="values"
|
formControlName="values"
|
||||||
|
horizontal="true"
|
||||||
></pngx-input-tags>
|
></pngx-input-tags>
|
||||||
} @else {
|
} @else {
|
||||||
<pngx-input-select
|
<pngx-input-select
|
||||||
@@ -228,6 +229,7 @@
|
|||||||
[allowNull]="true"
|
[allowNull]="true"
|
||||||
[multiple]="isSelectMultiple(condition.get('type').value)"
|
[multiple]="isSelectMultiple(condition.get('type').value)"
|
||||||
formControlName="values"
|
formControlName="values"
|
||||||
|
horizontal="true"
|
||||||
></pngx-input-select>
|
></pngx-input-select>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@@ -235,8 +237,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user