subDesTagesMitExtraKaese преди 1 година
родител
ревизия
4dbdd0de32
променени са 1 файла, в които са добавени 10 реда и са изтрити 1 реда
  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)