-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #214 from fga-gpp-mds/feature/US85-request-appoint…
…ment Feature/us85 request appointment
- Loading branch information
Showing
24 changed files
with
1,307 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
from django.contrib import admin | ||
from .models.model_appointment import Appointment | ||
from .models.model_request import AppointmentRequest | ||
|
||
# Register your models here. | ||
admin.site.register(Appointment) | ||
admin.site.register(AppointmentRequest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from django import forms | ||
from drdown.users.models.model_health_team import HealthTeam | ||
from drdown.users.models.model_patient import Patient | ||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
|
||
class RequestSearchForm(forms.Form): | ||
search_speciality = forms.CharField( | ||
required=False, | ||
label=_('Speciality'), | ||
widget=forms.TextInput( | ||
attrs={'placeholder': _('Speciality')} | ||
) | ||
) | ||
|
||
search_status = forms.CharField( | ||
required=False, | ||
label=_('Status'), | ||
widget=forms.TextInput( | ||
attrs={'placeholder': _('Status')} | ||
) | ||
) | ||
|
||
search_doctor = forms.ModelChoiceField( | ||
queryset=HealthTeam.objects.all(), | ||
required=False, | ||
label=_('Doctor') | ||
) | ||
|
||
search_patient = forms.ModelChoiceField( | ||
queryset=Patient.objects.all(), | ||
required=False, | ||
label=_('Patient') | ||
) |
Oops, something went wrong.