0.0.147 add switch

This commit is contained in:
2023-09-21 11:52:46 +03:00
parent c322053b02
commit 0f9ce1abd6
2 changed files with 46 additions and 116 deletions

View File

@@ -25,40 +25,50 @@
</p>
</span>
{# <div class="switch">#}
{# <div class="form_radio_btn">#}
{##}
{# <input class="{% if account_type == "mover" %}active {% else %} deactive{% endif %}" id="radio-1" type="radio" name="account_type" value="mover" >#}
{# <label for="radio-1">Перевозчик</label>#}
{# </div>#}
{# <div class="form_radio_btn">#}
{# <input class="{% if account_type == "sender" %}active {% else %} deactive{% endif %}" id="radio-2" type="radio" name="account_type" value="sender" checked>#}
{# <label for="radio-2">Отправитель</label>#}
{# </div>#}
{# </div>#}
<div class="wrapper_switch">
<div class="switch">
<div class="form_radio_btn">
<label class="checkbox-green">
<input type="checkbox">
<span class="checkbox-green-switch" data-label-on="On" data-label-off="Off"></span>
</label>
<img src="/static/img/png/Box1.png" alt="">
<img src="/static/img/png/Box2.png" alt="">
<img src="/static/img/png/Box3.png" alt="">
<img src="/static/img/png/Box4.png" alt="">
<input class="{% if account_type == "mover" %}active {% else %} deactive{% endif %}" id="radio-1" type="radio" name="account_type" value="mover" >
<label for="radio-1">{% translate "Автоперевозки" %}</label>
</div>
<div class="form_radio_btn">
<input class="{% if account_type == "sender" %}active {% else %} deactive{% endif %}" id="radio-2" type="radio" name="account_type" value="sender" checked>
<label for="radio-2">{% translate "Авиаперевозки" %}</label>
</div>
</div>
</div>
<div class="cut-width">
{% include "blocks/b_find_route_form.html" %}
<img src="/static/img/png/Box1.png" alt="">
<img src="/static/img/png/Box2.png" alt="">
<img src="/static/img/png/Box3.png" alt="">
<img src="/static/img/png/Box4.png" alt="">
</div>
<div class="search_form_main">
<div class="cut-width">
{% include "blocks/b_find_route_form.html" %}
</div>
</div>
<div class="mid_block_static">
<h2 id="title_static">{% translate "О сервисе Trip With Bonus" %}</h2>
<span id="sub_title_static">
<p>
{% translate "TWB - это сервис, созданный для того, чтобы отправитель и перевозчик нашли друг-друга!" %}
{% translate "Наш сервис предлагает вам прямые контакты, а не является посредником !" %}
</p>
</span>
<h2 id="title_static">{% translate "Как это работает?" %}</h2>
<h2 id="title_static">{% translate "Вам нужно отправить посылку быстро и недорого?" %}</h2>
<div class="benefit_img">
<div class="benefit_img_item">