Commit 84acb23e authored by Johan Cwiklinski's avatar Johan Cwiklinski
Browse files

Use 'inline field' class per default on form entries

parent a2fd97b8
......@@ -3,10 +3,5 @@
{% block component %}
{% set type = "checkbox" %}
{% if masschange is defined and masschange == true %}
{% set component_class = "inline field" %}
{% else %}
{% set component_class = "field" %}
{% endif %}
{{ parent() }}
{% endblock %}
......@@ -6,7 +6,6 @@
{% if id == 'ddn_adh' %}
{% set example = _T("(yyyy-mm-dd format)") ~ "<span id=\"member_age\">" ~ member.getAge() ~ "</span>" %}
{% endif %}
{% set component_class = "field" %}
{{ parent() }}
{% endblock %}
......
{% block component %}
{% if notag is not defined %}
<div{% if component_id is defined %} id="{{ component_id }}"{% endif %}{% if component_class is defined %} class="{{ component_class }}"{% endif %}>
<div{% if component_id is defined %} id="{{ component_id }}"{% endif %} class="{{ component_class ?? 'inline field' }}">
{% endif %}
{% block label %}
<label for="{{ id }}"{% if title is defined %} title="{{ title }}"{% endif %}{% if labelclass is defined %} class="{% if labelclass is defined %}{{ labelclass }}{% endif %}"{% endif %}>
......
......@@ -8,7 +8,6 @@
autocomplete: "off",
value: null,
component_id: entry.field_id ~ '_field',
component_class: "field"
}
%}
{% include "components/forms/input.html.twig" with {
......@@ -21,7 +20,6 @@
autocomplete: "off",
elt_class: "labelalign",
value: null,
component_class: "field"
}
%}
<script type="text/javascript">
......
{% extends "components/forms/input.html.twig" %}
{% block component %}
{% if masschange is defined and masschange == true %}
{% set component_class = "inline field" %}
{% else %}
{% set component_class = "field" %}
{% endif %}
{% if entry.required %}
{% set component_class = component_class ~ ' required' %}
{% set component_class = component_class ?? 'inline field' ~ ' required' %}
{% endif %}
{{ parent() }}
{% endblock %}
......
......@@ -2,13 +2,8 @@
{% block component %}
{% set type = "text" %}
{% if masschange is defined and masschange == true %}
{% set component_class = "inline field" %}
{% else %}
{% set component_class = 'field' %}
{% endif %}
{% if entry.required ?? false %}
{% set component_class = component_class ~ ' required' %}
{% set component_class = component_class ?? 'inline field' ~ ' required' %}
{% endif %}
{{ parent() }}
{% endblock %}
{% extends "components/forms/input.html.twig" %}
{% block component %}
{% set component_class = "field" %}
{{ parent() }}
{% endblock %}
{% block label %}
{{ parent() }}
{% endblock %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment