Use function to generate list for performance period instead of hard coding all of the text

This commit is contained in:
leigh-mil
2019-01-16 14:01:02 -05:00
parent 5289614140
commit cfecf3d544
4 changed files with 19 additions and 53 deletions

View File

@@ -34,10 +34,6 @@
{% set team_experience_description = "forms.task_order.team_experience.{}".format(task_order.team_experience) | translate %}
{% endif %}
{% if task_order.performance_length %}
{% set performance_length_description = "forms.task_order.performance_length.{}".format(task_order.performance_length) | translate %}
{% endif %}
<h3 class="subheading">{{ "task_orders.new.review.app_info"| translate }} {{ TOEditLink(screen=1) }}</h3>
@@ -121,7 +117,7 @@
<div class="row">
<div class="col col--grow">
<h4 class='task-order-form__heading'>{{ "task_orders.new.review.performance_period"| translate }}</h4>
{{ performance_length_description or RequiredLabel() }}
{{ task_order.performance_length | translateDuration or RequiredLabel() }}
<p><a href="#" class='icon-link icon-link--left' download>{{ Icon('download') }} {{ "task_orders.new.review.usage_est_link"| translate }}</a></p>
</div>