Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Куксовский, Смирнов, Бикташева ФТ-201 #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 43 additions & 2 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,49 @@
<main>
<h1>Найди себе друга!</h1>

<!--Форму размещай тут-->

<form action="/pets/orders" method="POST">
<label for="name">Имя хозяина:</label>
<input type="text" id="name" name="name" placeholder="Введите ваше имя" minlength="3" maxlength="50" title="Имя должно иметь длину от 3 до 50 символов" required><br>

<label for="gender">Пол питомца:</label>
<input value="boy" type="radio" name="gender" required>Мальчик
<input value="girl" type="radio" name="gender">Девочка
<input value="none" type="radio" name="gender">Не важно
</label><br>

<label for="petType">Тип животного:</label>
<select id="petType" name="petType">
<option value="cat" selected>Кот</option>
<option value="dog">Собака</option>
<option value="tiger">Тигр</option>
</select><br>

<label for="eyeColor">Цвет глаз:</label>
<input type="color" id="eyeColor" name="eyeColor" placeholder="Укажите цвет глаз" pattern="#[A-Fa-f0-9]{6}" title="Введите цвет в формате HEX"><br>

<label for="tailLength">Длина хвоста:</label>
<input type="number" id="tailLength" name="tailLength" class="numberInput" placeholder="Укажите длину хвоста" min="7" max="120" required><br>
<style>
input.numberInput {
width: 150px;
}
</style>

<label for="dateOfBirth">Дата рождения:</label>
<input type="date" id="dateOfBirth" name="dateOfBirth" required><br>

<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="Введите ваш email" required><br>

<label for="phone">Телефон:</label>
<input type="tel" id="phone" name="phone" placeholder="Введите ваш телефон" required><br>

<input type="checkbox" id="rules" name="rules" value="true" required>
<label for="rules">Я согласен с правилами</label><br>

<button type="submit">Отправить</button>
<button type="reset">Сбросить</button>
</form>
</main>
</body>
</html>