<div class="context-main-bg context-main p-3">
    <legend class="text-center">Resume Positions</legend>
    <hr>
    {ADMIN_BREADCRUMBS}
    <form action="{ROOT_URL}admin/resume/delete" method="post">
        <table class="table table-striped">
            <thead>
                <tr>
                    <th style="width: 30%">Name</th>
                    <th style="width: 20%">Position</th>
                    <th style="width: 10%">Start</th>
                    <th style="width: 10%">End</th>
                    <th style="width: 10%"></th>
                    <th style="width: 10%"></th>
                    <th style="width: 10%">
                        <INPUT type="checkbox" onchange="checkAll(this)" name="check.b" value="P_[]"/>
                    </th>
                </tr>
            </thead>
            <tbody>
                {LOOP}
                <tr>
                    <td><a href="{ROOT_URL}admin/resume/view/{ID}" class="text-decoration-none">{name}</a></td>
                    <td>{position}</td>
                    <td>{prettyStart}</td>
                    <td>{prettyEnd}</td>
                    <td><a href="{ROOT_URL}admin/resume/edit/{ID}" class="btn btn-sm btn-warning" role="button"><i class="fa fa-fw fa-pencil"></i></a></td>
                    <td><a href="{ROOT_URL}admin/resume/delete/{ID}" class="btn btn-sm btn-danger" role="button"><i class="fa fa-fw fa-trash"></i></a></td>
                    <td>
                        <input type="checkbox" value="{ID}" name="P_[]">
                    </td>
                </tr>
                {/LOOP}
                {ALT}
                <tr>
                    <td colspan="7">
                        No results to show.
                    </td>
                </tr>
                {/ALT}
            </tbody>
        </table>
        <a href="{ROOT_URL}admin/resume/create" class="btn btn-sm btn-primary" role="button">Create</a>
        <button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></button>
    </form>
</div>