
    .>j                         d dl mZ d dlmZmZmZ d dlmZmZ d dl	m
Z
  G d de      Z G d de      Z G d	 d
e      Zy)    )	FlaskForm)	FileFieldFileAllowedFileRequired)SelectFieldStringField)Optionalc                   f    e Zd Z ed e        eg dd      g      Z edg d e       g      Z	y)	
UploadFormzStatement File (PDF or CSV/TSV))pdfcsvtsvtxtzPDF or CSV files only.)
validatorsz$Issuer (leave blank for auto-detect))) zAuto-detectchaseChasebofazBank of America
apple_cardz
Apple CardkohlszKohl'sdiscoverDiscoverdcuzDCU Credit UniontargetzTarget RedCard)choicesr   N)
__name__
__module____qualname__r   r   r   pdf_filer   r	   issuer_override     ;/var/www/html/financials/app/blueprints/import_pdf/forms.pyr   r      s?    ) NK0LNf$ghH ".	
 J<Or)   r   c                   $    e Zd Z edg d      Zy)IssuerConfirmFormzConfirm Issuer)r   r   r   r   r   r   r    )r"   N)r#   r$   r%   r   issuerr(   r)   r*   r,   r,      s    
Fr)   r,   c                       e Zd ZdZy)ReviewActionFormzFCSRF protection for inline edits and commit action on the review page.N)r#   r$   r%   __doc__r(   r)   r*   r/   r/   +   s    Pr)   r/   N)	flask_wtfr   flask_wtf.filer   r   r   wtformsr   r   wtforms.validatorsr	   r   r,   r/   r(   r)   r*   <module>r5      s:     ? ? , ' *	 Qy Qr)   