Skip to content
Snippets Groups Projects
Commit b08e4034 authored by Carlos Vega's avatar Carlos Vega
Browse files

Avoid possibility to change the worker when adding holidays or extra...

Avoid possibility to change the worker when adding holidays or extra availabilities. Changed the header
parent 963116ab
No related branches found
No related tags found
1 merge request!171Feature/daily availability
......@@ -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),
)
......
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment