{% load static %}
{% load i18n %}

    <form
        class="commercial_offer"

        {% if page.url == 'partners' %} data-name="msg_from_partners"{% endif %}
        {% if page.url == 'advertisement' %} data-name="msg_from_advertisement"{% endif %}
        {% if form.form_name %}data-name="{{ form.form_name}}"{% endif %}
    >

              <div class="inputs_l">
                <input
                        name="name"
                        type="text"
                        onkeydown  = "hideErrors(this)"
                        placeholder="{% translate 'Имя' %}"
                        {% if form.name %} value="{{ form.name }}"{% endif %}>
                {% if form.errors.name %}
                        <span id="error_com_offer">{{ form.errors.name }}</span>
                {% endif %}
              </div>

              <div class="inputs_l">
                <input name="phone"
                       type="tel"
                       onkeydown  = "hideErrors(this)"
                       placeholder="{% translate 'Телефон' %}"{% if form.phone %} value="{{ form.phone }}"{% endif %}>
                {% if form.errors.phone %}
                        <span id="error_com_offer">{{ form.errors.phone|safe }}</span>
                {% endif %}
              </div>

              <div class="button_register">
                  <button id="request_btn" onclick="RequestCommercialOffer(this)">{% translate "Оставить заявку" %}</button>
              </div>
    </form>
