Skip to content

Commit

Permalink
Merge pull request #1704 from bolt/feature/allow-variant-inline-for-t…
Browse files Browse the repository at this point in the history
…ext-input

Allow for `variant: inline` for most fields
  • Loading branch information
I-Valchev committed Aug 10, 2020
2 parents 589da47 + 3d68560 commit 538065f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/_partials/fields/_base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,25 @@
>

{{ prefix|raw }}

{% if variant == 'inline' %}<div class="row"><div class="col-3">{% endif %}

{% block label %}
{% include '@bolt/_partials/fields/_label.html.twig' %}
{% include '@bolt/_partials/fields/_collection_buttons.html.twig' %}
{% endblock %}

{% if variant == 'inline' %}</div><div class="col-9">{% endif %}

{% block field %}

{% endblock %}
{% if include_id is defined %}
{% include '@bolt/_partials/fields/_hidden_id_field.html.twig' %}
{% endif %}

{% if variant == 'inline' %}</div></div>{% endif %}

{{ postfix|raw }}

{{ separator|raw }}
Expand Down

0 comments on commit 538065f

Please sign in to comment.