Skip to content
Snippets Groups Projects

Resolve "Appointment type list"

Merged Valentin Groues requested to merge 66-appointment-type-list into master
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
  • 0380c48c
    #66 - show appointments types list as checkboxes · 0380c48c
    Valentin Groues authored
+ 4
4
@@ -131,7 +131,7 @@ class AppointmentEditForm(ModelForm):
datetime_when = forms.DateTimeField(label='Appointment on (YYYY-MM-DD HH:MM)',
widget=forms.DateTimeInput(DATETIMEPICKER_DATE_ATTRS)
)
appointment_types = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple,
appointment_types = forms.ModelMultipleChoiceField(required=False, widget=forms.CheckboxSelectMultiple,
queryset=AppointmentType.objects.all())
def __init__(self, *args, **kwargs):
@@ -160,7 +160,7 @@ class AppointmentAddForm(ModelForm):
datetime_when = forms.DateTimeField(label='Appointment on (YYYY-MM-DD HH:MM)',
widget=forms.DateTimeInput(DATETIMEPICKER_DATE_ATTRS)
)
appointment_types = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple,
appointment_types = forms.ModelMultipleChoiceField(required=False, widget=forms.CheckboxSelectMultiple,
queryset=AppointmentType.objects.all())
def __init__(self, *args, **kwargs):
@@ -190,7 +190,7 @@ class VisitDetailForm(ModelForm):
)
post_mail_sent = forms.RadioSelect()
appointment_types = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple,
appointment_types = forms.ModelMultipleChoiceField(required=False, widget=forms.CheckboxSelectMultiple,
queryset=AppointmentType.objects.all())
class Meta:
@@ -206,7 +206,7 @@ class VisitAddForm(ModelForm):
datetime_end = forms.DateField(label="Visit ends on",
widget=forms.TextInput(attrs=DATEPICKER_DATE_ATTRS)
)
appointment_types = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple,
appointment_types = forms.ModelMultipleChoiceField(required=False, widget=forms.CheckboxSelectMultiple,
queryset=AppointmentType.objects.all())
class Meta:
Loading