0.2.2 feedback_form, contacts models
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div class="how_dev_widget">
|
||||
<div class="first_line_widget_how_dev">
|
||||
<div class="medium_small_bold_txt how_dev_widget_txt">
|
||||
0{{ forloop.counter }} {{ w.name }}
|
||||
0{{ forloop.counter }}. {{ w.name }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="how_dev_widget_description standart_txt">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<div class="top_border_gradient"></div>
|
||||
<form name="form_consultation" class="form_consultation">
|
||||
<div class="container_content_form_consultation">
|
||||
{% include 'forms/f_consultation_form.html' %}
|
||||
{% include 'forms/f_feedback.html' %}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -6,12 +6,15 @@
|
||||
<div class="standart_txt description_form_consultation_txt">
|
||||
{{ block.description|linebreaksbr }}
|
||||
</div>
|
||||
<input type="checkbox" class="input_form_consultation" id="id_agreement" name="agreement" />
|
||||
<label class="label_consultation_form standart_txt" for="id_agreement">{{ feedback_form.agreement.label }}</label>
|
||||
<button onclick="sendFormConsultation(this)" class="button_form_consultation">{{ block.but_title }}</button>
|
||||
</div>
|
||||
<div class="form_consultation_content">
|
||||
<input hidden="hidden" class="input_form_consultation" id="id_form_name" name="form_name" value="{{ feedback_form.initial.form_name }}">
|
||||
<input class="input_form_consultation" id="id_name" name="name" placeholder="{{ feedback_form.name.label }}">
|
||||
<input class="input_form_consultation" id="id_company" name="company" placeholder="{{ feedback_form.company.label }}">
|
||||
<input class="input_form_consultation" id="id_contacts" name="contacs" placeholder="{{ feedback_form.contacts.label }}">
|
||||
<label class="label_consultation_form standart_txt" for="id_consultation_topic">{{ feedback_form.description.label }}</label>
|
||||
<textarea class="textarea_form_consultation" id="id_consultation_topic" name="consultation_topic"></textarea>
|
||||
<input class="input_form_consultation" id="id_contacts" name="contacts" placeholder="{{ feedback_form.contacts.label }}">
|
||||
<label class="label_consultation_form standart_txt" for="id_description">{{ feedback_form.description.label }}</label>
|
||||
<textarea class="textarea_form_consultation" id="id_description" name="description"></textarea>
|
||||
</div>
|
||||
73
templates/mail/mt_simple_letter.html
Normal file
73
templates/mail/mt_simple_letter.html
Normal file
@@ -0,0 +1,73 @@
|
||||
|
||||
<div style="font-family:Calibri,Candara,Segoe,'Segoe UI',Optima,Arial,sans-serif;
|
||||
padding:10px; background-color: #F8F8F8;"
|
||||
>
|
||||
<div style="line-height:1.0em; width: 660px">
|
||||
<div style="padding:5px; text-align: center;">
|
||||
<img src="{{ logo }}" alt="{{ project_name }}" style="margin:0;padding:0;">
|
||||
</div>
|
||||
<p style="font-weight:700; font-size:25px; text-align:center;
|
||||
padding:0; line-height:1em; text-transform: uppercase; color: #ff613a;
|
||||
margin: auto; max-width: 90%;
|
||||
">
|
||||
{{ message_title|safe }}
|
||||
</p>
|
||||
<div style="line-height:1.0em; font-size:18px; margin: 5px 30px;
|
||||
box-shadow: -1px 4px 10px 0 rgba(198, 199, 203, 0.20), 0 -1px 10px 0 rgba(198, 199, 203, 0.20);
|
||||
padding: 30px; border-radius: 10px; background-color: #FFF;"
|
||||
>
|
||||
{# <p style="line-height:1.0em;font-size:18px;margin-top: 5px; margin-left: 80px">#}
|
||||
{{ message_text|safe|linebreaksbr }}
|
||||
{# </p>#}
|
||||
</div>
|
||||
{% for button in message_buttons %}
|
||||
<div style="text-align:center;font-weight: 700;">
|
||||
<a href="{{ button.url }}">
|
||||
<div style="display:inline-block;text-align:center;font-size:18px;padding:5px 10px;margin:5px;border-radius:2px;background-color:#61aeb6;color:#fff;text-decoration:none;line-height:1.0em;cursor:pointer">
|
||||
{{ button.caption }}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<div style="text-align:center;width: 660px;line-height:1.1em">
|
||||
<div style="margin: 40px 10px 10px;">
|
||||
<hr>
|
||||
{# <nobr><b>Адрес кафе:</b> Минск, ул. Будславская, 2</nobr>#}
|
||||
{# <br>#}
|
||||
{# <nobr><b>График работы:</b> пн-вс 12:00 - 24:00</nobr>#}
|
||||
{# <br>#}
|
||||
{# <nobr><b>Телефоны кафе:</b> +375 44 77 321 77</nobr>#}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="text-align: center;margin-top:5px">
|
||||
{# <a href="https://baldenini.by/event/dostavka-edy" style="text-decoration: none;">#}
|
||||
{# <div style="color: #311A12;#}
|
||||
{# padding: 10px;#}
|
||||
{# margin: 5px 10px 0 10px;#}
|
||||
{# border: 2px solid #311A12;#}
|
||||
{# border-radius: 5px;#}
|
||||
{# font-size: 20px;#}
|
||||
{# display: inline-block;#}
|
||||
{# font-weight: 700;#}
|
||||
{# text-transform: uppercase;">О ДОСТАВКЕ#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# <a href="https://baldenini.by/page/baldenini-cafe-o-nas" style="text-decoration: none;">#}
|
||||
{# <div style="color: #311A12;#}
|
||||
{# padding: 10px;#}
|
||||
{# margin: 5px 10px 0 10px;#}
|
||||
{# border: 2px solid #311A12;#}
|
||||
{# border-radius: 5px;#}
|
||||
{# font-size: 20px;#}
|
||||
{# display: inline-block;#}
|
||||
{# font-weight: 700;#}
|
||||
{# text-transform: uppercase;">О BALDENINI CAFE#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<div class="cut-width">
|
||||
<div style="padding-top: 40px;">
|
||||
{% if page.description or page.title %}
|
||||
{% if page.description or page.title or page.text %}
|
||||
|
||||
{% if page.description %}
|
||||
<div class="description_page standart_txt">{{ page.description }}</div>
|
||||
@@ -12,6 +12,9 @@
|
||||
{% if page.title %}
|
||||
<div class="title_page standart_txt">{{ page.title }}</div>
|
||||
{% endif %}
|
||||
{% if page.text %}
|
||||
<div class="title_page standart_txt">{{ page.text|safe }}</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
3
templates/widgets/w_form_after_send.html
Normal file
3
templates/widgets/w_form_after_send.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
Сообщение отправлено
|
||||
</div>
|
||||
@@ -9,7 +9,7 @@
|
||||
{% if widget.description %}
|
||||
<div class="splinner_w_one_present"></div>
|
||||
<div class="description_w_one_present standart_txt">
|
||||
{{ widget.description }}
|
||||
{{ widget.description|safe|linebreaksbr }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% with name_w='presentAerBim' %}
|
||||
|
||||
Reference in New Issue
Block a user