# -*- coding: utf-8 -*-

from django import forms
from django.utils.translation import ugettext_lazy as _

from djangosige.apps.fiscal.models import NaturezaOperacao


class NaturezaOperacaoForm(forms.ModelForm):

    class Meta:
        model = NaturezaOperacao
        fields = ('cfop', 'descricao', 'tp_operacao', 'id_dest',)
        widgets = {
            'cfop': forms.TextInput(attrs={'class': 'form-control', 'size': '40'}),
            'descricao': forms.TextInput(attrs={'class': 'form-control'}),
            'tp_operacao': forms.Select(attrs={'class': 'form-control'}),
            'id_dest': forms.Select(attrs={'class': 'form-control'}),
        }
        labels = {
            'cfop': _('CFOP'),
            'descricao': _('说明'),
            'tp_operacao': _('操作类型'),
            'id_dest': _('Local destino da operação'),
        }
