diff --git a/smash/web/forms/forms.py b/smash/web/forms/forms.py index b426058577ffc456434243d69c8e61e94adcf8ac..465df2f4b8321f310c9bdaaba81627bb78dd642a 100644 --- a/smash/web/forms/forms.py +++ b/smash/web/forms/forms.py @@ -204,6 +204,10 @@ class FlyingTeamEditForm(ModelForm): class HolidayAddForm(ModelForm): + def __init__(self, *args, **kwargs): + super(HolidayAddForm, self).__init__(*args, **kwargs) + self.fields['person'].disabled = True + datetime_start = forms.DateTimeField(widget=forms.DateTimeInput(DATETIMEPICKER_DATE_ATTRS), initial=datetime.datetime.now().replace(hour=8, minute=0), ) diff --git a/smash/web/templates/doctors/add_holiday.html b/smash/web/templates/doctors/add_holiday.html index 5260a93c1b3424ded48a7158cb75fb8c6cafa455..4a05cfda35db0ed77a11100c16a0946969085948 100644 --- a/smash/web/templates/doctors/add_holiday.html +++ b/smash/web/templates/doctors/add_holiday.html @@ -6,10 +6,15 @@ {{ block.super }} {% include "includes/datetimepicker.css.html" %} <link rel="stylesheet" href="{% static 'AdminLTE/plugins/awesomplete/awesomplete.css' %}"/> + <style type="text/css"> + .doctor_name { + border-bottom: black 1px solid; + } + </style> {% endblock styles %} {% block ui_active_tab %}'workers'{% endblock ui_active_tab %} -{% block page_header %}New worker holiday or extra availability{% endblock page_header %} +{% block page_header %}Create new holiday or extra availability for <span class="doctor_name">{{ doctor_name }}</span>{% endblock page_header %} {% block page_description %}{% endblock page_description %} {% block title %}{{ block.super }} - Add availability{% endblock %}