Fix untranslated document types
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user