Fix untranslated document types

This commit is contained in:
Aurel
2023-03-28 13:02:44 +00:00
committed by Xbird
parent f955733afa
commit 2a0cbc101e
14 changed files with 574 additions and 561 deletions

View File

@@ -1,6 +1,6 @@
{% extends 'base.html.twig' %}
{% block title %}{{ ("documentType_" ~ document.getClassShort)|trans }}: {{ document.getTitle }}{% endblock %}
{% block title %}{{ ('documentType_' ~ document.classShort)|trans }}: {{ document.getTitle }}{% endblock %}
{% block subtitle %}#{{ document.id }}: {{ document.getTitle }} {% endblock %}
{% block body %}
@@ -53,13 +53,13 @@
</div>
<div class="col">
<h1 style="color:beige;">{{document.mainGroup.name}}</h1>
<h2 style="color:beige;">{{ ("documentType_" ~ document.getClassShort)|trans }} #{{ document.getId }} : {{ document.getTitle }}</h2>
<h2 style="color:beige;">{{ ('documentType_' ~ document.classShort)|trans }} #{{ document.getId }} : {{ document.getTitle }}</h2>
</div>
</div>
<hr>
<div class="row p-2">
<div class="col-12">
{% include 'document/types/' ~ document.getClassShort ~ '.html.twig' with {'document': document} %}
{% include 'document/types/' ~ document.classShort ~ '.html.twig' with {'document': document} %}
</div>
</div>
<hr>