{% extends "appointment/layout.html" %} {% load i18n %} {% load l10n %} {% load static %} {% block customCSS %} {% endblock %} {% block title %} {{ page_title|default:staff_member.get_staff_member_name }} {% endblock %} {% block description %} {{ page_description|default:staff_member.get_staff_member_name }} {% endblock %} {% block djappt_content %} {% translate "Confirm Deletion" as modal_title %} {% translate "Delete" as delete_btn_modal %} {% translate "Edit" as edit_label %} {% translate "Delete" as delete_label %} {% translate "Add" as add_label %}
{% if messages %}
{% for message in messages %} {% endfor %}
{% endif %} {% if superuser %} {% trans 'Back to the staff' %} {% endif %} {# Who: name and email, then the appointment settings at a glance #}
{% with name=staff_member.get_staff_member_name|default:user.get_username %}

{% trans 'Staff Member' %}

{{ name }}

{{ user.email|default:"N/A" }}

{% endwith %} {% trans 'Personal Information' %}

{% trans 'Appointment Information' %}

{% if staff_member %} {{ edit_label }} {% else %} {{ add_label }} {% endif %}
{% if staff_member %} {# Each setting's full explanation is on the edit form; here it shows on hover #}
{% trans 'Slot duration' %}
{{ staff_member.get_slot_duration_text }}
{% trans 'General start time' %}
{{ staff_member.get_lead_time|default:"N/A" }}
{% trans 'General end time' %}
{{ staff_member.get_finish_time|default:"N/A" }}
{% trans 'Weekend days you work' %}
{{ staff_member.get_weekend_days_worked_text }}
{% trans 'Appointment buffer time' %}
{{ staff_member.get_appointment_buffer_time_text }}
{% else %}

{% trans 'No staff member information yet for this user' %}.

{% endif %}
{# Working hours: the week, each day's hours drawn on a shared time axis #}

{% trans 'Working Hours' %}

{{ add_label }}

{% trans "Note: If you are a staff member, your working hours will be used to determine when you are available for appointments." %}

{% translate "Are you sure you want to delete this working hours?" as w_modal_message %}
    {% for day in working_week.days %} {% with working_hour=day.working_hours %}
  • {{ day.name }} {% if working_hour %}{{ working_hour.start_time }} – {{ working_hour.end_time }}{% else %}{% trans 'Off' context 'day without working hours' %}{% endif %}
    {% if working_hour %} {% if superuser %} {% url 'appointment:update_working_hours_id' working_hours_id=working_hour.id staff_user_id=user.id as edit_url %} {% url 'appointment:delete_working_hours_id' working_hours_id=working_hour.id staff_user_id=user.id as delete_url %} {% else %} {% url 'appointment:update_working_hours' working_hours_id=working_hour.id as edit_url %} {% url 'appointment:delete_working_hours' working_hours_id=working_hour.id as delete_url %} {% endif %} {% endif %}
  • {% endwith %} {% endfor %}
{% if not working_hours %}

{% trans 'No working hours have been set' %}.

{% endif %}
{# Services: changed through the appointment information above #}

{% trans 'Service Offered' %}

{{ service_msg }} {% if not superuser %} {% trans "To add/modify a new service, make a request to an admin." %} {% trans "Changes made in one service will change it for every staff member." %} {% endif %}

    {% for service in services_offered %}
  • {{ service.name }}

    {% if service.description %}

    {{ service.description }}

    {% endif %}
    {{ service.get_price_text }} {{ service.get_duration }} {% if service.accepts_down_payment %} {% trans 'Down payment' %}: {{ service.get_down_payment_text }} {% endif %}
  • {% empty %}
  • {% trans 'No service offered yet' %}.

  • {% endfor %}
{# Days off: whole days, with a calendar badge; past ones are greyed #}

{% trans 'Days Off' %}

{{ add_label }}

{% trans "Days off are days you're not working, you need to set them for holidays as well so clients don't book you those days." %}

{% translate "Are you sure you want to delete this day off?" as d_modal_message %}
    {% for day_off in days_off %} {% if superuser %} {% url 'appointment:update_day_off_id' day_off_id=day_off.id staff_user_id=user.id as edit_url %} {% url 'appointment:delete_day_off_id' day_off_id=day_off.id staff_user_id=user.id as delete_url %} {% else %} {% url 'appointment:update_day_off' day_off_id=day_off.id as edit_url %} {% url 'appointment:delete_day_off' day_off_id=day_off.id as delete_url %} {% endif %}
  • {{ day_off.start_date }}{% if day_off.end_date != day_off.start_date %} – {{ day_off.end_date }}{% endif %} {% if today and day_off.end_date < today %}{% trans 'Past' %}{% endif %}

    {% if day_off.description %}

    {{ day_off.description }}

    {% endif %}
  • {% empty %}
  • {% trans 'No days off have been set' %}.

  • {% endfor %}
{# Unavailabilities: hours blocked on a given day #}

{% trans 'Unavailabilities' %}

{{ add_label }}

{% trans "Unavailabilities are periods when you're not available on a specific day. Use them to block time slots you don't want to make available." %}

{% translate "Are you sure you want to delete this unavailability?" as u_modal_message %}
    {% for unavailability in unavailabilities %} {% if superuser %} {% url 'appointment:update_unavailability_id' unavailability_id=unavailability.id staff_user_id=user.id as edit_url %} {% url 'appointment:delete_unavailability_id' unavailability_id=unavailability.id staff_user_id=user.id as delete_url %} {% else %} {% url 'appointment:update_unavailability' unavailability_id=unavailability.id as edit_url %} {% url 'appointment:delete_unavailability' unavailability_id=unavailability.id as delete_url %} {% endif %}
  • {{ unavailability.date }} {% if today and unavailability.date < today %}{% trans 'Past' %}{% endif %}

    {{ unavailability.start_time }} – {{ unavailability.end_time }}{% if unavailability.description %} · {{ unavailability.description }}{% endif %}

  • {% empty %}
  • {% trans 'No unavailabilities have been set' %}.

  • {% endfor %}
{% include 'modal/confirm_modal.html' %}
{% endblock %} {% block customJS %} {% endblock %}