{% extends "::base.html.twig" %} {% form_theme form inline_form_theme %} {% block title "List Of Work Plans" %} {% block content %} {{ form(form) }}
List Of Work Plans
{% for wplan in pagination %} {% set id = wplan.getId() %} {% if wpln is not null %} {% set selid = wpln.getId() %} {% else %} {% set selid = 0 %} {% endif %} {{ wplan.getName() }}
{{ wplan.getStartsOn|date(date_format) }} to {{ wplan.getEndsOn|date(date_format) }}
{% else %} There are no work plans under this unit.
Create {% endfor %}
{{ knp_pagination_render(pagination) }}
Work Plan Details
{% if wpln is not null %} {% set id = wpln.getId() %} {{ wpln.getName() }}
{% if not wpln.isClosed() %} Edit Delete Close {% else %} Reopen {% endif %} {% if partOfTeam %} {% endif %}
WorkPlan Name{{ wpln.getName() }}
Start Date {{ wpln.getStartsOn|date(date_format) }}
End Date {{ wpln.getEndsOn|date(date_format) }}
Budget{{ wpln.getOrganizationCurrency() }} {{ wpln.getBudget()|number_format(2, '.', ',') }}
Status{{ wpln.getStatusLabel() }}
Are Field Reports required by default?{{ wpln.getDefaultFieldReportRequirementLabel() }}
Max Number of Pending Field Reports allowed{{ wpln.maxPendingFieldReports }}
Max Number of Pending Accountabilities allowed{{ wpln.maxPendingAccs }}
Team {% for member in team %} {{ member.member.fullname }}
{% endfor %}
{% if not wpln.isClosed() %} {{ include('AlsuiteProjectBundle:WorkPlan:del.html.twig', {'id': id, 'action': 'Delete', 'object': 'Work Plan', 'route': path('wplan_del', {'id': id})}, with_context = false) }} {{ include('AlsuiteProjectBundle:WorkPlan:close.html.twig', {'id': id, 'action': 'Close', 'object': 'Work Plan', 'modal': 'close', 'route': path('wplan_close', {'id': id})}, with_context = false) }} {% else %} {{ include('AlsuiteProjectBundle:WorkPlan:open.html.twig', {'id': id, 'action': 'Open', 'object': 'Work Plan', 'modal': 'open', 'route': path('wplan_open', {'id': id})}, with_context = false) }} {% endif %} {% else %} Please click on a workplan in the left panel to view its details here. {% endif %}
{% endblock %}