add checkbox and fix spaces in name fields
This commit is contained in:
@@ -10,7 +10,7 @@ NameStr = Annotated[
|
|||||||
StringConstraints(
|
StringConstraints(
|
||||||
min_length=2,
|
min_length=2,
|
||||||
max_length=50,
|
max_length=50,
|
||||||
pattern=r'^[A-Za-zА-ЯЁа-яё]+$'
|
pattern=r'^[A-Za-zА-ЯЁа-яё ]+$'
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
class UserAccess(BaseModel):
|
class UserAccess(BaseModel):
|
||||||
|
|||||||
@@ -639,6 +639,8 @@
|
|||||||
Виски</label>
|
Виски</label>
|
||||||
<label class="option"><input type="checkbox" name="drink" value="tequila" id="ctequila">
|
<label class="option"><input type="checkbox" name="drink" value="tequila" id="ctequila">
|
||||||
Текила</label>
|
Текила</label>
|
||||||
|
<label class="option"><input type="checkbox" name="drink" value="sam" id="sam">
|
||||||
|
Самогон</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user