2022-11-08 11:50:57 -08:00
< form [ formGroup ] = " objectForm " ( ngSubmit ) = " save ( ) " >
< div class = "modal-header" >
< h4 class = "modal-title" id = "modal-basic-title" > {{getTitle()}}< / h4 >
< button type = "button" [ disabled ] = " ! closeEnabled " class = "btn-close" aria-label = "Close" ( click ) = " cancel ( ) " >
< / button >
< / div >
< div class = "modal-body" >
< div class = "row" >
< div class = "col" >
< app-input-text i18n-title title = "Name" formControlName = "name" [ error ] = " error ? . name " > < / app-input-text >
2022-11-08 12:18:47 -08:00
< app-input-select i18n-title title = "Account" [ items ] = " accounts " formControlName = "account" > < / app-input-select >
2022-11-09 19:59:35 -08:00
< app-input-text i18n-title title = "Folder" formControlName = "folder" i18n-hint hint = "Subfolders must be separated by a delimiter, often a dot ('.') or slash ('/'), but it varies by mail server." [ error ] = " error ? . folder " > < / app-input-text >
< app-input-number i18n-title title = "Maximum age (days)" formControlName = "maximum_age" [ showAdd ] = " false " [ error ] = " error ? . maximum_age " > < / app-input-number >
2022-12-30 14:26:01 -08:00
< app-input-select i18n-title title = "Attachment type" [ items ] = " attachmentTypeOptions " formControlName = "attachment_type" > < / app-input-select >
< app-input-select i18n-title title = "Consumption scope" [ items ] = " consumptionScopeOptions " formControlName = "consumption_scope" i18n-hint hint = "See docs for .eml processing requirements" > < / app-input-select >
2022-11-08 12:18:47 -08:00
< / div >
< div class = "col" >
2022-11-09 19:59:35 -08:00
< p class = "small" i18n > Paperless will only process mails that match < em > all< / em > of the filters specified below.< / p >
2022-11-08 11:50:57 -08:00
< app-input-text i18n-title title = "Filter from" formControlName = "filter_from" [ error ] = " error ? . filter_from " > < / app-input-text >
2022-11-08 12:18:47 -08:00
< app-input-text i18n-title title = "Filter subject" formControlName = "filter_subject" [ error ] = " error ? . filter_subject " > < / app-input-text >
2022-11-08 11:50:57 -08:00
< app-input-text i18n-title title = "Filter body" formControlName = "filter_body" [ error ] = " error ? . filter_body " > < / app-input-text >
2022-11-09 19:59:35 -08:00
< app-input-text i18n-title title = "Filter attachment filename" formControlName = "filter_attachment_filename" i18n-hint hint = "Only consume documents which entirely match this filename if specified. Wildcards such as *.pdf or *invoice* are allowed. Case insensitive." [ error ] = " error ? . filter_attachment_filename " > < / app-input-text >
2022-11-08 11:50:57 -08:00
< / div >
< div class = "col" >
2022-11-28 13:58:37 -08:00
< app-input-select i18n-title title = "Action" [ items ] = " actionOptions " formControlName = "action" i18n-hint hint = "Action is only performed when documents are consumed from the mail. Mails without attachments remain entirely untouched." > < / app-input-select >
2022-11-28 15:51:39 -08:00
< app-input-text i18n-title title = "Action parameter" * ngIf = "showActionParamField" formControlName = "action_parameter" [ error ] = " error ? . action_parameter " > < / app-input-text >
2022-11-08 11:50:57 -08:00
< app-input-select i18n-title title = "Assign title from" [ items ] = " metadataTitleOptions " formControlName = "assign_title_from" > < / app-input-select >
< app-input-tags [ allowCreate ] = " false " formControlName = "assign_tags" > < / app-input-tags >
2022-11-09 19:59:35 -08:00
< app-input-select i18n-title title = "Assign document type" [ items ] = " documentTypes " [ allowNull ] = " true " formControlName = "assign_document_type" > < / app-input-select >
2022-11-08 11:50:57 -08:00
< app-input-select i18n-title title = "Assign correspondent from" [ items ] = " metadataCorrespondentOptions " formControlName = "assign_correspondent_from" > < / app-input-select >
2022-11-09 19:59:35 -08:00
< app-input-select * ngIf = "showCorrespondentField" i18n-title title = "Assign correspondent" [ items ] = " correspondents " [ allowNull ] = " true " formControlName = "assign_correspondent" > < / app-input-select >
2022-11-08 11:50:57 -08:00
< / div >
< / div >
< / div >
< div class = "modal-footer" >
2022-11-28 15:51:39 -08:00
< span class = "text-danger" * ngIf = "error?.non_field_errors" > < ng-container i18n > Error< / ng-container > : {{error.non_field_errors}}< / span >
2022-11-08 11:50:57 -08:00
< button type = "button" class = "btn btn-outline-secondary" ( click ) = " cancel ( ) " i18n [ disabled ] = " networkActive " > Cancel< / button >
< button type = "submit" class = "btn btn-primary" i18n [ disabled ] = " networkActive " > Save< / button >
< / div >
< / form >