Skip to content

Commit

Permalink
Merge pull request #214 from fga-gpp-mds/feature/US85-request-appoint…
Browse files Browse the repository at this point in the history
…ment

Feature/us85 request appointment
  • Loading branch information
GeovanaRamos authored May 11, 2018
2 parents 56ec2c9 + 6b0a0a0 commit 3ccb4c4
Show file tree
Hide file tree
Showing 24 changed files with 1,307 additions and 251 deletions.
2 changes: 2 additions & 0 deletions drdown/appointments/admin.py
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)
34 changes: 34 additions & 0 deletions drdown/appointments/forms/requests_form.py
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')
)
Loading

0 comments on commit 3ccb4c4

Please sign in to comment.