{% extends 'base.html.twig' %} {% block body %} {{ block('nav', 'internal/libs/nav.html.twig') }} {{ block('topnav', 'internal/libs/top-nav.html.twig') }} Add Referral Note {{ referral.memberCase.caseName }} {{ form_start(form) }} {{ form_errors(form) }} {% set endDateWarning = '' %} {% if date("+28 days") >= referral.endDate %} {% set endDateWarning = 'bg-gradient-warning' %} {% elseif date("+14 days") >= referral.endDate %} {% set endDateWarning = 'bg-gradient-danger text-white' %} {% endif %} Hours: {{ referral.hours }} / Remaining: {{ referral.getHoursRemaining() }} Expiration Date: {{ referral.endDate|date('M j, Y') }} -- Status -- {% for s in enum('App\\Enums\\NoteStatus').cases() %} {{ s.value|capitalize }} {% endfor %} -- Location -- {% for l in enum('App\\Enums\\NoteLocation').cases() %} {{ l.value }} {% endfor %} -- Method -- {% for m in enum('App\\Enums\\NoteMethod').cases() %} {{ m.name|replace({'_': ' '})|lower|capitalize }} {% endfor %} {{ form_row(form.members, { 'label': 'Members Present', 'label_attr': {'class': ''}, 'attr': {'class': 'form-control'} }) }} Notes Save Note {{ form_end(form) }} {% endblock %}
{{ referral.memberCase.caseName }}