subDesTagesMitExtraKaese 1 gadu atpakaļ
vecāks
revīzija
4dbdd0de32
1 mainītis faili ar 10 papildinājumiem un 1 dzēšanām
  1. 10 1
      zitap/forms.py

+ 10 - 1
zitap/forms.py

@@ -6,4 +6,13 @@ from .widgets import DatePickerWidget
 
 class CreateEventForm(forms.Form):
     event_name = forms.CharField(label='Event name', max_length=100)
-    event_date = forms.Field(label='Event date', widget=DatePickerWidget)
+    event_date = forms.Field(label='Event date', widget=DatePickerWidget)
+    start_time = forms.TimeField(label='Start time', initial=datetime.time(9, 0))
+    end_time = forms.TimeField(label='End time', initial=datetime.time(20, 0))
+
+class LoginForm(forms.Form):
+    username = forms.CharField(label='Username', max_length=100)
+    password = forms.CharField(label='Password', max_length=100, widget=forms.PasswordInput, required=False)
+
+class UpdateSlotsForm(forms.Form):
+    slots = forms.CharField(label='Slots', max_length=100)