{% extends "::base.html.twig" %} {% block title "List Of Activities under Target" %} {% block content %} {{ include(workplan_links, {'show_search': false}, with_context = false) }} {#{{ render(controller('AlsuiteProjectBundle:Tactic:list')) }}#} {% 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') %}
List Of Activities under Target
{% for tactic in pagination %} {% set id = tactic.getId() %} {% if act is not null %} {% set selid = act.getId() %} {% else %} {% set selid = 0 %} {% endif %} {{ tactic.getSerial() }}
{{ tactic.getTitle() }}
{{ currency }} {{ tactic.getBudget()|number_format(2, '.', ',') }}
{% else %} There are no activities under this Target.
{# Create #} {% endfor %}
{{ knp_pagination_render(pagination) }}
Activity Details
{% if act is not null %} {% set id = act.getId() %} {{ act.getTitle() }}
{% set status = act.getStatus() %} {% if not act.requisitionIsApproved() and not act.isDone() %} Edit {% endif %} {% if not act.activityPlanIsApproved() and not act.isDone() %} Delete {% if status == OPEN %} Mark As Filed {% endif %} {% endif %} {% if status == FILED %} Mark As Executed {% elseif status == DONE %} {% if not act.activityPlanIsApproved() %} Mark As Open Mark As Filed {% else %} Reverse Status to Filed {% endif %} {% endif %} View in PDF
{{ include(tactic_details, {'id': id, 'tactic': act, 'AP': AP, 'REQN': REQN, 'FR': FR, 'currency': currency}, with_context = false) }}
{{ include('AlsuiteProjectBundle:Target:targetDetails.html.twig', {'target': act.getTarget()}, with_context = false) }}
{% if not act.requisitionIsApproved() %} Create {% if act.numOfReqnLines() > 0 %} Edit All {% endif %} {% endif %}
{% if act.requisitionIsApproved %} {% set rdel = 0 %} {% else %} {% set rdel = 1 %} {% endif %} {{ include(reqn_lines, {'id': id, 'tactic': act, 'level': null, 'del': rdel, 'currency': currency}, with_context = false) }}
{% if act.activityPlanIsApproved() %} {{ include(booking_details, {'id': id, 'tactic': act, '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 act.fundsHaveBeenReleased() and act.isDone() %} {{ include(accountability, {'id': id, 'tactic': act, 'level': null, 'currency': currency}, with_context = false) }} {% else %}
Accountability can only be filed when funds have been released and the AP marked as Done.
{% endif %}
{% if act.fundsHaveBeenReleased() and act.isDone() %} {{ include(settlements, {'id': id, 'tactic': act, '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 act.requisitionIsApproved() and not act.isDone() %} Create Planned {% endif %} {% if act.isDone() and not act.fieldReportIsApproved() %} Edit Actual {% endif %}
{% if act.requisitionIsApproved() or act.isDone() %} {% set idel = 0 %} {% else %} {% set idel = 1 %} {% endif %} {{ render(controller('AlsuiteProjectBundle:Tactic:indicators', {'tactic': id, 'level': null, 'del': idel})) }}
{{ include(tactic_documents, {'id': id, 'tactic': act, 'mng_upload': 1}) }}
{{ include(tactic_comments, {'id': id, 'tactic': act, 'level': null, 'mng_comments': 1}, with_context = false) }}
{% if not act.requisitionIsApproved() and not act.isDone() %} Assign/Edit HR {% endif %}
{{ include(implementers, {'id': id, 'tactic': act}, with_context = false) }}
{{ include(tactic_approvals, {'id': id, 'tactic': act, 'instance': AP, 'label': 'AP', 'approve': 0}, with_context = false) }} {{ include(tactic_approvals, {'id': id, 'tactic': act, 'instance': REQN, 'label': 'REQN', 'approve': 0}, with_context = false) }} {% if act.fieldReportIsRequired() and act.fieldReportIsFiled() %} {{ include(tactic_approvals, {'id': id, 'tactic': act, 'instance': FR, 'label': 'FR', 'approve': 0}, with_context = false) }} {% endif %}
{% if act.isDone() and act.fieldReportIsRequired() %} {% if not act.fieldReportIsApproved %} Edit {% if act.getFieldReportStatus() == OPEN %} Mark As Filed {% endif %} {% endif %} {% endif %}
{{ include(report_details, {'id': id, 'tactic': act}, with_context = false) }}
{{ include(tactic_trail, {'id': id, 'tactic': act}, with_context = false) }}
{{ include('AlsuiteProjectBundle:Tactic:del.html.twig', {'id': id, 'modal': 'delTactic', 'object': 'Tactic', 'route': path('tactic_del', {'id': id})}, with_context = false) }} {{ include('AlsuiteProjectBundle:Tactic:open.html.twig', {'id': id, 'modal': 'tacticOpen', 'object': 'Tactic', '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': 'Tactic', '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': 'Tactic', 'action': 'Mark As EXECUTED', 'route': path('tactic_markas_executed', {'tactic': id})}, with_context = false) }} {% if act.isDone() and act.fieldReportIsRequired and act.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 %}