Skip to content

Commit

Permalink
IBX-2052: Fixed dropdown visbility when original input is hidden (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 authored Jan 25, 2022
1 parent fe8264f commit 3197b3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
custom_form: false,
class: attr.dropdown_class|default(''),
is_disabled: attr.disabled|default(false) or disabled|default(false),
is_hidden: attr.hidden|default(false),
is_hidden: attr.dropdown_hidden|default(false),
} %}
{% endif %}
{%- endblock choice_widget -%}
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@

{% block form %}
{{ form_start(form) }}
<div class="container ibexa-container">
<div class="container">
<section class="ibexa-fieldgroup">
<h2 class="ibexa-fieldgroup__name mb-3"><b>{{ 'policy.add.policy.title'|trans|desc('Adding Policy of type:') }}</b> {{ form.vars.value.module|capitalize ~ ' / ' ~ form.vars.value.function|capitalize }}</h2>
</section>

<section class="ibexa-fieldgroup">
<div class="ibexa-fieldgroup__content">
{{ form_widget(form.policy, {"attr": {"hidden": "hidden"}}) }}
{{ form_widget(form.policy, {"attr": {"hidden": "hidden", "dropdown_hidden": true}}) }}

{% for limitation_form in form.limitations %}
{{ include(limitation_form.vars.template, {form: limitation_form}, with_context = false) }}
Expand Down

0 comments on commit 3197b3a

Please sign in to comment.