<h1 style="text-align: center;">Prisons</h1>
<form method="post" action="/admin/editor/prisons">
    <table width="100%" style="">
        <tr>
            <td>Nick</td>
            <td><input type="text" name="Name" placeholder="Nick"></td>
        </tr>
        <td>Reason</td>
        <td><input type="text" name="Reason" placeholder="Reason"></td>
        </tr>
        <td>Freedom date</td>
        <td><input name="Date" value="0" type="date"><input type="time" value="0" name="Time"></td>
        </tr>
        <td colspan="2"><input type="submit" name="add_prison" class="btn btn-primary" value="Save"></td>
        </tr>
    </table>
    <form method="post" action="/admin/editor/prisons">
        <table style="margin-top: 12px;" width="100%" style="">
            <tr class="head-table">
                <td>id</td>
                <td>Reason</td>
                <td>ItemExcType =</td>
                <td>Free</td>
            </tr>
            {if !empty($Items)}

                {$i = 1}
                {foreach $Items key=key item=item}
                    {if $i%2 == 0}
                        <tr style="background: rgba(164,157,157,0.5)">
                            {else}
                        <tr>
                    {/if}
                    <td>{$item[0]}</td>
                    <td>{$item[5]}</td>
                    <td>{$item[6]}</td>

                    <td><button name="delete_prison" value="{$prison.Name}">Free</button></td>
                    </tr>
                    {$i=$i+1}
                {/foreach}

            {else}
                <p>List Empty</p>
            {/if}
        </table>
    </form>
