Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-8595: Added missing TPR fields #690

Merged
merged 1 commit into from
Jun 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions templates/module/helfi_tpr/tpr-unit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,50 @@
{% block main_content %}
<div class="enriched-content components components--unit">
{{ content.field_content }}

{% if content.price_info|render %}
{% embed "@hdbt/misc/component.twig" with {
component_classes: [ 'component--paragraph-text' ],
component_title: content.price_info['#title'],
}%}
{% block component_content %}
{{ content.price_info }}
{% endblock component_content %}
{% endembed %}
{% endif %}

{% if content.contacts|render %}
{% embed "@hdbt/misc/component.twig" with {
component_classes: [ 'component--paragraph-text' ],
component_title: content.contacts['#title'],
}%}
{% block component_content %}
{{ content.contacts }}
{% endblock component_content %}
{% endembed %}
{% endif %}

{% if content.links|render %}
{% embed "@hdbt/misc/component.twig" with {
component_classes: [ 'component--paragraph-text' ],
component_title: content.links['#title'],
}%}
{% block component_content %}
{{ content.links }}
{% endblock component_content %}
{% endembed %}
{% endif %}

{% if content.other_info|render %}
{% embed "@hdbt/misc/component.twig" with {
component_classes: [ 'component--paragraph-text' ],
component_title: content.other_info['#title'],
}%}
{% block component_content %}
{{ content.other_info }}
{% endblock component_content %}
{% endembed %}
{% endif %}
</div>
{% endblock main_content %}

Expand All @@ -75,4 +119,5 @@
description: content.address,
} %}
{% endif %}

</article>