ソースを参照

add more forms

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)