From eabfe3ab27d6ac236c5797642d3c14b86da2798a Mon Sep 17 00:00:00 2001 From: SBD Date: Sun, 12 Jan 2025 20:15:53 +0300 Subject: [PATCH] 0.0.13 form mover --- templates/v2/blocks/b_make_mover_order.html | 16 +++++ templates/v2/forms/f_make_mover_order.html | 69 +++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 templates/v2/blocks/b_make_mover_order.html create mode 100644 templates/v2/forms/f_make_mover_order.html diff --git a/templates/v2/blocks/b_make_mover_order.html b/templates/v2/blocks/b_make_mover_order.html new file mode 100644 index 0000000..3fae2c7 --- /dev/null +++ b/templates/v2/blocks/b_make_mover_order.html @@ -0,0 +1,16 @@ +{% load static %} +{% load i18n %} + + + + + + + + + + +
+
{% trans "Заполните форму, чтобы отправить посылку" %}
+ {% include 'v2/forms/f_make_poster_order.html' %} +
\ No newline at end of file diff --git a/templates/v2/forms/f_make_mover_order.html b/templates/v2/forms/f_make_mover_order.html new file mode 100644 index 0000000..e71bcf6 --- /dev/null +++ b/templates/v2/forms/f_make_mover_order.html @@ -0,0 +1,69 @@ +{% load static %} +{% load i18n %} + +
+ {% trans "Укажите город" as placeholder_for_city %} + +
+
+ + {% include 'v2/widgets/w_select_country.html' with name='from_city' placeholder=placeholder_for_city initial=form.initial.from_city %} + {% if form.errors.from_city %}
{{ form.errors.from_city.0 }}
{% endif %} +
+
+ + {% include 'v2/widgets/w_select_country.html' with name='to_city' placeholder=placeholder_for_city initial=form.initial.to_city %} + {% if form.errors.to_city %}
{{ form.errors.to_city.0 }}
{% endif %} +
+
+
+
+ + {% include 'v2/widgets/w_radio_inputs.html' with name='cargo_type' list=form.fields.cargo_type.choices initial=form.initial.cargo_type %} + {% if form.errors.cargo_type %}
{{ form.errors.cargo_type.0 }}
{% endif %} +
+
+
+
+ + {% include 'v2/widgets/w_daterangepicker.html' with name='arrival_DT' initial=form.initial.arrival_DT %} + {% if form.errors.arrival_DT %}
{{ form.errors.arrival_DT.0 }}
{% endif %} +
+
+
+
+ {% trans "Обязательно учитывайте Правила и особенности перевозки выбранным Вами видом транспорта" as attention_type_transport %} + + {% include 'v2/widgets/w_radio_inputs.html' with name='type_transport' list=form.fields.type_transport.choices initial=form.initial.type_transport %} + {% include 'v2/widgets/w_pay_attention.html' with text=attention_type_transport %} + {% if form.errors.type_transport %}
{{ form.errors.type_transport.0 }}
{% endif %} +
+
+
+
+ {% trans "Если вы оставите это поле пустым - перевозчики смогут только написать вам в личные сообщения на нашем сайте TripWB.com" as attention_phone %} + + + {% include 'v2/widgets/w_pay_attention.html' with text=attention_phone %} + {% if form.errors.phone %}
{{ form.errors.phone.0 }}
{% endif %} +
+
+
+
+ {% trans 'Если желаете, то здесь можно указать важную информацию, например: вес, габариты посылки, количество попутчиков и т.д.)' as comment_placeholder %} + + {% include 'v2/widgets/w_textarea_w_counter.html' with name='comment' placeholder=comment_placeholder max_val='300' initial=form.initial.comment %} + {% if form.errors.comment %}
{{ form.errors.comment.0 }}
{% endif %} +
+
+
+
+
+
{% trans "Хочу получать уведомления на E-mail о появлении перевозчика по моим критериям" %}
+ {% include 'v2/widgets/w_additional_info.html' %} + {% if form.errors.receive_msg_by_email %}
{{ form.errors.receive_msg_by_email.0 }}
{% endif %} +
+
+ + +
\ No newline at end of file