0.0.135 add contacts page
This commit is contained in:
@@ -1853,7 +1853,7 @@ button#more_button{
|
||||
}
|
||||
|
||||
.feedback_form{
|
||||
margin-top: 120px;
|
||||
margin-top: 60px;
|
||||
padding: 0px 40px 0px 40px;
|
||||
|
||||
}
|
||||
@@ -1877,10 +1877,12 @@ button#more_button{
|
||||
}
|
||||
|
||||
.counter-box>textarea{
|
||||
border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #FF613A;
|
||||
width: 400px;
|
||||
height: 140px;
|
||||
width: 405px;
|
||||
height: 130px;
|
||||
min-width: 65px;
|
||||
padding: 10px 0px 0px 10px;
|
||||
}
|
||||
.counter-text{
|
||||
position: absolute;
|
||||
@@ -1889,6 +1891,21 @@ button#more_button{
|
||||
color: #7E7E7E;
|
||||
}
|
||||
|
||||
.button_feedback_form{
|
||||
text-align: center;
|
||||
}
|
||||
button#send_feedback_form{
|
||||
border-radius: 10px;
|
||||
background: #FF613A;
|
||||
height: 60px;
|
||||
color: #FFF;
|
||||
font-size: 18px;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
line-height: 26px;
|
||||
width: 100%;
|
||||
margin-top: 13px;
|
||||
}
|
||||
|
||||
/*end_static_pages*/
|
||||
|
||||
|
||||
@@ -76,7 +76,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="feedback_form">
|
||||
<h2 id=title_static>{% translate "Мы всегда на связи!" %}</h2>
|
||||
<span id="sub_title_static">{% translate "У вас есть вопрос? Отправьте нам сообщение" %}</span>
|
||||
<form>
|
||||
<div class="left_inputs_form">
|
||||
<div class="inputs_l">
|
||||
@@ -108,7 +112,7 @@
|
||||
onFocus="this.select()"
|
||||
oninput="counterText(this)"
|
||||
id="id_text" class="feedback_form_message"
|
||||
placeholder= {% translate "Сообщение" %}
|
||||
placeholder= {% translate "Сообщение" %}
|
||||
value="{% if form.adding_machine.text %}{{ form.initial.text }}{% endif %}"
|
||||
maxlength="100"
|
||||
>
|
||||
@@ -120,6 +124,11 @@
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<div class="button_feedback_form">
|
||||
<button id="send_feedback_form">{% translate 'Отправить сообщение' %}</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
69
templates/blocks/static_pages_blocks/b_contacts.html
Normal file
69
templates/blocks/static_pages_blocks/b_contacts.html
Normal file
@@ -0,0 +1,69 @@
|
||||
{% load i18n %}
|
||||
<div class="feedback_form">
|
||||
<h2 id=title_static>{% translate "Мы всегда на связи!" %}</h2>
|
||||
<span id="sub_title_static">{% translate "У вас есть вопрос? Отправьте нам сообщение" %}</span>
|
||||
<form>
|
||||
<div class="left_inputs_form">
|
||||
<div class="inputs_l">
|
||||
<input name="username" type="text" placeholder="Имя" {% if form.data.username %} value="{{ form.data.username }}"{% endif %}>
|
||||
{% if form.username and form.errors.username %}
|
||||
<span>{{ form.errors.username }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="inputs_l">
|
||||
<input name="email" type="email" placeholder="Е-mail"{% if form.data.email %} value="{{ form.data.email }}"{% endif %}>
|
||||
{% if form.email and form.errors.email %}
|
||||
<span>{{ form.errors.email }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="inputs_l">
|
||||
<input name="tel" type="number" placeholder="Телефон"{% if form.data.tel %} value="{{ form.data.tel }}"{% endif %}>
|
||||
{% if form.tel and form.errors.tel %}
|
||||
<span>{{ form.errors.tel }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="right_inputs_form">
|
||||
<div class="counter-box">
|
||||
<label for="id_text"></label>
|
||||
<textarea
|
||||
name="text"
|
||||
onFocus="this.select()"
|
||||
oninput="counterText(this)"
|
||||
id="id_text" class="feedback_form_message"
|
||||
placeholder= {% translate "Сообщение" %}
|
||||
value="{% if form.adding_machine.text %}{{ form.initial.text }}{% endif %}"
|
||||
maxlength="100"
|
||||
>
|
||||
</textarea>
|
||||
<span class="counter-text">
|
||||
<span class="counter-text__current">0</span>
|
||||
/
|
||||
<span class="counter-text__total">100</span>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<div class="button_feedback_form">
|
||||
<button id="send_feedback_form">{% translate 'Отправить сообщение' %}</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div class="clear_both"></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -14,5 +14,8 @@
|
||||
{% if page.url == 'partners' %}
|
||||
{% include "blocks/static_pages_blocks/b_partners.html" %}
|
||||
{% endif %}
|
||||
{% if page.url == 'contacts' %}
|
||||
{% include "blocks/static_pages_blocks/b_contacts.html" %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user