templates: update w.c.s. templates for native form rendering (#73966) #147
|
@ -13,9 +13,9 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% block side %}
|
{% block side %}
|
||||||
{% if gauche %}
|
{% if form_side %}
|
||||||
<div class="form-content--sidebox" id="gauche">
|
<div class="form-content--sidebox" id="gauche">
|
||||||
{{ gauche|safe }}
|
{{ form_side|safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% block side %}
|
{% block side %}
|
||||||
{% if gauche %}
|
{% if form_side %}
|
||||||
<div class="form-content--sidebox" id="gauche">
|
<div class="form-content--sidebox" id="gauche">
|
||||||
{{ gauche|safe }}
|
{{ form_side|safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -26,9 +26,9 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% block side %}
|
{% block side %}
|
||||||
{% if gauche %}
|
{% if form_side %}
|
||||||
<div class="form-content--sidebox" id="gauche">
|
<div class="form-content--sidebox" id="gauche">
|
||||||
{{ gauche|safe }}
|
{{ form_side|safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -15,16 +15,16 @@
|
||||||
|
|
||||||
{% block placeholder-content %}
|
{% block placeholder-content %}
|
||||||
{% block 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 %}
|
{% if title %}
|
||||||
<div id="title-section">
|
<div id="title-section">
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if gauche %}
|
{% if form_side %}
|
||||||
<div class="form-content--sidebox" id="gauche">
|
<div class="form-content--sidebox" id="gauche">
|
||||||
{{ gauche|safe }}
|
{{ form_side|safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
multi-steps
|
multi-steps
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if 'tracking-code' in gauche|safe %}
|
{% if 'tracking-code' in form_side|safe %}
|
||||||
with-tracking-code
|
with-tracking-code
|
||||||
{% else %}
|
{% else %}
|
||||||
without-tracking-code
|
without-tracking-code
|
||||||
|
@ -27,11 +27,11 @@
|
||||||
|
|
||||||
{% block placeholder-content %}
|
{% block placeholder-content %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if gauche %}
|
{% if form_side %}
|
||||||
<div class="form-content--sidebox" id="gauche">{{ gauche|safe }}</div>
|
<div class="form-content--sidebox" id="gauche">{{ form_side|safe }}</div>
|
||||||
{% endif %}
|
{% 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 %}
|
{% if title %}<h2>{{ title }}</h2>{% endif %}
|
||||||
|
|
||||||
{% block body %}{{ body|safe }}{% endblock %}
|
{% block body %}{{ body|safe }}{% endblock %}
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% block side %}
|
{% block side %}
|
||||||
{% if gauche %}
|
{% if form_side %}
|
||||||
<div class="form-content--sidebox" id="gauche">
|
<div class="form-content--sidebox" id="gauche">
|
||||||
{{ gauche|safe }}
|
{{ form_side|safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if gauche %}
|
{% if form_side %}
|
||||||
<div class="form-content--sidebox" id="gauche">
|
<div class="form-content--sidebox" id="gauche">
|
||||||
{{ gauche|safe }}
|
{{ form_side|safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if gauche %}
|
{% if form_side %}
|
||||||
<div class="form-content--sidebox" id="gauche">
|
<div class="form-content--sidebox" id="gauche">
|
||||||
{{ gauche|safe }}
|
{{ form_side|safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -18,19 +18,19 @@
|
||||||
|
|
||||||
{% block placeholder-content %}
|
{% block placeholder-content %}
|
||||||
{% block 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 %}
|
{% block wcs-form-title %}
|
||||||
{% if title %}
|
{% if title %}
|
||||||
<div class="form-content--titlebar"><h1 class="form-content--title">{{title}}</h1></div>
|
<div class="form-content--titlebar"><h1 class="form-content--title">{{title}}</h1></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% if gauche %}
|
{% if form_side %}
|
||||||
<div class="form-content--sidebox" id="gauche">
|
<div class="form-content--sidebox" id="gauche">
|
||||||
{{ gauche|safe }}
|
{{ form_side|safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% 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 #}
|
{% if title %} {# hidden by default, displayed with $form-titlebar-mode: form #}
|
||||||
<h2 class="form-content--body--title">{{title}}</h2>
|
<h2 class="form-content--body--title">{{title}}</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue