def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'shift_type', Fieldset(_('Work certificate'), 'want_certificate', 'certificate_delivery_address', ), Fieldset(_('Language skills'), 'can_finnish', 'can_english', 'other_languages', ), Fieldset(_('Additional information'), 'special_diet', 'special_diet_other', 'prior_experience', 'shift_wishes', 'free_text', ), Fieldset(_('Consent for information processing'), 'roster_publish_consent', ), ) self.fields['roster_publish_consent'].required = True
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'shift_type', Fieldset( _('Work certificate'), 'want_certificate', 'certificate_delivery_address', ), Fieldset( _('Language skills'), 'can_finnish', 'can_english', 'other_languages', ), Fieldset( _('Additional information'), 'special_diet', 'special_diet_other', 'prior_experience', 'shift_wishes', 'free_text', ), Fieldset( _('Consent for information processing'), 'roster_publish_consent', ), ) self.fields['roster_publish_consent'].required = True
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'title', 'description', 'content_warnings', 'category', 'approximate_length', 'is_english_ok', 'is_beginner_friendly', 'ropecon2020_suitable_for_children_under_7', 'ropecon2020_suitable_for_children_aged_7_12', 'ropecon2020_suitable_for_children_aged_12_plus', 'ropecon2020_not_suitable_for_children', 'is_age_restricted', 'is_inaccessible', 'ropecon2020_theme_end_of_the_world', 'ropecon2020_theme_dinosaurs', 'max_players', 'computer', 'tech_requirements', 'ropecon2019_blocked_time_slots', 'notes_from_host', 'is_available_for_panel', 'field_of_expertise', 'video_permission', ) for field_name, texts in PROGRAMME_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[field_name].help_text = texts self.fields['description'].required = True self.fields['approximate_length'].required = True self.fields['video_permission'].required = True self.fields['approximate_length'].initial = 105 self.fields['category'].queryset = Category.objects.filter(event=event, slug__in=( 'pres', 'panel', 'disc', 'craft', 'mini', 'music', 'workshop', 'dance', 'other', )) self.fields['computer'].choices = [('con', _('Laptop provided by Ropecon')), ('pc', _('Own laptop (PC)')), ('mac', _('Own laptop (Mac)')),('none', _('No laptop is needed in my programme')),] self.fields['ropecon2019_blocked_time_slots'].required = True self.fields['video_permission'].choices = [('public', _('I give permission to record and publish my programme')), ('forbidden', _('I do not give permission to record or publish my programme')),] self.fields['video_permission'].blank = True
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'category', 'ropecon2019_gaming_desk_subtype', 'title', 'approximate_length', 'max_players', 'description', 'content_warnings', 'rpg_system', 'ropecon2020_materials_language', 'ropecon2018_signuplist', 'tech_requirements', 'ropecon2019_preferred_time_slots', 'notes_from_host', Fieldset( _('Who is your game programme for?'), 'is_in_english', 'is_age_restricted', 'ropecon2020_suitable_for_children_under_7', 'ropecon2020_suitable_for_children_aged_7_12', 'ropecon2020_suitable_for_children_aged_12_plus', 'ropecon2020_not_suitable_for_children', 'is_beginner_friendly', 'ropecon2020_theme_end_of_the_world', 'ropecon2020_theme_dinosaurs', ), ) for field_name, texts in GAMING_DESK_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[ field_name].help_text = texts self.fields['category'].queryset = Category.objects.filter( event=event, slug__in=( 'miniwar', 'card', 'board', 'exp', )) self.fields['ropecon2019_gaming_desk_subtype'].required = True self.fields['max_players'].initial = 3 self.fields['max_players'].required = True self.fields['description'].required = True self.fields["ropecon2018_signuplist"].choices = [ ('none', _('No sign-up')), ('itse', _('Sign-up in advance')), ('tiski', _('Sign-up at the Gaming Desk')), ] self.fields['ropecon2019_preferred_time_slots'].required = True
def __init__(self, *args, **kwargs): super(OrganizerSignupExtraForm, self).__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( Fieldset( 'Lisätiedot', 'special_diet', 'special_diet_other', ), )
def __init__(self, *args, **kwargs): super(OrganizerSignupExtraForm, self).__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( Fieldset('Lisätiedot', 'special_diet', 'special_diet_other', ), )
def __init__(self, *args, **kwargs): kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'title', 'approximate_length', 'ropecon2018_sessions', 'ropecon2018_characters', 'min_players', 'description', 'content_warnings', 'other_author', 'ropecon2018_signuplist', 'ropecon2018_space_requirements', 'ropecon2018_prop_requirements', 'ropecon2019_blocked_time_slots', 'notes_from_host', Fieldset( _('Who is your larp for?'), 'is_in_english', 'is_age_restricted', 'ropecon2020_suitable_for_children_under_7', 'ropecon2020_suitable_for_children_aged_7_12', 'ropecon2020_suitable_for_children_aged_12_plus', 'ropecon2020_not_suitable_for_children', 'is_beginner_friendly', 'ropecon2020_theme_end_of_the_world', 'ropecon2020_theme_dinosaurs', ), ) for field_name, texts in LARP_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[ field_name].help_text = texts self.fields['ropecon2018_sessions'].initial = 2 self.fields['ropecon2018_characters'].initial = 10 self.fields['min_players'].required = True self.fields['min_players'].initial = 6 self.fields['description'].required = True self.fields["ropecon2018_signuplist"].choices = [ ('none', _('No sign-up')), ('tiski', _('The Larp Desk will make the sign-up list')), ('itse', _('I will make my own sign-up list')), ] self.fields["ropecon2018_signuplist"].choices = [ (k, t) for (k, t) in self.fields["ropecon2018_signuplist"].choices if k != 'none' ] self.fields['ropecon2019_blocked_time_slots'].required = True
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'title', 'rpg_system', 'approximate_length', 'min_players', 'max_players', 'is_revolving_door', Fieldset(_('Who is the game meant for?'), 'is_in_english', 'is_age_restricted', 'ropecon2020_suitable_for_children_under_7', 'ropecon2020_suitable_for_children_aged_7_12', 'ropecon2020_suitable_for_children_aged_12_plus', 'ropecon2020_not_suitable_for_children', 'is_beginner_friendly', 'ropecon2020_theme_end_of_the_world', 'ropecon2020_theme_dinosaurs', ), Fieldset(_('Playstyle and mechanics (Choose any which apply)'), 'ropecon2018_style_serious', 'ropecon2018_style_light', 'ropecon2018_style_rules_heavy', 'ropecon2018_style_rules_light', 'ropecon2018_style_story_driven', 'ropecon2018_style_character_driven', 'ropecon2018_style_combat_driven', 'description', 'three_word_description', 'ropecon2019_blocked_time_slots', 'notes_from_host', ) ) for field_name, texts in RPG_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[field_name].help_text = texts self.fields['rpg_system'].required = True self.fields['approximate_length'].required = True self.fields['min_players'].required = True self.fields['min_players'].initial = 2 self.fields['max_players'].required = True self.fields['max_players'].initial = 5 self.fields['description'].required = True self.fields['three_word_description'].required = True self.fields['ropecon2019_blocked_time_slots'].required = True
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'title', 'rpg_system', 'approximate_length', 'min_players', 'max_players', 'is_revolving_door', Fieldset(_('Who is the game meant for?'), 'is_in_english', 'is_age_restricted', 'is_children_friendly', 'is_family_program', 'is_beginner_friendly', 'is_intended_for_experienced_participants', ), Fieldset(_('Game genre (Choose all which apply)'), 'ropecon2018_genre_fantasy', 'ropecon2018_genre_scifi', 'ropecon2018_genre_historical', 'ropecon2018_genre_modern', 'ropecon2018_genre_war', 'ropecon2018_genre_horror', 'ropecon2019_genre_adventure', 'ropecon2018_genre_mystery', 'ropecon2018_genre_drama', 'ropecon2018_genre_humor', ), Fieldset(_('Game style (Choose any which apply)'), 'ropecon2018_style_serious', 'ropecon2018_style_light', 'ropecon2018_style_rules_heavy', 'ropecon2018_style_rules_light', 'ropecon2018_style_story_driven', 'ropecon2018_style_character_driven', 'ropecon2018_style_combat_driven', 'description', 'three_word_description', 'ropecon2019_blocked_time_slots', 'notes_from_host', ) ) for field_name, texts in RPG_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[field_name].help_text = texts
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'title', 'rpg_system', 'approximate_length', 'min_players', 'max_players', 'is_revolving_door', Fieldset( _('Who is the game meant for?'), 'is_in_english', 'is_age_restricted', 'is_children_friendly', 'is_family_program', 'is_beginner_friendly', 'is_intended_for_experienced_participants', ), Fieldset( _('Game genre (Choose all which apply)'), 'ropecon2018_genre_fantasy', 'ropecon2018_genre_scifi', 'ropecon2018_genre_historical', 'ropecon2018_genre_modern', 'ropecon2018_genre_war', 'ropecon2018_genre_horror', 'ropecon2019_genre_adventure', 'ropecon2018_genre_mystery', 'ropecon2018_genre_drama', 'ropecon2018_genre_humor', ), Fieldset( _('Game style (Choose any which apply)'), 'ropecon2018_style_serious', 'ropecon2018_style_light', 'ropecon2018_style_rules_heavy', 'ropecon2018_style_rules_light', 'ropecon2018_style_story_driven', 'ropecon2018_style_character_driven', 'ropecon2018_style_combat_driven', 'description', 'three_word_description', 'ropecon2019_blocked_time_slots', 'notes_from_host', )) for field_name, texts in RPG_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[ field_name].help_text = texts
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'title', 'description', 'content_warnings', 'category', 'approximate_length', 'is_english_ok', 'is_children_friendly', 'is_beginner_friendly', 'is_inaccessible', 'is_family_program', 'is_age_restricted', 'max_players', 'computer', 'tech_requirements', 'ropecon2019_blocked_time_slots', 'notes_from_host', 'is_available_for_panel', 'field_of_expertise', 'video_permission', ) for field_name, texts in PROGRAMME_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[ field_name].help_text = texts self.fields['video_permission'].required = True self.fields['approximate_length'].initial = 105 self.fields['category'].queryset = Category.objects.filter( event=event, slug__in=( 'pres', 'panel', 'disc', 'craft', 'mini', 'music', 'workshop', 'other', ))
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'title', 'description', 'content_warnings', 'category', 'approximate_length', 'is_english_ok', 'is_children_friendly', 'is_beginner_friendly', 'is_inaccessible', 'is_family_program', 'is_age_restricted', 'max_players', 'computer', 'tech_requirements', 'ropecon2019_blocked_time_slots', 'notes_from_host', 'is_available_for_panel', 'field_of_expertise', 'video_permission', ) for field_name, texts in PROGRAMME_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[field_name].help_text = texts self.fields['video_permission'].required = True self.fields['approximate_length'].initial = 105 self.fields['category'].queryset = Category.objects.filter(event=event, slug__in=( 'pres', 'panel', 'disc', 'craft', 'mini', 'music', 'workshop', 'other', ))
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') assert not admin super(OrganizerSignupForm, self).__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout(Fieldset( 'Tehtävän tiedot', 'job_title', ), ) self.fields[ 'job_title'].help_text = "Mikä on tehtäväsi coniteassa? Printataan badgeen." self.fields['job_title'].required = True
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') assert not admin super(OrganizerSignupForm, self).__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( Fieldset('Tehtävän tiedot', 'job_title', ), ) self.fields['job_title'].help_text = "Mikä on tehtäväsi coniteassa? Printataan badgeen." self.fields['job_title'].required = True
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'category', 'ropecon2019_gaming_desk_subtype', 'title', 'approximate_length', 'max_players', 'description', 'content_warnings', 'rpg_system', 'ropecon2018_signuplist', 'tech_requirements', 'ropecon2019_preferred_time_slots', 'notes_from_host', Fieldset( _('Who is the game for?'), 'is_english_ok', 'is_age_restricted', 'is_children_friendly', 'is_beginner_friendly', 'is_family_program', ), ) for field_name, texts in GAMING_DESK_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[ field_name].help_text = texts self.fields['category'].queryset = Category.objects.filter( event=event, slug__in=( 'miniwar', 'card', 'board', 'exp', ))
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'category', 'ropecon2019_gaming_desk_subtype', 'title', 'approximate_length', 'max_players', 'description', 'content_warnings', 'rpg_system', 'ropecon2018_signuplist', 'tech_requirements', 'ropecon2019_preferred_time_slots', 'notes_from_host', Fieldset(_('Who is the game for?'), 'is_english_ok', 'is_age_restricted', 'is_children_friendly', 'is_beginner_friendly', 'is_family_program', ), ) for field_name, texts in GAMING_DESK_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[field_name].help_text = texts self.fields['category'].queryset = Category.objects.filter(event=event, slug__in=( 'miniwar', 'card', 'board', 'exp', ))
def __init__(self, *args, **kwargs): kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'title', 'approximate_length', 'ropecon2018_sessions', 'ropecon2018_characters', 'min_players', 'description', 'content_warnings', 'other_author', 'ropecon2018_signuplist', 'ropecon2018_space_requirements', 'ropecon2018_prop_requirements', 'ropecon2019_blocked_time_slots', 'notes_from_host', Fieldset( _('Whom is the game for?'), 'is_english_ok', 'is_age_restricted', 'is_children_friendly', 'is_beginner_friendly', 'is_family_program', ), ) for field_name, texts in LARP_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[ field_name].help_text = texts self.fields['ropecon2018_sessions'].initial = 2 self.fields['ropecon2018_characters'].initial = 10
def __init__(self, *args, **kwargs): kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'title', 'approximate_length', 'ropecon2018_sessions', 'ropecon2018_characters', 'min_players', 'description', 'content_warnings', 'other_author', 'ropecon2018_signuplist', 'ropecon2018_space_requirements', 'ropecon2018_prop_requirements', 'ropecon2019_blocked_time_slots', 'notes_from_host', Fieldset(_('Whom is the game for?'), 'is_english_ok', 'is_age_restricted', 'is_children_friendly', 'is_beginner_friendly', 'is_family_program', ), ) for field_name, texts in LARP_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[field_name].help_text = texts self.fields['ropecon2018_sessions'].initial = 2 self.fields['ropecon2018_characters'].initial = 10
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'category', 'ropecon2019_gaming_desk_subtype', 'ropecon2021_gamedesk_physical_or_virtual', 'title', 'approximate_length', 'max_players', 'description', 'content_warnings', 'rpg_system', 'ropecon2020_materials_language', 'ropecon2021_gamedesk_materials', 'ropecon2018_signuplist', 'tech_requirements', 'ropecon2021_blocked_time_slots', 'notes_from_host', Fieldset( _('Who is your game programme for?'), 'is_in_english', 'is_age_restricted', 'ropecon2020_suitable_for_children_under_7', 'ropecon2020_suitable_for_children_aged_7_12', 'ropecon2020_suitable_for_children_aged_12_plus', 'ropecon2020_not_suitable_for_children', 'ropecon2021_programme_for_children', 'is_beginner_friendly', 'ropecon_theme', ), Fieldset( _('Accessibility and inclusivity'), RenderTemplate('ropecon2021_gamedesk_form_accessibility.html'), 'ropecon2021_accessibility_loud_sounds', 'ropecon2021_accessibility_flashing_lights', 'ropecon2021_accessibility_strong_smells', 'ropecon2021_accessibility_irritate_skin', 'ropecon2021_accessibility_physical_contact', 'ropecon2021_accessibility_low_lightning', 'ropecon2021_accessibility_moving_around', 'ropecon2021_accessibility_video', 'ropecon2021_accessibility_recording', 'ropecon2021_accessibility_text', 'ropecon2021_accessibility_colourblind', 'ropecon2021_accessibility_inaccessibility', ), ) for field_name, texts in GAMING_DESK_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[ field_name].help_text = texts self.fields['category'].queryset = Category.objects.filter( event=event, slug__in=( 'miniwar', 'card', 'board', 'exp', )) self.fields['ropecon2019_gaming_desk_subtype'].required = True self.fields['ropecon2021_gamedesk_physical_or_virtual'].required = True self.fields['max_players'].initial = 3 self.fields['max_players'].required = True self.fields['description'].required = True self.fields["ropecon2018_signuplist"].choices = [ ('none', _('No sign-up')), ('itse', _('Sign-up in advance')), ('tiski', _('Sign-up at the Gaming Desk')), ] self.fields['ropecon2021_blocked_time_slots'].required = True
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'title', 'description', 'content_warnings', 'category', 'approximate_length', 'is_english_ok', 'ropecon2021_gamedesk_physical_or_virtual', 'is_beginner_friendly', 'ropecon2020_suitable_for_children_under_7', 'ropecon2020_suitable_for_children_aged_7_12', 'ropecon2020_suitable_for_children_aged_12_plus', 'ropecon2020_not_suitable_for_children', 'ropecon2021_programme_for_children', 'is_age_restricted', 'is_inaccessible', 'ropecon_theme', 'ropecon2021_rpg_clarifications', 'max_players', 'computer', 'tech_requirements', 'ropecon2021_blocked_time_slots', 'notes_from_host', 'is_available_for_panel', 'field_of_expertise', 'video_permission', Fieldset( _('Accessibility and inclusivity'), RenderTemplate( 'ropecon2021_programme_form_accessibility.html'), 'ropecon2021_accessibility_loud_sounds', 'ropecon2021_accessibility_flashing_lights', 'ropecon2021_accessibility_strong_smells', 'ropecon2021_accessibility_irritate_skin', 'ropecon2021_accessibility_physical_contact', 'ropecon2021_accessibility_low_lightning', 'ropecon2021_accessibility_moving_around', 'ropecon2021_accessibility_video', 'ropecon2021_accessibility_recording', 'ropecon2021_accessibility_text', 'ropecon2021_accessibility_colourblind', 'ropecon2021_accessibility_inaccessibility', ), ) for field_name, texts in PROGRAMME_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[ field_name].help_text = texts self.fields['description'].required = True self.fields['approximate_length'].required = True self.fields['video_permission'].required = True self.fields['approximate_length'].initial = 105 self.fields['category'].queryset = Category.objects.filter( event=event, slug__in=( 'pres', 'panel', 'disc', 'craft', 'mini', 'music', 'workshop', 'dance', 'other', )) self.fields['computer'].choices = [ ('con', _('Laptop provided by Ropecon')), ('pc', _('Own laptop (PC)')), ('mac', _('Own laptop (Mac)')), ('none', _('No laptop is needed in my programme')), ] self.fields['ropecon2021_blocked_time_slots'].required = True self.fields['video_permission'].choices = [ ('public', _('I give permission to record and publish my programme')), ('forbidden', _('I do not give permission to record or publish my programme')), ] self.fields['video_permission'].blank = True
def __init__(self, *args, **kwargs): kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'title', 'other_author', 'approximate_length', 'ropecon2018_sessions', 'ropecon2018_characters', 'min_players', 'description', 'content_warnings', Fieldset( _('Who is your larp for?'), 'is_in_english', 'is_age_restricted', 'ropecon2020_suitable_for_children_under_7', 'ropecon2020_suitable_for_children_aged_7_12', 'ropecon2020_suitable_for_children_aged_12_plus', 'ropecon2020_not_suitable_for_children', 'ropecon2021_programme_for_children', 'is_beginner_friendly', 'ropecon_theme', 'ropecon2021_rpg_clarifications', ), Fieldset( _('Practicalities'), 'ropecon2021_larp_physical_or_virtual', 'ropecon2018_signuplist', 'ropecon2018_space_requirements', 'ropecon2018_prop_requirements', 'ropecon2021_blocked_time_slots', ), Fieldset( _('Accessibility and inclusivity'), RenderTemplate('ropecon2021_larp_form_accessibility.html'), 'ropecon2021_accessibility_loud_sounds', 'ropecon2021_accessibility_flashing_lights', 'ropecon2021_accessibility_strong_smells', 'ropecon2021_accessibility_irritate_skin', 'ropecon2021_accessibility_physical_contact', 'ropecon2021_accessibility_low_lightning', 'ropecon2021_accessibility_moving_around', 'ropecon2021_accessibility_video', 'ropecon2021_accessibility_recording', 'ropecon2021_accessibility_text', 'ropecon2021_accessibility_colourblind', ), Fieldset( _('Other'), 'notes_from_host', ), ) for field_name, texts in LARP_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[ field_name].help_text = texts self.fields['ropecon2018_sessions'].initial = 2 self.fields['ropecon2018_characters'].initial = 10 self.fields['min_players'].required = True self.fields['min_players'].initial = 6 self.fields['description'].required = True self.fields["ropecon2018_signuplist"].choices = [ ('none', _('No sign-up')), ('tiski', _('The Larp Desk will make the sign-up list')), ('itse', _('I will make my own sign-up list')), ] self.fields["ropecon2018_signuplist"].choices = [ (k, t) for (k, t) in self.fields["ropecon2018_signuplist"].choices if k != 'none' ] self.fields['ropecon2021_blocked_time_slots'].required = True
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False
def __init__(self, *args, **kwargs): event = kwargs.pop('event') admin = kwargs.pop('admin') if 'admin' in kwargs else False super().__init__(*args, **kwargs) self.helper = horizontal_form_helper() self.helper.form_tag = False self.helper.layout = Layout( 'title', 'rpg_system', 'approximate_length', 'min_players', 'max_players', 'is_revolving_door', Fieldset( _('Who is your game for?'), 'is_in_english', 'is_age_restricted', 'ropecon2020_suitable_for_children_under_7', 'ropecon2020_suitable_for_children_aged_7_12', 'ropecon2020_suitable_for_children_aged_12_plus', 'ropecon2020_not_suitable_for_children', 'ropecon2021_programme_for_children', 'is_beginner_friendly', 'ropecon_theme', 'ropecon2021_rpg_clarifications', ), Fieldset( _('Playstyle and mechanics (Choose any which apply)'), 'ropecon2018_style_serious', 'ropecon2018_style_light', 'ropecon2018_style_rules_heavy', 'ropecon2018_style_rules_light', 'ropecon2018_style_story_driven', 'ropecon2018_style_character_driven', 'ropecon2018_style_combat_driven', 'description', 'three_word_description', 'ropecon2021_blocked_time_slots', ), Fieldset( _('Accessibility and inclusivity'), RenderTemplate('ropecon2021_rpg_form_accessibility.html'), 'ropecon2021_accessibility_loud_sounds', 'ropecon2021_accessibility_flashing_lights', 'ropecon2021_accessibility_strong_smells', 'ropecon2021_accessibility_irritate_skin', 'ropecon2021_accessibility_physical_contact', 'ropecon2021_accessibility_low_lightning', 'ropecon2021_accessibility_moving_around', 'ropecon2021_accessibility_video', 'ropecon2021_accessibility_recording', 'ropecon2021_accessibility_text', 'ropecon2021_accessibility_colourblind', ), Fieldset( _('Other questions'), 'notes_from_host', 'ropecon2021_rpg_physical_or_virtual', ), ) for field_name, texts in RPG_FORM_FIELD_TEXTS.items(): self.fields[field_name].label, self.fields[ field_name].help_text = texts self.fields['rpg_system'].required = True self.fields['approximate_length'].required = True self.fields['min_players'].required = True self.fields['min_players'].initial = 2 self.fields['max_players'].required = True self.fields['max_players'].initial = 5 self.fields['description'].required = True self.fields['three_word_description'].required = True self.fields['ropecon2021_blocked_time_slots'].required = True