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
No related branches found
No related tags found
No related merge requests found
......@@ -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 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.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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment