{% extends "::base.html.twig" %} {% block title "List Of WorkPlan Activities" %} {% block newStyles %} {% endblock %} {% block content %} {{ include(workplan_links, {'show_search': false}, with_context = false) }} {% set AP = constant('\\Alsuite\\ProjectBundle\\Entity\\ApprovalLevel::AP') %} {% set REQN = constant('\\Alsuite\\ProjectBundle\\Entity\\ApprovalLevel::REQN') %} {% set FR = constant('\\Alsuite\\ProjectBundle\\Entity\\ApprovalLevel::FR') %} {% set OPEN = constant('\\Alsuite\\ProjectBundle\\Entity\\Tactic::OPEN') %} {% set FILED = constant('\\Alsuite\\ProjectBundle\\Entity\\Tactic::FILED') %} {% set DONE = constant('\\Alsuite\\ProjectBundle\\Entity\\Tactic::DONE') %} {% set DELETED = constant('\\Alsuite\\ProjectBundle\\Entity\\Tactic::DELETED') %}
List Of Activities
{% for tactic in pagination %} {% set id = tactic.getId() %} {% if activity is not null %} {% set selid = activity.getId() %} {% else %} {% set selid = 0 %} {% endif %} {{ tactic.getSerial() }}
{{ tactic.getTitle() }}
{{ currency }} {{ tactic.getBudget()|number_format(2, '.', ',') }}
{{ tactic.getStatusLabel() }}
{% else %} There are no activities under the selected criteria.
Create {% endfor %}
{{ knp_pagination_render(pagination) }}
Activity Details
{% if activity is not null %} {% set id = activity.getId() %}
{{ activity.getSerial() }}
{{ activity.getTitle() }}
{% set status = activity.getStatus() %} {% if status != DELETED %} {% if not activity.requisitionIsApproved() and not activity.isDone() %} Edit {% endif %} {% if not activity.activityPlanIsApproved() and not activity.isDone() %} Delete {% if status == OPEN %} Mark As Filed {% endif %} {% endif %} {% if status == FILED %} {% if activity.getBudget() > 0 and activity.payments is not null %} Mark As Executed {% elseif activity.getBudget() == 0 %} Mark As Executed {% endif %} {% endif %} {% if status == DONE %} {% if not activity.activityPlanIsApproved() %} Mark As Open Mark As Filed {% else %} Reverse Status to Filed {% endif %} {% endif %} {% endif %} Details Document {# Purchase Document #}
{{ include('AlsuiteProjectBundle:Target:targetDetails.html.twig', {'target': activity.getTarget(), 'spent': spent, 'committed': committed}, with_context = false) }} {{ include(tactic_details, {'id': id, 'tactic': activity, 'AP': AP, 'REQN': REQN, 'FR': FR, 'currency': currency}, with_context = false) }}
{#
{{ include('AlsuiteProjectBundle:Target:targetDetails.html.twig', {'target': activity.getTarget(), 'spent': spent}, with_context = false) }}
#}
{% if not activity.requisitionIsApproved() %} Add/Edit {# if activity.numOfReqnLines() > 0 %} Edit All {% endif #} {% endif %} {# if activity.fundsHaveBeenReleased() and activity.isDone() and not activity.isAccountedFor() %} {% endif #}
{% if activity.requisitionIsApproved %} {% set rdel = 0 %} {% else %} {% set rdel = 1 %} {% endif %} {{ include(reqn_lines, {'id': id, 'tactic': activity, 'level': null, 'del': rdel, 'currency': currency}, with_context = false) }}
{% if activity.activityPlanIsApproved() %} {{ include(booking_details, {'id': id, 'tactic': activity, 'edit_booking': 0, 'currency': currency}, with_context = false) }} {% else %}
The Booking process is not yet started because the AP is not yet approved.
{% endif %}
{% if activity.fundsHaveBeenReleased() or activity.payments is not null %} {{ include(accountability, {'id': id, 'tactic': activity, 'level': null, 'currency': currency, 'mng_acc': 0}, with_context = false) }} {% else %}
Accountability can only be filed when funds have been released and the AP marked as Done.
{% endif %}
{% if activity.fundsHaveBeenReleased() or activity.payments is not null %} {{ include(settlements, {'id': id, 'tactic': activity, 'level': null, 'del': rdel, 'currency': currency}, with_context = false) }} {% else %}
The Cash Returns section is only available when funds were released and the AP marked as Done.
{% endif %}
{% if not activity.requisitionIsApproved() and not activity.isDone() %} Create Planned {% endif %} {% if activity.isDone() and not activity.fieldReportIsApproved() %} {% if activity.numOfIndicators() > 0 %} Edit Actual {% endif %} Record Progress {% endif %}
{{ include(tactic_indicators, {'id': id, 'activity': activity, 'mng_indicators': 1}, with_context = false) }}
Upload Other Docs {% if not activity.isAccountedFor() %} Upload Acc Upload Acc per Reqn Line {% endif %}
{{ include(tactic_documents, {'id': id, 'tactic': activity, 'mng_upload': 1}) }}
{{ include(tactic_comments, {'id': id, 'tactic': activity, 'level': null, 'mng_comments': 1}, with_context = false) }}
{% if not activity.isDone() %} Assign/Edit HR {% endif %}
{{ include(implementers, {'id': id, 'tactic': activity}, with_context = false) }}
{{ include(tactic_approvals, {'id': id, 'tactic': activity, 'instance': AP, 'label': 'AP', 'approve': 0}, with_context = false) }} {{ include(tactic_approvals, {'id': id, 'tactic': activity, 'instance': REQN, 'label': 'REQN', 'approve': 0}, with_context = false) }} {% if activity.fieldReportIsRequired() and activity.fieldReportIsFiled() %} {{ include(tactic_approvals, {'id': id, 'tactic': activity, 'instance': FR, 'label': 'FR', 'approve': 0}, with_context = false) }} {% endif %}
{% if activity.isDone() and activity.fieldReportIsRequired() %}
{% if not activity.fieldReportIsApproved %} Edit {% if activity.getFieldReportStatus() == OPEN %} Mark As Filed {% endif %} {% endif %}
{{ include(report_details, {'id': id, 'tactic': activity}, with_context = false) }} {% else %}
In order to access the Field Report functions, a report should be requested for the activity and the AP must be marked as Done.
{% endif %}
{{ include(tactic_trail, {'id': id, 'tactic': activity}, with_context = false) }}
{{ include('AlsuiteProjectBundle:Tactic:del.html.twig', {'id': id, 'modal': 'delTactic', 'object': 'Activity', 'route': path('tactic_del', {'id': id})}, with_context = false) }} {{ include('AlsuiteProjectBundle:Tactic:open.html.twig', {'id': id, 'modal': 'tacticOpen', 'object': 'Activity', 'action': 'Mark As OPEN', 'route': path('tactic_markas_open', {'tactic': id})}, with_context = false) }} {{ include('AlsuiteProjectBundle:Tactic:file.html.twig', {'id': id, 'modal': 'tacticFiled', 'object': 'Activity', 'action': 'Mark As FILED', 'route': path('tactic_markas_filed', {'tactic': id})}, with_context = false) }} {{ include('AlsuiteProjectBundle:Tactic:done.html.twig', {'id': id, 'modal': 'tacticDone', 'object': 'Activity', 'action': 'Mark As EXECUTED', 'route': path('tactic_markas_executed', {'tactic': id})}, with_context = false) }} {% if activity.isDone() and activity.fieldReportIsRequired and activity.fieldReportStatus() == OPEN %} {{ include('AlsuiteProjectBundle:Tactic:fileFR.html.twig', {'id': id, 'modal': 'fileFR', 'object': 'Field Report', 'action': 'Mark As FILED', 'route': path('file_report', {'id': id})}, with_context = false) }} {% endif %}
{% else %} Please click on an activity in the left panel to view its details here. {% endif %}
{% endblock %} {% block javascripts %} {% endblock %}