Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
Form Generator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Théophile BORNON
Form Generator
Commits
ba6e8a22
Commit
ba6e8a22
authored
Jul 19, 2019
by
Théophile BORNON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
textbox in header
parent
b7e1fe71
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
35 deletions
+34
-35
Category.jsx
src/Category.jsx
+12
-12
Section.jsx
src/Section.jsx
+11
-12
SubCategory.jsx
src/SubCategory.jsx
+11
-11
No files found.
src/Category.jsx
View file @
ba6e8a22
...
@@ -81,13 +81,7 @@ function Category(props) {
...
@@ -81,13 +81,7 @@ function Category(props) {
expandIcon=
{
<
ExpandMoreIcon
/>
}
expandIcon=
{
<
ExpandMoreIcon
/>
}
aria
-
controls=
"panel1a-content"
aria
-
controls=
"panel1a-content"
id=
"panel1a-header"
id=
"panel1a-header"
>
>
<
TextField
<
Typography
className=
{
classes
.
heading
}
>
{
category
.
name
}
(
{
Math
.
round
(
category
.
coeff
/
props
.
totalCoeff
*
10000
)
/
100
}
%)
</
Typography
>
</
ExpansionPanelSummary
>
<
ExpansionPanelDetails
>
<
Grid
container
spacing=
{
2
}
>
<
Grid
item
xs=
{
12
}
md=
{
8
}
>
<
TextField
id=
"name"
id=
"name"
label=
"Nom de la categorie"
label=
"Nom de la categorie"
value=
{
category
.
name
}
value=
{
category
.
name
}
...
@@ -97,6 +91,12 @@ function Category(props) {
...
@@ -97,6 +91,12 @@ function Category(props) {
variant=
"outlined"
variant=
"outlined"
fullWidth
fullWidth
/>
/>
<
Typography
className=
{
classes
.
heading
}
>
(
{
Math
.
round
(
category
.
coeff
/
props
.
totalCoeff
*
10000
)
/
100
}
%)
</
Typography
>
</
ExpansionPanelSummary
>
<
ExpansionPanelDetails
>
<
Grid
container
spacing=
{
2
}
>
<
Grid
item
xs=
{
12
}
md=
{
8
}
>
</
Grid
>
</
Grid
>
<
Grid
item
xs=
{
12
}
md=
{
4
}
>
<
Grid
item
xs=
{
12
}
md=
{
4
}
>
<
TextField
<
TextField
...
...
src/Section.jsx
View file @
ba6e8a22
...
@@ -79,13 +79,7 @@ function Section(props) {
...
@@ -79,13 +79,7 @@ function Section(props) {
expandIcon=
{
<
ExpandMoreIcon
/>
}
expandIcon=
{
<
ExpandMoreIcon
/>
}
aria
-
controls=
"panel1a-content"
aria
-
controls=
"panel1a-content"
id=
"panel1a-header"
id=
"panel1a-header"
>
><
TextField
<
Typography
className=
{
classes
.
heading
}
>
{
props
.
section
.
name
}
</
Typography
>
</
ExpansionPanelSummary
>
<
ExpansionPanelDetails
>
<
Grid
container
spacing=
{
2
}
>
<
Grid
item
xs=
{
12
}
>
<
TextField
id=
"name"
id=
"name"
label=
"Nom de la section"
label=
"Nom de la section"
value=
{
section
.
name
}
value=
{
section
.
name
}
...
@@ -95,6 +89,11 @@ function Section(props) {
...
@@ -95,6 +89,11 @@ function Section(props) {
variant=
"outlined"
variant=
"outlined"
fullWidth
fullWidth
/>
/>
</
ExpansionPanelSummary
>
<
ExpansionPanelDetails
>
<
Grid
container
spacing=
{
2
}
>
<
Grid
item
xs=
{
12
}
>
</
Grid
>
</
Grid
>
<
Grid
item
xs=
{
12
}
>
<
Grid
item
xs=
{
12
}
>
...
...
src/SubCategory.jsx
View file @
ba6e8a22
...
@@ -73,7 +73,17 @@ function SubCategory(props) {
...
@@ -73,7 +73,17 @@ function SubCategory(props) {
aria
-
controls=
"panel1a-content"
aria
-
controls=
"panel1a-content"
id=
"panel1a-header"
id=
"panel1a-header"
>
>
<
Typography
className=
{
classes
.
heading
}
>
{
subCategory
.
name
}
<
TextField
id=
"name"
label=
"Nom de la sous categorie"
value=
{
subCategory
.
name
}
onChange=
{
handleChange
}
className=
{
classes
.
textField
}
margin=
"normal"
variant=
"outlined"
fullWidth
/>
<
Typography
className=
{
classes
.
heading
}
>
{
subCategory
.
coeff
!==
0
&&
{
subCategory
.
coeff
!==
0
&&
<>
<>
(
{
Math
.
round
(
subCategory
.
coeff
/
props
.
totalCoeff
*
10000
)
/
100
}
%)
(
{
Math
.
round
(
subCategory
.
coeff
/
props
.
totalCoeff
*
10000
)
/
100
}
%)
...
@@ -85,16 +95,6 @@ function SubCategory(props) {
...
@@ -85,16 +95,6 @@ function SubCategory(props) {
<
ExpansionPanelDetails
>
<
ExpansionPanelDetails
>
<
Grid
container
justify=
"flex-end"
alignItems=
"center"
className=
{
classes
.
root
}
spacing=
{
2
}
>
<
Grid
container
justify=
"flex-end"
alignItems=
"center"
className=
{
classes
.
root
}
spacing=
{
2
}
>
<
Grid
item
xs=
{
12
}
md=
{
10
}
>
<
Grid
item
xs=
{
12
}
md=
{
10
}
>
<
TextField
id=
"name"
label=
"Nom de la sous categorie"
value=
{
subCategory
.
name
}
onChange=
{
handleChange
}
className=
{
classes
.
textField
}
margin=
"normal"
variant=
"outlined"
fullWidth
/>
</
Grid
>
</
Grid
>
{
subCategory
.
type
===
""
&&
{
subCategory
.
type
===
""
&&
<
Grid
item
xs=
{
12
}
md=
{
4
}
>
<
Grid
item
xs=
{
12
}
md=
{
4
}
>
...
...
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