Beispiel #1
0
 def __init__(self, *args, **kwargs):
     super(AppointmentForm, self).__init__(*args, **kwargs)
     self.helper = FormHelper()
     self.helper.form_class = 'form-horizontal'
     self.helper.label_class = 'col-lg-2'
     self.helper.field_class = 'col-lg-8'
     self.helper.layout = Layout(
         Fieldset(
             'Appointment',
             'appointment_datetime',
             'appointment_duration',
             'study',
             'room',
             'run_by',
             'status_type',
             Field('child', type='hidden'),
         ),
         Fieldset(
             'Reminder',
             'reminder_made_type',
             'reminder_datetime',
             'confirmation_email_type',
         ),
         Fieldset(
             'Misc',
             'parking_type',
             'parking_note',
             'babysitter_type',
             'notes',
         ),
         SubmitCommonLayout(),
     )
     self.helper.form_tag = True
Beispiel #2
0
 def __init__(self, *args, **kwargs):
     super(AddressForm, self).__init__(*args, **kwargs)
     self.helper = FormHelper()
     self.helper.form_class = 'form-horizontal'
     self.helper.label_class = 'col-lg-2'
     self.helper.field_class = 'col-lg-8'
     self.helper.layout = Layout(
         Fieldset(
             'Address Fields',
             'address1',
             'address2',
             'city',
             'state',
             'zipcode',
             'homephone',
             'preferred_contact_type',
         ),
         Fieldset(
             'Misc',
             'lab_reference',
             'lab_reference_other',
             'notes'
         ),
         SubmitCommonLayout()
     )
     self.helper.form_tag = True
Beispiel #3
0
    def __init__(self, *args, **kwargs):
        super(StudyForm, self).__init__(*args, **kwargs)

        self.helper = FormHelper()
        self.helper.form_class = 'form-horizontal'
        self.helper.label_class = 'col-lg-2'
        self.helper.field_class = 'col-lg-8'
        self.helper.layout = Layout(
            Fieldset('Study', 'name_text', 'description', 'pi', 'start_date',
                     'end_date'),
            Fieldset('Qualifications', 'age_min', 'age_max',
                     'percent_english_heard', 'allowed_disabilities',
                     'born_early', 'qualifications'), SubmitCommonLayout())

        self.helper.form_tag = True
Beispiel #4
0
 def __init__(self, *args, **kwargs):
     super(SessionForm, self).__init__(*args, **kwargs)
     self.helper = FormHelper()
     self.helper.form_class = 'form-horizontal'
     self.helper.label_class = 'col-lg-2'
     self.helper.field_class = 'col-lg-8'
     self.helper.layout = Layout(
         Fieldset(
             'Session Fields',
             'session_date',
             'staff',
             # 'study',
             Field('study', type='hidden'),
             Field('child', type='hidden')),
         SubmitCommonLayout())
     self.helper.form_tag = True
Beispiel #5
0
 def __init__(self, *args, **kwargs):
     super(LanguageForm, self).__init__(*args, **kwargs)
     self.helper = FormHelper()
     self.helper.form_class = 'form-horizontal'
     self.helper.label_class = 'col-lg-2'
     self.helper.field_class = 'col-lg-8'
     self.helper.layout = Layout(
        Fieldset(
             'Language Fields',
             'name',
             'percent',
             Field('child', type='hidden')
         ),
         SubmitCommonLayout()
     )
     self.helper.form_tag = True
Beispiel #6
0
 def __init__(self, *args, **kwargs):
     super(ChildForm, self).__init__(*args, **kwargs)
     self.helper = FormHelper()
     self.helper.form_class = 'form-horizontal'
     self.helper.label_class = 'col-lg-2'
     self.helper.field_class = 'col-lg-8'
     self.helper.layout = Layout(
         Fieldset(
             'ID',
             PrependedText('child_id', 'ID'),
             PrependedText('babylab_id', 'B'),
             PrependedText('kid_neurolab_id', 'K'),
         ),
         Fieldset(
             'Demographics',
             'name_first_text',
             'name_last_text',
             'gender_type',
             'dob_date',
             UneditableField('age'),
             'ethnicity',
             'race',
             Field('family', type='hidden'),
         ),
         Fieldset(
             'Medical',
             'handedness',
             'fmri',
             'fmri_date',
             'dob_early',
             'disability',
             'disability_notes',
         ),
         Fieldset(
             'Misc',
             'breastfed',
             'breastfeeding_duration',
             'bottle_fed',
             'notes',
         ),
         SubmitCommonLayout()
     )
     self.helper.form_tag = True
Beispiel #7
0
 def __init__(self, *args, **kwargs):
     super(ContactForm, self).__init__(*args, **kwargs)
     self.helper = FormHelper()
     self.helper.form_class = 'form-horizontal'
     self.helper.label_class = 'col-lg-2'
     self.helper.field_class = 'col-lg-8'
     self.helper.layout = Layout(
         Fieldset(
             'Contact Fields',
             'contact_datetime',
             'contact_mode_type',
             'contact_result_type',
             'study_contacted_for',
             'staff',
             'notes',
             Field('child', type='hidden'),
         ),
         SubmitCommonLayout(),
     )
     self.helper.form_tag = True
Beispiel #8
0
 def __init__(self, *args, **kwargs):
     super(ParentForm, self).__init__(*args, **kwargs)
     self.helper = FormHelper()
     self.helper.form_class = 'form-horizontal'
     self.helper.label_class = 'col-lg-2'
     self.helper.field_class = 'col-lg-8'
     self.helper.layout = Layout(
        Fieldset(
             'Parent Fields',
             'name_first_text',
             'name_last_text',
             'guardian_type',
             'workphone',
             'cellphone',
             'email',
             Field('family', type='hidden')
         ),
         SubmitCommonLayout()
     )
     self.helper.form_tag = True