a
    ;Xh                     @   s|   d dl mZ d dlmZmZmZ d dlmZ d dlZe	ej
d G dd dejZG dd	 d	ejZG d
d dejZdS )    )forms)ProducaoMudasPeriodoColetaPorcentagemColeta)ValidationErrorNzpt_BR.UTF-8c                   @   s   e Zd ZG dd dZejdejddiddZejdejddiddZ	ej
dd	ejd
ddddZej
dd	ejd
ddddZej
dd	ejd
ddddZej
dejddddddZej
dejddddddZdS )ProducaoMudasFormc                   @   s   e Zd ZeZdgZdS )zProducaoMudasForm.MetaespecieN)__name__
__module____qualname__r   modelexclude r   r   7/var/www/viveiro_mudafortebrasil/apps/producao/forms.pyMeta	   s   r   Tclassform-controlattrsrequiredwidgetF   text)typer   )r   
max_lengthr      )r   rowsi   )r   r   r   N)r	   r
   r   r   r   IntegerFieldNumberInputnumero_sementes_por_kgDecimalFieldnivel_sombreamento_muda_viveiro	CharField	TextInput	semeaduraarmazenamentodesenvolvimento_muda_viveiroTextareabeneficiamento_sementessubstrato_mudar   r   r   r   r      sf   


r   c                   @   s   e Zd ZG dd dZg dZg dZejdeejdddd	d
dZ	ejdeejdddd	d
dZ
ejdeejdddd	d
dZdS )PeriodoColetaFormc                   @   s   e Zd ZeZdgZdS )zPeriodoColetaForm.Metar   N)r	   r
   r   r   r   r   r   r   r   r   r   I   s   r   ) 	Selecione)	   Amazôniar/   )Caatingar0   )Cerrador1   )   Mata Atlânticar2   )Pampar3   )Pantanalr4   )r,   )Janeiror5   )	Fevereiror6   )   Marçor7   )Abrilr8   )Maior9   )Junhor:   )Julhor;   )Agostor<   )Setembror=   )Outubror>   )Novembror?   )Dezembror@   Fform-selectZautoSizingSelect1z
width:100%)r   idstyler   r   choicesr   ZautoSizingSelect2ZautoSizingSelect3N)r	   r
   r   r   ZPERIODOS_CHOICESZMESES_CHOICESr   ChoiceFieldSelect
bioma_nome
mes_iniciomes_fimr   r   r   r   r+   H   sB   
r+   c                   @   st   e Zd ZG dd dZg dZejdejddiddZejdejddiddZ	ej
d	eejd
ddddZdS )PorcentagemColetaFormc                   @   s   e Zd ZeZdgZdS )zPorcentagemColetaForm.Metar   N)r	   r
   r   r   r   r   r   r   r   r   r      s   r   )r,   )   ÓtimorL   )BomrM   )RegularrN   )RuimrO   Tr   r   r   r   FrA   	descricao)r   rB   rD   N)r	   r
   r   r   ZDESGERMINACAO_CHOICESr   r!   r   valor_minimovalor_maximorF   rG   rP   r   r   r   r   rK      s2   rK   )djangor   apps.producao.modelsr   r   r   django.core.exceptionsr   locale	setlocale
LC_NUMERIC	ModelFormr   r+   rK   r   r   r   r   <module>   s   @D