index.edge
Home
/
resources /
views /
submissions /
index.edge
@layout('layouts.main')
@section('content')
<h1 class="is-size03">Submissions</h1>
<p>There are {{ submissions.length }} total submissions.</p>
<section class="box">
<table class="table">
<thead class="thead">
<tr>
<th>Name</th>
<th>Element</th>
<th>Theme</th>
<th>Date Created</th>
<th>Date Published</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody class="tbody">
@each(submission in submissions)
<tr valign="middle">
<td>{{ submission.name }}</td>
<td>{{ submission.element.name }}</td>
<td>{{ submission.element.theme.name }}</td>
<td>{{ TO_LOCALE(submission.creation_date)}}</td>
<td>{{ TO_LOCALE(submission.published_date)}}</td>
<td>{{ submission.status.status }}</td>
<td>
<form action="{{ APP_URL() + route('/submissions.destroy', { id: submission.id }) + '?_method=DELETE'}}" method="post">
{{ csrfField() }}
<button type="submit" name="button" class="is-small button is-danger" onclick="return confirm('Are you sure you want to delete this theme?');">Delete</button>
<a href="{{APP_URL() + route('/submissions.edit', { id: submission.id })}}" class="button is-small is-warning">Edit</a>
</form>
</td>
</tr>
@endeach
</tbody>
</table>
</section>
@endsection