You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 line
535B

  1. {% set distribution = field.value %}
  2. {% if distribution %}
  3. {% set cycleType = distribution.cycleType %}
  4. {% if cycleType == "day" %}
  5. {% set labelCycleType = "J" %}
  6. {% elseif cycleType == "week" %}
  7. {% set labelCycleType = "S" %}
  8. {% elseif cycleType == "month" %}
  9. {% set labelCycleType = "M" %}
  10. {% endif %}
  11. {% endif %}
  12. {% if cycleType == "year" %}
  13. A{{ distribution.cycleNumber }}
  14. {% else %}
  15. {{ labelCycleType ~ distribution.cycleNumber }}A{{ distribution.year|slice(2,2) }}
  16. {% endif %}