class ReporteProductoForm(forms.Form): CHOICES = ( ("rubro", "Rubro"), ("tipo_servicio", "Tipo de servicio"), ) filtros = forms.ChoiceField( CHOICES, widget=forms.Select(attrs={'class': 'form-control'})) fecha_ini = forms.DateTimeField(input_formats=[FORMATO_FECHA]) fecha_fin = forms.DateTimeField(input_formats=[FORMATO_FECHA])
class ReporteTotalOrdenesForm(forms.Form): CHOICES = ( ("rubro", "Rubro"), ("tipo_servicio", "Tipo de servicio"), ("cliente", "Cliente"), ("tecnico", "Técnico"), ) filtros = forms.ChoiceField( CHOICES, widget=forms.Select(attrs={'class': 'form-control chart-input'}), label="Criterio:") fecha_ini = forms.DateTimeField(input_formats=[FORMATO_FECHA]) fecha_fin = forms.DateTimeField(input_formats=[FORMATO_FECHA])
class ReporteTareaMasRealizadaForm(forms.Form): fecha_ini = forms.DateTimeField(input_formats=[FORMATO_FECHA]) fecha_fin = forms.DateTimeField(input_formats=[FORMATO_FECHA]) rubro = forms.ModelChoiceField(queryset=Rubro.objects.all(), empty_label=None, widget=forms.Select(attrs={ 'class': 'form-control', })) tipo_servicio = TipoServicioChoiceField( queryset=TipoServicio.objects.all(), empty_label=None, widget=forms.Select(attrs={ 'class': 'form-control', }))
class OfferForm(forms.ModelForm): JOB_TYPE = ((None, 'Select Job Type'), ('Full Time', 'Full Time'), ('Part Time', 'Part Time'), ('Internship', 'Internship')) offer_name = forms.CharField(widget=forms.TextInput()) offer_number = forms.IntegerField(widget=forms.TextInput()) offer_type = forms.SelectMultiple(choices=JOB_TYPE, ) offer_description = forms.CharField(widget=forms.TextInput(attrs={})) company_name = forms.CharField(widget=forms.TextInput(attrs={})) company_description = forms.CharField(widget=forms.TextInput(attrs={})) offer_phone_number = PhoneNumberField() offer_location = forms.CharField(widget=forms.TextInput( attrs={'class': 'form-control floating'})) offer_status = forms.IntegerField(widget=forms.TextInput( attrs={'class': 'form-control floating'})) offer_min_max_limit = forms.CharField(widget=forms.TextInput( attrs={'class': 'form-control floating'})) offer_date_created = forms.DateField(input_formats="'%d/%m/%Y'", widget=forms.DateInput( format="'%d/%m/%Y'", attrs={})) offer_date_update = forms.DateTimeField(input_formats="'%d/%m/%Y'", widget=forms.DateTimeInput( format="'%d/%m/%Y'", attrs={})) class Meta: model = Offers fields = [ 'offer_name', 'offer_number', 'company_name', 'offer_location', 'offer_status', 'offer_min_max_limit', 'offer_date_created', 'offer_phone_number', 'offer_type', 'company_description', 'offer_description', 'offer_date_update' ]
class ReporteTecnicoFinalizadorForm(forms.Form): fecha_ini = forms.DateTimeField(input_formats=[FORMATO_FECHA]) fecha_fin = forms.DateTimeField(input_formats=[FORMATO_FECHA]) tipo_servicio = TipoServicioChoiceField( queryset=TipoServicio.objects.all(), empty_label=None, widget=forms.Select(attrs={ 'class': 'form-control', })) tipo_tarea = TipoTareaChoiceField( queryset=TipoTarea.objects.all().order_by("rubro__nombre"), empty_label=None, widget=forms.Select(attrs={ 'class': 'form-control', }))
class NoteForm(forms.ModelForm): reminder = forms.DateTimeField(widget=forms.widgets.DateTimeInput( attrs={'type': 'datetime-local'})) class Meta: model = Note fields = ['note', 'reminder'] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['note'].widget.attrs.update({ 'class': ('note'), 'rows': 4, 'placeholder': 'Write a note...' })
class ReporteEvolucionFacturacionMensualForm(forms.Form): fecha_ini = forms.DateTimeField(input_formats=[FORMATO_FECHA])
class SearchForm(forms.Form): search_reminder = forms.DateTimeField(widget=forms.widgets.DateTimeInput( attrs={'type': 'date'}))