class Meta: model = Leasing fields = [ "bail", "apl", "payment", "rib", "insuranceDeadline", "contract_signed", "contract_date", "caution_rib", "idgarant", "payinslip", "tax_notice", "stranger", "caf", "residence_certificate", "check_guarantee", "guarantee", "issue", "missing_documents", "date_of_entry", "date_of_departure", "photo", "internal_rules_signed", "school_certificate", "debit_authorization", ] widgets = { 'date_of_entry': DatePicker(), 'date_of_departure': DatePicker(), 'contract_date': DatePicker(), 'insuranceDeadline': DatePicker(), 'apl': DatePicker(), }
class Meta: model = Tenant fields = [ 'name', 'first_name', 'gender', 'school', 'school_year', 'date_of_entry', 'observations', 'temporary', 'cellphone', 'birthday', 'birthcity', 'birthdepartement', 'birthcountry', 'street_number', 'street', 'zipcode', 'city', 'country', 'email', 'phone' ] widgets = { 'date_of_entry': DatePicker(), 'birthday': DatePicker(), }
class RoomMoveInDirectForm(forms.Form): """Select a tenant withj no room to move in.""" tenant = forms.ModelChoiceField( queryset=Tenant.objects.all(), required=True, label="Locataire", widget=autocomplete.ModelSelect2(url='gestion:tenantWithoutRoomAutocomplete') ) date = forms.DateField(widget=DatePicker(), required=True)
class TenantMoveInDirectForm(forms.Form): """Select an empty room for tenant to move in.""" room = forms.ModelChoiceField( queryset=Room.objects.all(), required=True, label="Chambre", widget=autocomplete.ModelSelect2(url='gestion:emptyRoomAutocomplete') ) date = forms.DateField(widget=DatePicker(), required=True)
class Meta: model = Tenant fields = [ 'name', 'first_name', 'gender', 'school', 'school_year', 'date_of_entry', 'observations', 'temporary', 'cellphone', 'birthday', 'birthcity', 'birthdepartement', 'birthcountry', 'street_number', 'street', 'zipcode', 'city', 'country', 'email', 'phone', 'date_of_departure', 'pillow', 'pillowcase', 'sheet', 'waterproof_undersheet', 'leaving', 'blanket', ] widgets = { 'date_of_entry': DatePicker(), 'date_of_departure': DatePicker(), 'birthday': DatePicker(), }
class DateForm(forms.Form): """A generic dateform.""" date = forms.DateField(widget=DatePicker(), required=True)
class Meta: model = Tenant fields = ('date_of_departure',) widgets = { 'date_of_departure': DatePicker() }