DataInventory
Changes
resources/views/submissions/index.edge 15(+13 -2)
Details
resources/views/submissions/index.edge 15(+13 -2)
diff --git a/resources/views/submissions/index.edge b/resources/views/submissions/index.edge
index eea052d..2afa3d7 100644
--- a/resources/views/submissions/index.edge
+++ b/resources/views/submissions/index.edge
@@ -16,17 +16,28 @@
<th>Steward</th>
<th>Date Submitted</th>
<th>Status</th>
+ <th>Action</th>
</tr>
</thead>
<tbody class="tbody">
@each(submission in submissions)
- <tr>
+ <tr valign="middle">
<td>{{ submission.name }}</td>
<td>{{ submission.element.name }}</td>
<td>{{ submission.element.theme.name }}</td>
<td>{{ submission.steward.contact.first_name}} {{ submission.steward.contact.last_name}}</td>
<td>{{ submission.created_at}}</td>
- <td>{{ submission.status.status }}</td>
+ @if(submission.status.status == 'Completed')
+ <td><span class="tag is-success" style="margin: 10px;">{{ submission.status.status }}</span></td>
+ @elseif(submission.status.status == 'In progress')
+ <td><span class="tag is-warning" style="margin: 10px;">{{ submission.status.status }}</span></td>
+ @elseif(submission.status.status == 'Not Started')
+ <td><span class="tag is-dark" style="margin: 10px;">{{ submission.status.status }}</span></td>
+ @elseif(submission.status.status == 'Awaiting Response')
+ <td><span class="tag is-light" style="margin: 10px;">{{ submission.status.status }}</span></td>
+ @else
+ <td>{{ submission.status.status }}</td>
+ @endif
<td>
<form action="{{ route('/themes.destroy', { id: submission.id }) + '?_method=DELETE'}}" method="post">
{{ csrfField() }}