Ejemplo n.º 1
0
class RegistrationForm3(forms.ModelForm):
    layout = Layout(Fieldset('Medical details', 'profession', 'country'))

    class Meta:
        model = Doctor
        fields = ('profession', 'country')
        widgets = {'country': CountrySelectWidget()}
Ejemplo n.º 2
0
class DoctorForm(forms.ModelForm):
    layout = Layout(Fieldset('Personal details', 'profession', 'country'))

    class Meta:
        model = Doctor
        fields = ('first_name', 'last_name', 'profession', 'country')
        widgets = {'country': CountrySelectWidget()}
Ejemplo n.º 3
0
class RegistrationForm3(forms.ModelForm):
    country = forms.CharField(label="Country of Practice")
    layout = Layout(Fieldset('Medical details', 'profession', 'country'))

    class Meta:
        model = Doctor
        fields = ('profession', 'country')
Ejemplo n.º 4
0
class DoctorForm(forms.ModelForm):
    layout = Layout(
        Fieldset('Personal details', Row('first_name', 'last_name'),
                 'profession', 'specialization', 'country'))

    class Meta:
        model = Doctor
        fields = ('first_name', 'last_name', 'profession', 'specialization',
                  'country')
Ejemplo n.º 5
0
class ProfileForm(forms.ModelForm):
    layout = Layout(Fieldset('Personal details',
                             Row('first_name', 'middle_name', 'last_name'),
                             Row('gender', 'date_of_birth'), 'about_me', 'mobile_number',
                             ),
                    Fieldset('Professional details',
                             Row('profession', 'specialization'),
                             Row('year_of_first_medical_certification', 'hospital'),
                             Row('country', 'city'), 'work_number',
                             ),
                    'avatar'
                    )

    class Meta:
        model = Doctor
        fields = ('first_name', 'middle_name', 'last_name', 'gender', 'date_of_birth', 'profession',
                  'specialization', 'country', 'city', 'year_of_first_medical_certification', 'mobile_number',
                  'about_me', 'hospital', 'work_number', 'avatar')
Ejemplo n.º 6
0
class DoctorForm(forms.ModelForm):
    country = forms.CharField(label="Country of Practice")
    layout = Layout(Fieldset('Personal details',
                             Row('first_name', 'last_name'),
                             'profession', 'specialization', 'country'
                             ))

    class Meta:
        model = Doctor
        fields = ('first_name', 'last_name', 'profession', 'specialization', 'country')
Ejemplo n.º 7
0
class BidForm(forms.Form):
    username = forms.CharField()
    email = forms.EmailField(label="Email Address")
    password = forms.CharField(widget=forms.PasswordInput)
    password_confirm = forms.CharField(widget=forms.PasswordInput, label="Confirm password")
    first_name = forms.CharField(required=False)
    last_name = forms.CharField(required=False)
    gender = forms.ChoiceField(choices=((None, ''), ('F', 'Female'), ('M', 'Male'), ('O', 'Other')))
    receive_news = forms.BooleanField(required=False, label='I want to receive news and special offers')
    agree_toc = forms.BooleanField(required=True, label='I agree with the Terms and Conditions')

    layout = Layout('username', 'email',
                    Row('password', 'password_confirm'),
                    Fieldset('Pesonal details',
                             Row('first_name', 'last_name'),
                             'gender', 'receive_news', 'agree_toc'))
Ejemplo n.º 8
0
class MedicalCaseForm(forms.ModelForm):
    layout = Layout(
        'title', 'chief_complaint',
        Fieldset(
            'Patient details',
            Row('patient_age', 'patient_gender',
                'patient_country_of_origin'), 'history_of_present_illness',
            'medical_history', 'surgical_history', 'social_history',
            'family_history', 'allergies', 'medications', 'review_of_systems',
            'physical_examination', 'diagnostic_tests', 'any_other_details',
            'medical_case_category'), 'purpose')

    class Meta:
        model = MedicalCase

        fields = ('title', 'chief_complaint', 'patient_age', 'patient_gender',
                  'patient_country_of_origin', 'history_of_present_illness',
                  'medical_history', 'surgical_history', 'social_history',
                  'family_history', 'allergies', 'medications',
                  'review_of_systems', 'physical_examination',
                  'diagnostic_tests', 'any_other_details',
                  'medical_case_category', 'purpose')