Humanized form captions

Related to #42
This commit is contained in:
Dmitriy Shishkov 2023-09-05 08:42:19 +03:00
parent e9bf7eabaf
commit f2de7c419e
Signed by: dm1sh
GPG Key ID: 027994B0AA357688
2 changed files with 9 additions and 9 deletions

View File

@ -77,7 +77,7 @@ function Filters({ filter, setFilter, filterShown, setFilterShown }: FiltersProp
</Form.Group> </Form.Group>
<Button variant='success' type='submit'> <Button variant='success' type='submit'>
Отправить Выбрать
</Button> </Button>
</Form> </Form>
</Modal.Body> </Modal.Body>

View File

@ -51,15 +51,15 @@ function AddPage() {
<CardLayout text='Опубликовать объявление'> <CardLayout text='Опубликовать объявление'>
<Form onSubmit={handleSubmit}> <Form onSubmit={handleSubmit}>
<Form.Group className='mb-3' controlId='name'> <Form.Group className='mb-3' controlId='name'>
<Form.Label>Заголовок объявления</Form.Label> <Form.Label>Как ошляпите объявление?</Form.Label>
<Form.Control type='text' required name='name' /> <Form.Control type='text' required name='name' />
</Form.Group> </Form.Group>
<Form.Group className='mb-3' controlId='category'> <Form.Group className='mb-3' controlId='category'>
<Form.Label>Категория</Form.Label> <Form.Label>Какая категория?</Form.Label>
<Form.Select required name='category'> <Form.Select required name='category'>
<option value='' hidden> <option value='' hidden>
Выберите категорию Выберите категорию предмета
</option> </option>
{categories.map(category => {categories.map(category =>
<option key={category} value={category}>{categoryNames[category]}</option> <option key={category} value={category}>{categoryNames[category]}</option>
@ -68,12 +68,12 @@ function AddPage() {
</Form.Group> </Form.Group>
<Form.Group className='mb-3' controlId='bestBy'> <Form.Group className='mb-3' controlId='bestBy'>
<Form.Label>Срок годности</Form.Label> <Form.Label>Когда закрыть объявление?</Form.Label>
<Form.Control type='date' required name='bestBy' /> <Form.Control type='date' required name='bestBy' />
</Form.Group> </Form.Group>
<Form.Group className='mb-3' controlId='address'> <Form.Group className='mb-3' controlId='address'>
<Form.Label>Адрес выдачи</Form.Label> <Form.Label>Где забирать?</Form.Label>
<div className='mb-3'> <div className='mb-3'>
<MapContainer <MapContainer
scrollWheelZoom={false} scrollWheelZoom={false}
@ -103,7 +103,7 @@ function AddPage() {
</Form.Group> </Form.Group>
<Form.Group className='mb-3' controlId='description'> <Form.Group className='mb-3' controlId='description'>
<Form.Label>Описание</Form.Label> <Form.Label>Пару слов о вас и предмете?</Form.Label>
<Form.Control <Form.Control
as='textarea' as='textarea'
name='description' name='description'
@ -113,7 +113,7 @@ function AddPage() {
</Form.Group> </Form.Group>
<Form.Group className='mb-3' controlId='src'> <Form.Group className='mb-3' controlId='src'>
<Form.Label>Иллюстрация (фото или видео)</Form.Label> <Form.Label>Загрузите гляделки? (фото или видео)</Form.Label>
<Form.Control <Form.Control
type='file' type='file'
name='src' name='src'
@ -124,7 +124,7 @@ function AddPage() {
<Form.Group className='mb-3' controlId='metro'> <Form.Group className='mb-3' controlId='metro'>
<Form.Label> <Form.Label>
Станция метро Где метро поближе?
</Form.Label> </Form.Label>
<Form.Select name='metro' defaultValue={DEFAULT_LINE}> <Form.Select name='metro' defaultValue={DEFAULT_LINE}>
{lines.map( {lines.map(