Skip to content
Snippets Groups Projects
Commit ed62ed0d authored by James D'Alton's avatar James D'Alton
Browse files

Edits to submissions table

parent 5780430f
Branches
No related tags found
No related merge requests found
...@@ -61,18 +61,14 @@ const SubsScreen = (props) => { ...@@ -61,18 +61,14 @@ const SubsScreen = (props) => {
let subRows = formsubs.map((el, i) => { let subRows = formsubs.map((el, i) => {
return (<TableRow key={i}> return (<TableRow key={i}>
<TableCell component="th" scope="row"> <TableCell component="th" scope="row">{el.formdata.title}</TableCell>
{el.formdata.title}
</TableCell>
<TableCell align="left">{el.formdata.questions.length}</TableCell> <TableCell align="left">{el.formdata.questions.length}</TableCell>
<TableCell style={{ minWidth: 100 }} align="left">{moment.unix(el.submittedtime?.seconds).format("DD MMM YY")} </TableCell> <TableCell style={{ minWidth: 100 }} align="left">{moment.unix(el.submittedtime?.seconds).format("DD/MM/YYYY")} </TableCell>
<TableCell align="left">{el.submittedbyname} at {el.submittedbyemail}</TableCell> <TableCell align="left">{el.submittedbyname} at {el.submittedbyemail}</TableCell>
<TableCell align="left">{el.sourceowneremail}</TableCell> <TableCell align="left">{el.sourceowneremail}</TableCell>
<TableCell align="right"> <TableCell align="right"><div style={{padding: 16, paddingRight: 0}}>
<div style={{padding: 16, paddingRight: 0}}>
<VisibilityIcon onClick={() => {toggleModalState(el)}} <VisibilityIcon onClick={() => {toggleModalState(el)}}
style={{ cursor: 'pointer', color: '#3498DB', fontSize: 16}} /> 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*/} {/*/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 && {false && userId === el.createdbyid &&
...@@ -90,10 +86,9 @@ const SubsScreen = (props) => { ...@@ -90,10 +86,9 @@ const SubsScreen = (props) => {
<TableHead> <TableHead>
<TableRow> <TableRow>
<TableCell>Title</TableCell> <TableCell>Title</TableCell>
<TableCell align="left">Number of Questions</TableCell> <TableCell align="left">Questions</TableCell>
<TableCell align="left">Submitted time</TableCell> <TableCell align="left">Submitted</TableCell>
<TableCell align="left">Submitted by</TableCell> <TableCell align="left">Submission from</TableCell>
<TableCell align="left">Form created by</TableCell>
<TableCell align="right">Actions</TableCell> <TableCell align="right">Actions</TableCell>
</TableRow> </TableRow>
</TableHead> </TableHead>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment