intranet.apps.eighth.forms.admin package¶
Submodules¶
intranet.apps.eighth.forms.admin.activities module¶
- class intranet.apps.eighth.forms.admin.activities.ActivityDisplayField(*args, **kwargs)[source]¶
Bases:
ModelChoiceField
- cancelled_acts: list[EighthActivity] | None = None¶
- class intranet.apps.eighth.forms.admin.activities.ActivityForm(*args, sponsors=None, **kwargs)[source]¶
Bases:
ModelForm
- class Meta[source]¶
Bases:
object
- fields = ['name', 'description', 'sponsors', 'rooms', 'default_capacity', 'id', 'presign', 'one_a_day', 'both_blocks', 'sticky', 'special', 'administrative', 'finance', 'restricted', 'users_allowed', 'groups_allowed', 'users_blacklisted', 'freshmen_allowed', 'sophomores_allowed', 'juniors_allowed', 'seniors_allowed', 'wed_a', 'wed_b', 'fri_a', 'fri_b', 'admin_comments', 'subscriptions_enabled', 'club_sponsors', 'officers', 'subscribers']¶
- model¶
alias of
EighthActivity
- widgets = {'admin_comments': <django.forms.widgets.Textarea object>, 'description': <django.forms.widgets.Textarea object>, 'name': <django.forms.widgets.TextInput object>}¶
- declared_fields = {}¶
- class intranet.apps.eighth.forms.admin.activities.ActivityMultiDisplayField(queryset, **kwargs)[source]¶
Bases:
ModelMultipleChoiceField
- class intranet.apps.eighth.forms.admin.activities.ActivityMultiSelectForm(*args, label='Activities', **kwargs)[source]¶
Bases:
Form
- declared_fields = {'activities': <intranet.apps.eighth.forms.admin.activities.ActivityMultiDisplayField object>}¶
- class intranet.apps.eighth.forms.admin.activities.ActivitySelectionForm(*args, label='Activity', block=None, sponsor=None, include_cancelled=False, **kwargs)[source]¶
Bases:
Form
- declared_fields = {}¶
- class intranet.apps.eighth.forms.admin.activities.HybridActivitySelectionForm(*args, label='Activity', block, **kwargs)[source]¶
Bases:
Form
- declared_fields = {}¶
- class intranet.apps.eighth.forms.admin.activities.QuickActivityForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶
Bases:
ModelForm
- declared_fields = {}¶
intranet.apps.eighth.forms.admin.blocks module¶
- class intranet.apps.eighth.forms.admin.blocks.BlockDisplayField(queryset, *, empty_label='---------', required=True, widget=None, label=None, initial=None, help_text='', to_field_name=None, limit_choices_to=None, blank=False, **kwargs)[source]¶
Bases:
ModelChoiceField
- class intranet.apps.eighth.forms.admin.blocks.BlockForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶
Bases:
ModelForm
- class Meta[source]¶
Bases:
object
- fields = ['date', 'block_letter', 'locked', 'signup_time', 'comments']¶
- model¶
alias of
EighthBlock
- declared_fields = {'block_letter': <django.forms.fields.CharField object>}¶
- class intranet.apps.eighth.forms.admin.blocks.BlockSelectionForm(*args, label='Block', exclude_before_date=None, only_locked=False, **kwargs)[source]¶
Bases:
Form
- declared_fields = {}¶
- class intranet.apps.eighth.forms.admin.blocks.HybridBlockSelectionForm(*args, label='Block', exclude_before_date=None, only_locked=False, **kwargs)[source]¶
Bases:
Form
- declared_fields = {}¶
- class intranet.apps.eighth.forms.admin.blocks.QuickBlockForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶
Bases:
ModelForm
- declared_fields = {'block_letter': <django.forms.fields.CharField object>}¶
intranet.apps.eighth.forms.admin.general module¶
- class intranet.apps.eighth.forms.admin.general.StartDateForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶
Bases:
Form
- declared_fields = {'date': <django.forms.fields.DateField object>}¶
intranet.apps.eighth.forms.admin.groups module¶
- class intranet.apps.eighth.forms.admin.groups.GroupForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶
Bases:
ModelForm
- declared_fields = {'student_visible': <django.forms.fields.BooleanField object>}¶
- class intranet.apps.eighth.forms.admin.groups.QuickGroupForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶
Bases:
ModelForm
- declared_fields = {}¶
- class intranet.apps.eighth.forms.admin.groups.UploadGroupForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶
Bases:
Form
- declared_fields = {'file': <django.forms.fields.FileField object>}¶
intranet.apps.eighth.forms.admin.rooms module¶
- class intranet.apps.eighth.forms.admin.rooms.RoomForm(*args, label='Activities', **kwargs)[source]¶
Bases:
ModelForm
- class Meta[source]¶
Bases:
object
- fields = ['name', 'capacity', 'available_for_eighth']¶
- model¶
alias of
EighthRoom
- widgets = {'capacity': <django.forms.widgets.TextInput object>}¶
- declared_fields = {'activities': <intranet.apps.eighth.forms.admin.activities.ActivityMultiDisplayField object>}¶
intranet.apps.eighth.forms.admin.scheduling module¶
- class intranet.apps.eighth.forms.admin.scheduling.ScheduledActivityForm(*args, **kwargs)[source]¶
Bases:
ModelForm
Represents a row in the table activity scheduling admin page.
- class Meta[source]¶
Bases:
object
- fields = ['cancelled', 'scheduled', 'unschedule', 'block', 'activity', 'rooms', 'capacity', 'sponsors', 'title', 'special', 'administrative', 'restricted', 'sticky', 'both_blocks', 'comments', 'admin_comments']¶
- model¶
alias of
EighthScheduledActivity
- widgets = {'admin_comments': <django.forms.widgets.Textarea object>, 'capacity': <django.forms.widgets.TextInput object>, 'comments': <django.forms.widgets.Textarea object>, 'title': <django.forms.widgets.TextInput object>}¶
- declared_fields = {'scheduled': <django.forms.fields.BooleanField object>, 'unschedule': <django.forms.fields.BooleanField object>}¶
intranet.apps.eighth.forms.admin.sponsors module¶
- class intranet.apps.eighth.forms.admin.sponsors.AutoCreateUserField(*, choices=(), **kwargs)[source]¶
Bases:
ChoiceField
- widget¶
alias of
TextInput
- class intranet.apps.eighth.forms.admin.sponsors.SponsorForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶
Bases:
ModelForm
- class Meta[source]¶
Bases:
object
- fields = ['first_name', 'last_name', 'user', 'department', 'full_time', 'online_attendance', 'contracted_eighth', 'show_full_name']¶
- model¶
alias of
EighthSponsor
- declared_fields = {'user': <intranet.apps.eighth.forms.admin.sponsors.AutoCreateUserField object>}¶