Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESYTD
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Дияр Амангельды
ESYTD
Commits
ed3fcbc4
Commit
ed3fcbc4
authored
Jul 24, 2024
by
Merekeyev Dias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed crudPages css bug
parent
976ce41c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
125 additions
and
6 deletions
+125
-6
src/pages/AuthPage/AuthPage.module.css
src/pages/AuthPage/AuthPage.module.css
+1
-1
src/pages/AuthPage/AuthPage.tsx
src/pages/AuthPage/AuthPage.tsx
+5
-5
src/pages/addPage.tsx
src/pages/addPage.tsx
+119
-0
No files found.
src/pages/AuthPage/AuthPage.css
→
src/pages/AuthPage/AuthPage.
module.
css
View file @
ed3fcbc4
...
...
@@ -7,7 +7,7 @@
padding
:
24px
;
background-color
:
rgba
(
20
4
,
204
,
204
,
1
);
background-color
:
rgba
(
20
9
,
209
,
209
,
0.866
);
border-radius
:
8px
;
}
...
...
src/pages/AuthPage/AuthPage.tsx
View file @
ed3fcbc4
import
{
Input
,
Typography
,
Button
}
from
'
antd
'
;
import
React
from
'
react
'
;
import
'
./AuthPag
e.css
'
;
import
styles
from
'
./AuthPage.modul
e.css
'
;
const
AuthPage
:
React
.
FC
=
()
=>
{
return
(
<
div
className=
"wrapper"
>
<
div
className=
"form"
>
<
div
className=
{
styles
.
wrapper
}
>
<
div
className=
{
styles
.
form
}
>
<
Typography
.
Title
level=
{
5
}
>
Токен
</
Typography
.
Title
>
<
Input
placeholder=
"введите токен"
className=
"input_controller"
className=
{
styles
.
input_controller
}
/>
<
Button
className=
"form_btn"
type=
"primary"
>
Войти
</
Button
>
<
Button
className=
{
styles
.
form_btn
}
type=
"primary"
>
Войти
</
Button
>
</
div
>
</
div
>
);
...
...
src/pages/addPage.tsx
0 → 100644
View file @
ed3fcbc4
import
React
from
"
react
"
;
import
{
Form
,
Input
,
Button
}
from
"
antd
"
;
import
{
useNavigate
}
from
"
react-router
"
;
import
"
../../src/styles/Home/addPage.css
"
;
const
{
Item
}
=
Form
;
const
AddPage
:
React
.
FC
=
()
=>
{
const
navigate
=
useNavigate
();
return
(
<
div
className=
"container"
>
<
Form
layout=
"vertical"
name=
"organization_form"
initialValues=
{
{
remember
:
true
}
}
className=
"form-add"
>
<
Item
label=
"БИН организации"
name=
"bin"
rules=
{
[
{
required
:
true
,
message
:
"
Пожалуйста, введите БИН организации!
"
},
]
}
>
<
Input
maxLength=
{
128
}
placeholder=
"Максимальная длина: 128 символов"
/>
</
Item
>
<
Item
label=
"Код организации"
name=
"code"
rules=
{
[
{
required
:
true
,
message
:
"
Пожалуйста, введите код организации!
"
},
]
}
>
<
Input
maxLength=
{
128
}
placeholder=
"Максимальная длина: 128 символов"
/>
</
Item
>
<
Item
label=
"Наименование организации"
name=
"name"
rules=
{
[
{
required
:
true
,
message
:
"
Пожалуйста, введите наименование организации!
"
,
},
]
}
>
<
Input
maxLength=
{
128
}
placeholder=
"Максимальная длина: 128 символов"
/>
</
Item
>
<
Item
label=
"Адрес системы/хост"
name=
"address"
rules=
{
[
{
required
:
true
,
message
:
"
Пожалуйста, введите адрес системы/хост!
"
,
},
]
}
>
<
Input
maxLength=
{
128
}
placeholder=
"Максимальная длина: 128 символов"
/>
</
Item
>
<
Item
label=
"Логин"
name=
"login"
rules=
{
[{
required
:
true
,
message
:
"
Пожалуйста, введите логин!
"
}]
}
>
<
Input
maxLength=
{
128
}
placeholder=
"Максимальная длина: 128 символов"
/>
</
Item
>
<
Item
label=
"Пароль"
name=
"password"
rules=
{
[{
required
:
true
,
message
:
"
Пожалуйста, введите пароль!
"
}]
}
>
<
Input
.
Password
maxLength=
{
128
}
placeholder=
"Максимальная длина: 128 символов"
/>
</
Item
>
<
div
className=
"form-footer"
>
<
Item
style=
{
{
textAlign
:
"
right
"
}
}
className=
"form-footer-item"
>
<
Button
type=
"default"
style=
{
{
marginRight
:
"
8px
"
}
}
onClick=
{
()
=>
navigate
(
"
/
"
)
}
>
Отмена
</
Button
>
<
Button
type=
"primary"
htmlType=
"submit"
>
Сохранить
</
Button
>
</
Item
>
</
div
>
</
Form
>
</
div
>
);
};
export
default
AddPage
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment