templates: update w.c.s. templates for native form rendering (#73966) #147

Merged
fpeters merged 1 commits from wip/73966-native-form-rendering into main 2023-02-10 15:00:17 +01:00
9 changed files with 23 additions and 23 deletions

View File

@ -13,9 +13,9 @@
{% block content %}
{% block side %}
{% if gauche %}
{% if form_side %}
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
{{ form_side|safe }}
</div>
{% endif %}
{% endblock %}

View File

@ -10,9 +10,9 @@
{% endif %}
{% block side %}
{% if gauche %}
{% if form_side %}
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
{{ form_side|safe }}
</div>
{% endif %}
{% endblock %}

View File

@ -26,9 +26,9 @@
{% endif %}
{% block side %}
{% if gauche %}
{% if form_side %}
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
{{ form_side|safe }}
</div>
{% endif %}
{% endblock %}

View File

@ -15,16 +15,16 @@
{% block placeholder-content %}
{% block content %}
<div id="form-page" class="{% if gauche %}with-sidebar{% endif %}">
<div id="form-page" class="{% if form_side %}with-sidebar{% endif %}">
{% if title %}
<div id="title-section">
<h1>{{ title }}</h1>
</div>
{% endif %}
{% if gauche %}
{% if form_side %}
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
{{ form_side|safe }}
</div>
{% endif %}

View File

@ -18,7 +18,7 @@
multi-steps
{% endif %}
{% if 'tracking-code' in gauche|safe %}
{% if 'tracking-code' in form_side|safe %}
with-tracking-code
{% else %}
without-tracking-code
@ -27,11 +27,11 @@
{% block placeholder-content %}
{% block content %}
{% if gauche %}
<div class="form-content--sidebox" id="gauche">{{ gauche|safe }}</div>
{% if form_side %}
<div class="form-content--sidebox" id="gauche">{{ form_side|safe }}</div>
{% endif %}
<div id="{{bigdiv|default:'rub_service'}}" class="{% if gauche %}has-sidebox{% endif %}">
<div id="{{bigdiv|default:'rub_service'}}" class="{% if form_side %}has-sidebox{% endif %}">
{% if title %}<h2>{{ title }}</h2>{% endif %}
{% block body %}{{ body|safe }}{% endblock %}

View File

@ -10,9 +10,9 @@
{% endif %}
{% block side %}
{% if gauche %}
{% if form_side %}
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
{{ form_side|safe }}
</div>
{% endif %}
{% endblock %}

View File

@ -27,9 +27,9 @@
</div>
{% endif %}
{% if gauche %}
{% if form_side %}
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
{{ form_side|safe }}
</div>
{% endif %}

View File

@ -27,9 +27,9 @@
</div>
{% endif %}
{% if gauche %}
{% if form_side %}
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
{{ form_side|safe }}
</div>
{% endif %}

View File

@ -18,19 +18,19 @@
{% block placeholder-content %}
{% block content %}
<div class="form-content {% if gauche %}form-content--with-sidebox{% endif %}">
<div class="form-content {% if form_side %}form-content--with-sidebox{% endif %}">
{% block wcs-form-title %}
{% if title %}
<div class="form-content--titlebar"><h1 class="form-content--title">{{title}}</h1></div>
{% endif %}
{% endblock %}
{% if gauche %}
{% if form_side %}
<div class="form-content--sidebox" id="gauche">
{{ gauche|safe }}
{{ form_side|safe }}
</div>
{% endif %}
<div id="{{bigdiv|default:'rub_service'}}" class="form-content--body {% if gauche %}has-sidebox{% endif %}">
<div id="{{bigdiv|default:'rub_service'}}" class="form-content--body {% if form_side %}has-sidebox{% endif %}">
{% if title %} {# hidden by default, displayed with $form-titlebar-mode: form #}
<h2 class="form-content--body--title">{{title}}</h2>
{% endif %}