-{% block body %}
- <img src="https://upload.wikimedia.org/wikipedia/commons/c/c8/MH1Asimulator.JPG" style="width:100%">
-
- {% for exp in request.EXPERIMENTS.values %}
- <div class="experiment nice-controls" data-slug="{{ exp.slug }}">
- <span>
- {{ exp.name }}
- </span>
- <button
- {% if exp.value %}
- disabled class="active"
- {% endif %}
- data-value="on">włączony</button>
- <button
- {% if not exp.value %}
- disabled class="active"
- {% endif %}
- data-value="off">wyłączony</button>
+ {% block body %}
+ <div class="l-checkout__box">
+ <div class="l-checkout__box__header">
+ <img src="{% static 'img/experiment.jpg' %}">
+ <div class="l-checkout__box__header__content">
+ <h1>{% translate "Aktualne eksperymenty" %}</h1>
+ </div>
+ </div>
+ <div>
+ {% for exp in experiments %}
+ <div class="experiment">
+ <span>
+ {{ exp.name }}
+ </span>
+ <div>
+ <input id="experiment-{{ exp.slug }}-off" name="{{ exp.slug }}" class="toggle-input toggle-input-left" value="off" type="radio" {% if not exp.value %}checked="checked"{% endif %}>
+ <input id="experiment-{{ exp.slug }}-on" name="{{ exp.slug }}" class="toggle-input toggle-input-right" value="on" type="radio" {% if exp.value %}checked="checked"{% endif %}>
+ <div class="l-switch__wrapper">
+ <div class="l-switch white">
+ <label class="toggle-for toggle-for-left" for="experiment-{{ exp.slug }}-off">{% translate "wyłączony" %}</label>
+ <label class="toggle-for toggle-for-right" for="experiment-{{ exp.slug }}-on">{% translate "włączony" %}</label>
+ <span class="toggle"></span>
+ </div>
+ </div>
+ </div>
+ </div>
+ {% empty %}
+ <div class="experiment">
+ <div>
+ {% translate 'Aktualnie nie są dostępne żadne eksperymenty.' %}
+ </div>
+ </div>
+ {% endfor %}
+ </div>