Form and theme improvements (#513)
This commit is contained in:
@@ -1,15 +1,9 @@
|
||||
{% extends "@AdminLTE/layout/form-theme.html.twig" %}
|
||||
|
||||
{# Adds the help icon, including a link to the documentation #}
|
||||
{% block form_label %}
|
||||
{% if form.vars.docu_chapter is defined and form.vars.docu_chapter is not empty %}
|
||||
<a href="{{ path('help_chapter', {'chapter': form.vars.docu_chapter}) }}"><i class="{{ 'help'|icon }}"></i></a>
|
||||
{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock form_label %}
|
||||
|
||||
{% block choice_widget_collapsed %}
|
||||
{% if 'data-api-url' in attr|keys %}
|
||||
{% set attr = attr|merge({'data-api-url': path(attr['data-api-url']|first, attr['data-api-url']|last)}) %}
|
||||
{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user