Whitespace / format
This commit is contained in:
parent
46206dc683
commit
f88bf08657
@ -596,7 +596,7 @@
|
|||||||
</context-group>
|
</context-group>
|
||||||
<context-group purpose="location">
|
<context-group purpose="location">
|
||||||
<context context-type="sourcefile">src/app/components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component.html</context>
|
<context context-type="sourcefile">src/app/components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component.html</context>
|
||||||
<context context-type="linenumber">102</context>
|
<context context-type="linenumber">79</context>
|
||||||
</context-group>
|
</context-group>
|
||||||
<context-group purpose="location">
|
<context-group purpose="location">
|
||||||
<context context-type="sourcefile">src/app/components/document-list/save-view-config-dialog/save-view-config-dialog.component.html</context>
|
<context context-type="sourcefile">src/app/components/document-list/save-view-config-dialog/save-view-config-dialog.component.html</context>
|
||||||
@ -1444,7 +1444,7 @@
|
|||||||
</context-group>
|
</context-group>
|
||||||
<context-group purpose="location">
|
<context-group purpose="location">
|
||||||
<context context-type="sourcefile">src/app/components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component.html</context>
|
<context context-type="sourcefile">src/app/components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component.html</context>
|
||||||
<context context-type="linenumber">101</context>
|
<context context-type="linenumber">77</context>
|
||||||
</context-group>
|
</context-group>
|
||||||
<context-group purpose="location">
|
<context-group purpose="location">
|
||||||
<context context-type="sourcefile">src/app/components/document-list/save-view-config-dialog/save-view-config-dialog.component.html</context>
|
<context context-type="sourcefile">src/app/components/document-list/save-view-config-dialog/save-view-config-dialog.component.html</context>
|
||||||
@ -7192,14 +7192,15 @@
|
|||||||
<source>Select custom fields</source>
|
<source>Select custom fields</source>
|
||||||
<context-group purpose="location">
|
<context-group purpose="location">
|
||||||
<context context-type="sourcefile">src/app/components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component.html</context>
|
<context context-type="sourcefile">src/app/components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component.html</context>
|
||||||
<context context-type="linenumber">16</context>
|
<context context-type="linenumber">13</context>
|
||||||
</context-group>
|
</context-group>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="5468792870683258164" datatype="html">
|
<trans-unit id="8244572554104037643" datatype="html">
|
||||||
<source>{VAR_PLURAL, plural, =1 {This operation will also remove 1 custom field from the selected documents.} other {This operation will also remove <x id="INTERPOLATION"/> custom fields from the selected documents.}}</source>
|
<source>{VAR_PLURAL, plural, =1 {This operation will also remove 1 custom field from the selected documents.} other {This operation will also
|
||||||
|
remove <x id="INTERPOLATION"/> custom fields from the selected documents.}}</source>
|
||||||
<context-group purpose="location">
|
<context-group purpose="location">
|
||||||
<context context-type="sourcefile">src/app/components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component.html</context>
|
<context context-type="sourcefile">src/app/components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component.html</context>
|
||||||
<context context-type="linenumber">95,99</context>
|
<context context-type="linenumber">69,74</context>
|
||||||
</context-group>
|
</context-group>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="2784168796433474565" datatype="html">
|
<trans-unit id="2784168796433474565" datatype="html">
|
||||||
|
@ -9,77 +9,51 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<pngx-input-select i18n-title title=""
|
<pngx-input-select i18n-title title="" multiple="true" [items]="customFields" [(ngModel)]="fieldsToAddIds"
|
||||||
multiple="true"
|
placeholder="Select custom fields" i18n-placeholder [ngModelOptions]="{standalone: true}">
|
||||||
[items]="customFields"
|
|
||||||
[(ngModel)]="fieldsToAddIds"
|
|
||||||
placeholder="Select custom fields"
|
|
||||||
i18n-placeholder
|
|
||||||
[ngModelOptions]="{standalone: true}">
|
|
||||||
</pngx-input-select>
|
</pngx-input-select>
|
||||||
<div class="d-flex flex-column gap-2">
|
<div class="d-flex flex-column gap-2">
|
||||||
@for (field of fieldsToAdd; track field.id) {
|
@for (field of fieldsToAdd; track field.id) {
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
@switch (field.data_type) {
|
@switch (field.data_type) {
|
||||||
@case (CustomFieldDataType.String) {
|
@case (CustomFieldDataType.String) {
|
||||||
<pngx-input-text formControlName="{{field.id}}" class="w-100"
|
<pngx-input-text formControlName="{{field.id}}" class="w-100" [title]="field.name" [horizontal]="true">
|
||||||
[title]="field.name"
|
|
||||||
[horizontal]="true">
|
|
||||||
</pngx-input-text>
|
</pngx-input-text>
|
||||||
}
|
}
|
||||||
@case (CustomFieldDataType.Date) {
|
@case (CustomFieldDataType.Date) {
|
||||||
<pngx-input-date formControlName="{{field.id}}" class="w-100"
|
<pngx-input-date formControlName="{{field.id}}" class="w-100" [title]="field.name" [horizontal]="true">
|
||||||
[title]="field.name"
|
|
||||||
[horizontal]="true">
|
|
||||||
</pngx-input-date>
|
</pngx-input-date>
|
||||||
}
|
}
|
||||||
@case (CustomFieldDataType.Integer) {
|
@case (CustomFieldDataType.Integer) {
|
||||||
<pngx-input-number formControlName="{{field.id}}" class="w-100"
|
<pngx-input-number formControlName="{{field.id}}" class="w-100" [title]="field.name" [showAdd]="false"
|
||||||
[title]="field.name"
|
|
||||||
[showAdd]="false"
|
|
||||||
[horizontal]="true">
|
[horizontal]="true">
|
||||||
</pngx-input-number>
|
</pngx-input-number>
|
||||||
}
|
}
|
||||||
@case (CustomFieldDataType.Float) {
|
@case (CustomFieldDataType.Float) {
|
||||||
<pngx-input-number formControlName="{{field.id}}" class="w-100"
|
<pngx-input-number formControlName="{{field.id}}" class="w-100" [title]="field.name" [showAdd]="false"
|
||||||
[title]="field.name"
|
[step]=".1" [horizontal]="true">
|
||||||
[showAdd]="false"
|
|
||||||
[step]=".1"
|
|
||||||
[horizontal]="true">
|
|
||||||
</pngx-input-number>
|
</pngx-input-number>
|
||||||
}
|
}
|
||||||
@case (CustomFieldDataType.Monetary) {
|
@case (CustomFieldDataType.Monetary) {
|
||||||
<pngx-input-monetary formControlName="{{field.id}}" class="w-100"
|
<pngx-input-monetary formControlName="{{field.id}}" class="w-100" [title]="field.name"
|
||||||
[title]="field.name"
|
[defaultCurrency]="field.extra_data?.default_currency" [horizontal]="true">
|
||||||
[defaultCurrency]="field.extra_data?.default_currency"
|
|
||||||
[horizontal]="true">
|
|
||||||
</pngx-input-monetary>
|
</pngx-input-monetary>
|
||||||
}
|
}
|
||||||
@case (CustomFieldDataType.Boolean) {
|
@case (CustomFieldDataType.Boolean) {
|
||||||
<pngx-input-check formControlName="{{field.id}}" class="w-100"
|
<pngx-input-check formControlName="{{field.id}}" class="w-100" [title]="field.name" [horizontal]="true">
|
||||||
[title]="field.name"
|
|
||||||
[horizontal]="true">
|
|
||||||
</pngx-input-check>
|
</pngx-input-check>
|
||||||
}
|
}
|
||||||
@case (CustomFieldDataType.Url) {
|
@case (CustomFieldDataType.Url) {
|
||||||
<pngx-input-url formControlName="{{field.id}}" class="w-100"
|
<pngx-input-url formControlName="{{field.id}}" class="w-100" [title]="field.name" [horizontal]="true">
|
||||||
[title]="field.name"
|
|
||||||
[horizontal]="true">
|
|
||||||
</pngx-input-url>
|
</pngx-input-url>
|
||||||
}
|
}
|
||||||
@case (CustomFieldDataType.DocumentLink) {
|
@case (CustomFieldDataType.DocumentLink) {
|
||||||
<pngx-input-document-link formControlName="{{field.id}}" class="w-100"
|
<pngx-input-document-link formControlName="{{field.id}}" class="w-100" [title]="field.name" [horizontal]="true">
|
||||||
[title]="field.name"
|
|
||||||
[horizontal]="true">
|
|
||||||
</pngx-input-document-link>
|
</pngx-input-document-link>
|
||||||
}
|
}
|
||||||
@case (CustomFieldDataType.Select) {
|
@case (CustomFieldDataType.Select) {
|
||||||
<pngx-input-select formControlName="{{field.id}}" class="w-100"
|
<pngx-input-select formControlName="{{field.id}}" class="w-100" [title]="field.name"
|
||||||
[title]="field.name"
|
[items]="field.extra_data.select_options" bindLabel="label" [allowNull]="true" [horizontal]="true">
|
||||||
[items]="field.extra_data.select_options"
|
|
||||||
bindLabel="label"
|
|
||||||
[allowNull]="true"
|
|
||||||
[horizontal]="true">
|
|
||||||
</pngx-input-select>
|
</pngx-input-select>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -95,10 +69,13 @@
|
|||||||
<p class="mb-0 small"><em i18n>{
|
<p class="mb-0 small"><em i18n>{
|
||||||
fieldsToRemoveIds.length,
|
fieldsToRemoveIds.length,
|
||||||
plural,
|
plural,
|
||||||
=1 {This operation will also remove 1 custom field from the selected documents.} other {This operation will also remove {{fieldsToRemoveIds.length}} custom fields from the selected documents.}
|
=1 {This operation will also remove 1 custom field from the selected documents.} other {This operation will also
|
||||||
|
remove {{fieldsToRemoveIds.length}} custom fields from the selected documents.}
|
||||||
}</em></p>
|
}</em></p>
|
||||||
}
|
}
|
||||||
<button type="button" class="btn btn-outline-secondary" (click)="cancel()" i18n [disabled]="networkActive">Cancel</button>
|
<button type="button" class="btn btn-outline-secondary" (click)="cancel()" i18n
|
||||||
<button type="submit" class="btn btn-primary" i18n [disabled]="networkActive || fieldsToRemoveIds.length + fieldsToAddIds.length === 0">Save</button>
|
[disabled]="networkActive">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" i18n
|
||||||
|
[disabled]="networkActive || fieldsToRemoveIds.length + fieldsToAddIds.length === 0">Save</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user