Beispiel #1
0
 class Meta:
     model = Auction
     fields = (
         'start',
         'end',
     )
     widgets = {
         'start': forms.DateTimeInput(attrs={'placeholder': 'Date & Time'}),
         'end': forms.DateTimeInput(attrs={'placeholder': 'Date & Time'}),
     }
Beispiel #2
0
 class Meta:
     model = Journey
     fields = ["free_places", "departure", "arrival"]
     widgets = {
         "free_places": forms.NumberInput(attrs={"class": "form-control"}),
         "departure":
         floppyforms.DateTimeInput(attrs={"class": "form-control"}),
         "arrival":
         floppyforms.DateTimeInput(attrs={"class": "form-control"}),
     }
Beispiel #3
0
 class Meta:
     model = Journey
     fields = [
         "origin", "destiny", "i_am_driver", "transport", "free_places",
         "departure", "arrival", "time_window", "recurrence"
     ]
     widgets = {
         "transport": forms.Select(attrs={"class": "form-control"}),
         "kind": forms.Select(attrs={"class": "form-control"}),
         "free_places": forms.NumberInput(attrs={"class": "form-control"}),
         "departure":
         floppyforms.DateTimeInput(attrs={"class": "form-control"}),
         "arrival":
         floppyforms.DateTimeInput(attrs={"class": "form-control"}),
         "time_window": forms.NumberInput(attrs={"class": "form-control"}),
     }