lab4 some minor fixes

This commit is contained in:
Zakharov_Rostislav 2023-12-05 13:52:19 +04:00
parent 00258630be
commit 0833817b74
9 changed files with 20 additions and 20 deletions

View File

@ -23,7 +23,7 @@ const AuthorEdit = () => {
</div> </div>
<Form id="books-form" noValidate validated={validated} onSubmit={handleSubmit}> <Form id="books-form" noValidate validated={validated} onSubmit={handleSubmit}>
<Form.Group className="mb-2" controlId="author"> <Form.Group className="mb-2" controlId="author">
<Form.Label htmlFor="author" className="form-label">Автор</Form.Label> <Form.Label>Автор</Form.Label>
<Form.Select name='selected' required> <Form.Select name='selected' required>
</Form.Select> </Form.Select>
</Form.Group> </Form.Group>

View File

@ -9,7 +9,7 @@ const AuthorsTable = () => {
</h1> </h1>
<Button as={Link} to="/author-edit" className='lib-btn'>Добавить автора</Button> <Button as={Link} to="/author-edit" className='lib-btn'>Добавить автора</Button>
<Table className="mt-2 lib-table" striped> <Table className="mt-2 lib-table" striped>
<thead> <thead><tr>
<th scope="col"></th> <th scope="col"></th>
<th scope="col" className="w-25">Имя</th> <th scope="col" className="w-25">Имя</th>
<th scope="col" className="w-25">Страна</th> <th scope="col" className="w-25">Страна</th>
@ -17,7 +17,7 @@ const AuthorsTable = () => {
<th scope="col" className="w-25">Год смерти</th> <th scope="col" className="w-25">Год смерти</th>
<th scope="col"></th> <th scope="col"></th>
<th scope="col"></th> <th scope="col"></th>
</thead> </tr></thead>
<tbody></tbody> <tbody></tbody>
</Table> </Table>
</> </>

View File

@ -23,7 +23,7 @@ const BookEdit = () => {
</div> </div>
<Form id="books-form" noValidate validated={validated} onSubmit={handleSubmit}> <Form id="books-form" noValidate validated={validated} onSubmit={handleSubmit}>
<Form.Group className="mb-2" controlId="author"> <Form.Group className="mb-2" controlId="author">
<Form.Label htmlFor="author" className="form-label">Автор</Form.Label> <Form.Label>Автор</Form.Label>
<Form.Select name='selected' required> <Form.Select name='selected' required>
</Form.Select> </Form.Select>
</Form.Group> </Form.Group>
@ -32,7 +32,7 @@ const BookEdit = () => {
<Form.Control type="text" name="name" required/> <Form.Control type="text" name="name" required/>
</Form.Group> </Form.Group>
<Form.Group className="mb-2" controlId="category"> <Form.Group className="mb-2" controlId="category">
<Form.Label htmlFor="category" className="form-label">Категория</Form.Label> <Form.Label>Категория</Form.Label>
<Form.Select name='selected' required> <Form.Select name='selected' required>
</Form.Select> </Form.Select>
</Form.Group> </Form.Group>

View File

@ -9,7 +9,7 @@ const BooksTable = () => {
</h1> </h1>
<Button as={Link} to="/book-edit" className='lib-btn'>Добавить книгу</Button> <Button as={Link} to="/book-edit" className='lib-btn'>Добавить книгу</Button>
<Table className="mt-2 lib-table" striped> <Table className="mt-2 lib-table" striped>
<thead> <thead><tr>
<th scope="col"></th> <th scope="col"></th>
<th scope="col" className="w-25">Автор</th> <th scope="col" className="w-25">Автор</th>
<th scope="col" className="w-25">Название</th> <th scope="col" className="w-25">Название</th>
@ -18,7 +18,7 @@ const BooksTable = () => {
<th scope="col"></th> <th scope="col"></th>
<th scope="col"></th> <th scope="col"></th>
<th scope="col"></th> <th scope="col"></th>
</thead> </tr></thead>
<tbody></tbody> <tbody></tbody>
</Table> </Table>
</> </>

View File

@ -9,13 +9,13 @@ const CategoriesTable = () => {
</h1> </h1>
<Button as={Link} to="/category-edit" className='lib-btn'>Добавить категорию</Button> <Button as={Link} to="/category-edit" className='lib-btn'>Добавить категорию</Button>
<Table className="mt-2 lib-table" striped> <Table className="mt-2 lib-table" striped>
<thead> <thead><tr>
<th scope="col"></th> <th scope="col"></th>
<th scope="col" className="w-25">Категория</th> <th scope="col" className="w-25">Категория</th>
<th scope="col" className="w-25">Описание</th> <th scope="col" className="w-25">Описание</th>
<th scope="col"></th> <th scope="col"></th>
<th scope="col"></th> <th scope="col"></th>
</thead> </tr></thead>
<tbody></tbody> <tbody></tbody>
</Table> </Table>
</> </>

View File

@ -20,7 +20,7 @@ const SearchForm = () => {
</h1> </h1>
<Form id="books-form" noValidate validated={validated} onSubmit={handleSubmit}> <Form id="books-form" noValidate validated={validated} onSubmit={handleSubmit}>
<Form.Group className="mb-2" controlId="author"> <Form.Group className="mb-2" controlId="author">
<Form.Label htmlFor="author" className="form-label">Автор</Form.Label> <Form.Label>Автор</Form.Label>
<Form.Select name='selected' required> <Form.Select name='selected' required>
</Form.Select> </Form.Select>
</Form.Group> </Form.Group>
@ -29,7 +29,7 @@ const SearchForm = () => {
<Form.Control type="text" name="name" required/> <Form.Control type="text" name="name" required/>
</Form.Group> </Form.Group>
<Form.Group className="mb-2" controlId="category"> <Form.Group className="mb-2" controlId="category">
<Form.Label htmlFor="category" className="form-label">Категория</Form.Label> <Form.Label>Категория</Form.Label>
<Form.Select name='selected' required> <Form.Select name='selected' required>
</Form.Select> </Form.Select>
</Form.Group> </Form.Group>

View File

@ -10,7 +10,7 @@ const navigate = useNavigate();
</h1> </h1>
<Button className="lib-btn" onClick={() => navigate(-1)}>Назад</Button> <Button className="lib-btn" onClick={() => navigate(-1)}>Назад</Button>
<Table className="mt-2 lib-table" striped> <Table className="mt-2 lib-table" striped>
<thead> <thead><tr>
<th scope="col"></th> <th scope="col"></th>
<th scope="col" className="w-25">Автор</th> <th scope="col" className="w-25">Автор</th>
<th scope="col" className="w-25">Название</th> <th scope="col" className="w-25">Название</th>
@ -18,7 +18,7 @@ const navigate = useNavigate();
<th scope="col" className="w-25">Год издания</th> <th scope="col" className="w-25">Год издания</th>
<th scope="col"></th> <th scope="col"></th>
<th scope="col"></th> <th scope="col"></th>
</thead> </tr></thead>
<tbody></tbody> <tbody></tbody>
</Table> </Table>
</> </>

View File

@ -10,7 +10,7 @@ const UserFavorities = () => {
</h1> </h1>
<Button className="w-25 mt-2 lib-btn" onClick={() => navigate(-1)}>Назад</Button> <Button className="w-25 mt-2 lib-btn" onClick={() => navigate(-1)}>Назад</Button>
<Table className="mt-2 lib-table" striped> <Table className="mt-2 lib-table" striped>
<thead> <thead><tr>
<th scope="col"></th> <th scope="col"></th>
<th scope="col" className="w-25">Автор</th> <th scope="col" className="w-25">Автор</th>
<th scope="col" className="w-25">Название</th> <th scope="col" className="w-25">Название</th>
@ -18,7 +18,7 @@ const UserFavorities = () => {
<th scope="col" className="w-25">Год издания</th> <th scope="col" className="w-25">Год издания</th>
<th scope="col"></th> <th scope="col"></th>
<th scope="col"></th> <th scope="col"></th>
</thead> </tr></thead>
<tbody></tbody> <tbody></tbody>
</Table> </Table>
</> </>

View File

@ -1,16 +1,16 @@
import { Button, Table } from 'react-bootstrap'; import { Button, Table } from 'react-bootstrap';
import { useNavigate } from 'react-router-dom'; import { Link } from 'react-router-dom';
const UserHistory = () => { const UserHistory = () => {
const navigate = useNavigate(); // const navigate = useNavigate();
return ( return (
<> <>
<h1 className='mt-2 text-md-start text-center'> <h1 className='mt-2 text-md-start text-center'>
История. История.
</h1> </h1>
<Button className="w-25 mt-2 lib-btn" onClick={() => navigate(-1)}>Назад</Button> <Button className="w-25 mt-2 lib-btn" as={Link} to="/user-page">Назад</Button>
<Table className="mt-2 lib-table" striped> <Table className="mt-2 lib-table" striped>
<thead> <thead><tr>
<th scope="col"></th> <th scope="col"></th>
<th scope="col" className="w-25">Автор</th> <th scope="col" className="w-25">Автор</th>
<th scope="col" className="w-25">Название</th> <th scope="col" className="w-25">Название</th>
@ -19,7 +19,7 @@ const UserHistory = () => {
<th scope="col" className="w-25">Время чтения</th> <th scope="col" className="w-25">Время чтения</th>
<th scope="col"></th> <th scope="col"></th>
<th scope="col"></th> <th scope="col"></th>
</thead> </tr></thead>
<tbody></tbody> <tbody></tbody>
</Table> </Table>
</> </>