content_mailcnf_domainlist.html 2.47 KB
<table class="table table-hover" >
    <thead>
        <tr>
            <th>#</th>
            <th>ID</th>
            <th>Name</th>
            <th>Active</th>
            <th>Deleted</th>
            <th>Group Id</th>
            <th>Actions</th>
        </tr>
    </thead>
    <tbody>
         {% for list in lists %}
           <tr>
                
            </tr>
            <tr>
            <td>{{ list[8] }} </td>
                <td>{{ list[0] }} </td>
                <td>{{ list[1] }} </td>
                <td >{{ list[5] }}</td>
                <td>{{ list[6] }}</td>
                <td>{{ list[7] }}</td>
                <td>
                <form action="/mailcnf/domain" method="POST"><input type="hidden" size="70" name="table" value="virtual_domains">
                    <input type="hidden" value="domainlist" size="70" name="mainfnc" id="" class="'">
                     <input type="hidden" value="mailcnf" size="70" name="module" id="" class="'">
                     <input type="hidden" size="70" name="fnc" value="edit">
                     <input type="hidden" size="70" name="tableid" value={{ list[0] }} ">
                     <input type="hidden" size="70" name="id" value="{{ list[0] }}">
                     <button type="submit"  class="btn btn-primary btn-block btn-xs">Edit </button>
                </form>
                <form action="/mailcnf/domain" method="POST">
                        <input type="hidden" size="70" name="table" value="virtual_domains">
                        <input type="hidden" value="domainlist" size="70" name="mainfnc" id="" class="'">
                        <input type="hidden" value="mailcnf" size="70" name="module" id="" class="'">
                       
                        <input type="hidden" size="70" name="tableid" value="{{ list[0] }} ">
                        <input type="hidden" size="70" name="id" value="{{ list[0] }}">
                         {% if list[6] == 0 %}
                            <input type="hidden" size="70" name="fnc" value="delete">
                            <button type="submit"  class="btn btn-danger btn-block btn-xs">Delete </button>
                        {% else %}
                             <input type="hidden" size="70" name="fnc" value="undelete">
                            <button type="submit"  class="btn btn-danger btn-block btn-xs">UnDelete </button>
                        {% end %}
                </form>
            </td>
        </tr>
        {% end %}
    </tbody>
</table>