Convert the calculate form title template into a template tag. The result of the template tag is applied as the title property of the <H3> HTML tag allowing users to view the full title on mouse hover if the title was truncated. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
18 lines
316 B
HTML
18 lines
316 B
HTML
{% load i18n %}
|
|
|
|
{% load common_tags %}
|
|
|
|
{% common_calculate_title as form_title %}
|
|
|
|
{% if not non_html_title %}
|
|
<h3 title='{{ form_title }}'>
|
|
{% endif %}
|
|
{{ form_title }}
|
|
{% if not non_html_title %}
|
|
</h3>
|
|
{% if subtitle %}
|
|
<small>{{ subtitle }}</small>
|
|
{% endif %}
|
|
<hr/>
|
|
{% endif %}
|