Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

forms.py 880B

12345678910111213141516171819202122
  1. from django import forms
  2. from django.core.validators import *
  3. class LoginForm(forms.Form):
  4. username = forms.CharField(
  5. label="Username", min_length=4, max_length=30, widget=forms.TextInput
  6. )
  7. password = forms.CharField(
  8. label="Password", min_length=4, max_length=30, widget=forms.PasswordInput
  9. )
  10. game_id = forms.CharField(label="Game ID", widget=forms.NumberInput)
  11. create_join_game = forms.ChoiceField(
  12. label="Create/Join Game",
  13. choices=(("1", "Join"), ("2", "Create")),
  14. )
  15. class GamesettingsForm(forms.Form):
  16. rounds = forms.CharField(label="set number of rounds:", required=False, widget=forms.NumberInput)
  17. timer = forms.CharField(label="set roundtimer:", required=False, widget=forms.NumberInput)
  18. ordermarketsize = forms.CharField(label="set ordermarket size:", required=False, widget=forms.NumberInput)