{% extends "base.html.twig" %} {% block newStyles %} {% endblock %} {% block title "Manage Project" %} {% block content %}
{% if project is not null %}

{{ project.name }}

{% set id = project.id %}
Edit Delete {{ include('AlsuiteProjectBundle:StrategicProject:del.html.twig', {'id': id, 'action': 'Delete', 'object': 'Strategic Project', 'route': path('strategic_project_del', {'id': id}), 'modal': 'prj'}) }}
Period {{ project.getStartsOn|date(date_format) ~ ' to ' ~ project.getEndsOn|date(date_format) }}
{% if outcome is not null %} {% set ocid = outcome.id %}

{{ outcome.outcome }}

Edit Delete Add Outputs {{ include('AlsuiteProjectBundle:StrategicPlanOutcome:del.html.twig', {'id': ocid, 'action': 'Delete', 'object': 'Strategic Plan Outcome', 'route': path('sp_outcome_del', {'id': ocid}), 'modal': 'outcome'}) }} Back to List
{% set wgt = outcome.sumOfOutputWeights() %} {% if wgt > 100 %} {% set omsg = "The sum of the output weights per outcome must be equal to 100. The sum under this outcome is " ~ wgt ~ '.' %} {% elseif wgt < 100 %} {% set omsg = "The sum of the output weights per outcome must be equal to 100. The sum under this outcome is " ~ wgt ~ '.' %} {% endif %}
{# #} {% for output in outcome.outputs %} {% set oid = output.id %} {##} {% else %} {% endfor %} {##}
OutputWeightProgress %
{{ output.output }} {{ output.weight }}{{ output.progress|round|number_format(0) }}
No outputs have been created under this outcome yet.
Overall {{ outcome.sumOfOutputWeights() }}{{ progress|round|number_format(0) }}
{% else %}
Add
{% for outcome in project.outcomes %} {% set ocid = outcome.id %} {% endfor %}
Description
{{ outcome.outcome }} View
{% endif %}
{% if output is not null %} {% set opid = output.id %}

{{ output.output }}

Edit Delete Add Indicators {{ include('AlsuiteProjectBundle:StrategicPlanOutput:del.html.twig', {'id': opid, 'action': 'Delete', 'object': 'Strategic Plan Output', 'modal': 'output', 'route': path('sp_output_del', {'id': opid})}) }} Back to List
{% if output.numOfIndicators() == 0 %} {% else %} {% set wgt = output.sumOfIndicatorWeights() %} {% if wgt != 100 %} {% set omsg = "The sum of the indicator weights per output must be equal to 100. The sum under this output is " ~ wgt ~ '.' %} {% endif %} {% endif %}
{##} {% for ind in output.getIndicators() %} {##} {% else %} {% endfor %}
NameTracked WeightBaseline TargetAchievedRate %
{{ ind.details }} {{ ind.getTrackingTypeLabel() }} {{ ind.weight }} {{ ind.baseline }}{{ ind.target }}{{ ind.getLatestScore()|round|number_format(0) }} {{ ind.achievedPercent|round|number_format(0) }}
There are no indicators under this output currently.
Overall {{ output.sumOfIndicatorWeights() }} {# progress|round|number_format(0) #}
{% else %} {% for outcome in project.outcomes %} {% for output in outcome.outputs %} {% set opid = output.id %} {% endfor %} {% endfor %}
OutcomeOutputWeightPeriod
{{ outcome.outcome }} {{ output.output }} {{ output.weight }} View
{% endif %}
{% if indicator is not null %} {% set oind = indicator.id %}

{{ indicator.details }}

Edit Delete {% if indicator.isTrackedQualitatively() %} Add Progress {% else %} Add Progress {% endif %} {{ include('AlsuiteProjectBundle:OutputIndicator:del.html.twig', {'id': oind, 'action': 'Delete', 'object': 'Indicator', 'modal': 'inddel', 'route': path('sp_output_ind_del', {'id': oind, 'type': 1})}) }} Back to List
{% if indicator.isTrackedThroughCumulativeAggregates() %} {% endif %}
Is Tracked{{ indicator.getTrackingTypeLabel() }}
Weight{{ [indicator.weight, '%']|join }}
Baseline{{ indicator.baseline }}
Target{{ indicator.target }}
Achieved {{ indicator.getLatestScore() }}{% if indicator.isTrackedQualitatively() %}%{% endif %}
Achieved % {% if indicator.target is not null or indicator.target != 0 %} {{ ((indicator.getLatestScore()/indicator.getTarget())*100)|round|number_format(0) ~ '%' }} {% else %} 0 {% endif %}
{% for prg in indicator.getProgress() %} {% set pid = prg.id %} {% else %} {% endfor %}
ValueDateDetailsOptions
{{ indicator.isTrackedQualitatively() ? prg.getWeightContributed() : prg.getQtyAchieved() }} {% if prg.AchievedOn is not null %} {{ prg.getAchievedOn()|date(date_format) }} {% endif %} {{ prg.getDetails()|raw }} {% if indicator.isTrackedQualitatively() %} Edit {% else %} Edit {% endif %} Delete {{ include('AlsuiteProjectBundle:OutputIndicatorProgress:del.html.twig', {'id': pid, 'action': 'Delete', 'object': 'Progress Record', 'modal': 'indprgdel', 'route': path('ind_progress_del', {'progress': pid, 'type': 1})}) }}
There are no progress records currenlty.
{% else %} {% for outcome in project.outcomes %} {% for output in outcome.outputs %} {% for ind in output.indicators %} {% set oind = ind.id %} {% endfor %} {% endfor %} {% endfor %}
Output NameTracked WeightBaseline Target
{{ output.output }} {{ ind.details }} {{ ind.getTrackingTypeLabel() }} {{ ind.weight }} {{ ind.baseline }} {{ ind.target }} View
{% endif %}
{% else %} We are sorry, but we cannot find the selected project. Please try again. {% endif %}
{% endblock %} {% block javascripts %} {% endblock %}