{% set lang = req.body.metadata.pathName.split('/') %}
{% set fileServiceURL = "https:/azuregetfile.k8sprod.ottawa.ca/AzureFile/" %}
{% macro fileResponse(file) %}
{% if file.storage == "s3" %}
{{ file.originalName }}
{% elif file.storage == "azure" %}
{{ file.originalName }}
{% endif%}
{% endmacro %}
{% macro translate(string) %}
{% set key = lang[1] + ':' + string %}
{% set value = form.properties[key] if form.properties[key] else string %}
{{ value }}
{% endmacro %}
{% macro value(key) %}
{{ data | componentValue(key, components) }}
{% endmacro %}
{% macro submission(data, components) %}
{{ data | submissionTable(formInstance) }}
{% endmacro %}
{% macro label(key) %}
{{ key | componentLabel(components) }}
{% endmacro %}
{% macro dataValue(dValue) %}
{% if dValue | is_object %}
{% if dValue.storage %}
{{ fileResponse(dValue) }}
{% else %}
|
{{ translate(form.title) }}
{{ table(form.components, title) }}
|
|
|
|