Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Automatically-Generated-Cyber-Security-Compliance-Engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jda1g15
Automatically-Generated-Cyber-Security-Compliance-Engine
Commits
ed62ed0d
Commit
ed62ed0d
authored
5 years ago
by
James D'Alton
Browse files
Options
Downloads
Patches
Plain Diff
Edits to submissions table
parent
5780430f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
compforge/src/Components/SubsScreen.react.jsx
+6
-11
6 additions, 11 deletions
compforge/src/Components/SubsScreen.react.jsx
with
6 additions
and
11 deletions
compforge/src/Components/SubsScreen.react.jsx
+
6
−
11
View file @
ed62ed0d
...
...
@@ -61,19 +61,15 @@ const SubsScreen = (props) => {
let
subRows
=
formsubs
.
map
((
el
,
i
)
=>
{
return
(<
TableRow
key
=
{
i
}
>
<
TableCell
component
=
"th"
scope
=
"row"
>
{
el
.
formdata
.
title
}
</
TableCell
>
<
TableCell
component
=
"th"
scope
=
"row"
>
{
el
.
formdata
.
title
}
</
TableCell
>
<
TableCell
align
=
"left"
>
{
el
.
formdata
.
questions
.
length
}
</
TableCell
>
<
TableCell
style
=
{
{
minWidth
:
100
}
}
align
=
"left"
>
{
moment
.
unix
(
el
.
submittedtime
?.
seconds
).
format
(
"
DD
MM
M
YY
"
)
}
</
TableCell
>
<
TableCell
style
=
{
{
minWidth
:
100
}
}
align
=
"left"
>
{
moment
.
unix
(
el
.
submittedtime
?.
seconds
).
format
(
"
DD
/
MM
/YY
YY
"
)
}
</
TableCell
>
<
TableCell
align
=
"left"
>
{
el
.
submittedbyname
}
at
{
el
.
submittedbyemail
}
</
TableCell
>
<
TableCell
align
=
"left"
>
{
el
.
sourceowneremail
}
</
TableCell
>
<
TableCell
align
=
"right"
>
<
div
style
=
{
{
padding
:
16
,
paddingRight
:
0
}
}
>
<
TableCell
align
=
"right"
><
div
style
=
{
{
padding
:
16
,
paddingRight
:
0
}
}
>
<
VisibilityIcon
onClick
=
{
()
=>
{
toggleModalState
(
el
)}
}
style
=
{
{
cursor
:
'
pointer
'
,
color
:
'
#3498DB
'
,
fontSize
:
16
}
}
/>
{
/*/This is set to false to be disabled , you may enablde later if requires, make sure you import the correct action in dispatch*/
}
{
false
&&
userId
===
el
.
createdbyid
&&
<
DeleteIcon
onClick
=
{
()
=>
{
dispatch
(
removeSubOrForm
(
'
submission
'
,
el
.
docid
))
}
}
...
...
@@ -90,10 +86,9 @@ const SubsScreen = (props) => {
<
TableHead
>
<
TableRow
>
<
TableCell
>
Title
</
TableCell
>
<
TableCell
align
=
"left"
>
Number of Questions
</
TableCell
>
<
TableCell
align
=
"left"
>
Submitted time
</
TableCell
>
<
TableCell
align
=
"left"
>
Submitted by
</
TableCell
>
<
TableCell
align
=
"left"
>
Form created by
</
TableCell
>
<
TableCell
align
=
"left"
>
Questions
</
TableCell
>
<
TableCell
align
=
"left"
>
Submitted
</
TableCell
>
<
TableCell
align
=
"left"
>
Submission from
</
TableCell
>
<
TableCell
align
=
"right"
>
Actions
</
TableCell
>
</
TableRow
>
</
TableHead
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment