This commit is contained in:
2023-06-22 17:15:06 +03:00
parent 881c39e51e
commit 3f28592d29
2 changed files with 48 additions and 29 deletions

View File

@@ -0,0 +1,47 @@
<div class="registration">
<h2>Регистрация</h2>
<div class="chosen_buttons">
<button>Перевозчик</button>
<button>Отправитель</button>
</div>
<form action="">
{% csrf_token %}
<div class="reg_inputs">
<label><input name="firstname" type="text" placeholder="Имя"></label>
{% if errors and 'firstname' in errors %}
<span>Проверьте правильность написания имя</span>
{% endif %}
<label><input name="email" type="text" placeholder="E-mail"></label>
{% if errors and 'email' in errors %}
<span></span>
{% endif %}
<label><input name="password" type="text" placeholder="Пароль"></label>
{% if errors and 'password' in errors %}
<span></span>
{% endif %}
<label><input name="lastname" type="text" placeholder="Фамилия"></label>
{% if errors and 'lastname' in errors %}
<span></span>
{% endif %}
<label><input name="tel" type="text" placeholder="Телефон"></label>
{% if errors and 'tel' in errors %}
<span></span>
{% endif %}
<label><input name="confirm_password" type="text" placeholder="Подтвердить пароль"></label>
{% if errors and 'confirm_password' in errors %}
<span></span>
{% endif %}
</div>
<input type="checkbox"> <p>Регистрируясь, я соглашаюсь с Лицензионным соглашениеми и Политикой конфиденциальности</p>
<div class="reg_button">
<button id="registration" onclick="SendRegistrationForm(this)"> Зарегистрироваться </button>
</div>
</form>
</div>

View File

@@ -1,31 +1,3 @@
{% include 'inter/meta.html' %}
<div class="registration">
<h2>Регистрация</h2>
<div class="chosen_buttons">
<button>Перевозчик</button>
<button>Отправитель</button>
</div>
<form action="">
{% csrf_token %}
<div class="reg_inputs">
<label><input name="username" type="text" placeholder="Имя"></label>
<label><input name="email" type="text" placeholder="E-mail"></label>
<label><input name="password" type="text" placeholder="Пароль"></label>
<label><input name="surname" type="text" placeholder="Фамилия"></label>
<label><input name="tel" type="text" placeholder="Телефон"></label>
<label><input name="confirm password" type="text" placeholder="Подтвердить пароль"></label>
</div>
<input type="checkbox"> <p>Регистрируясь, я соглашаюсь с Лицензионным соглашениеми и Политикой конфиденциальности</p>
<div class="reg_button">
<button id="registration" onclick="SendRegistrationForm(this)"> Зарегистрироваться </button>
</div>
</form>
</div>
{% include 'forms/f_registration.html' %}