<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            {$shcontrollname}
        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                {$breadcrumbs}
            </ul>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row">
            <div class="col-md-12">
                <div class="portlet light bg-inverse">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-equalizer font-red-sunglo"></i>
                            <span class="caption-subject font-red-sunglo bold uppercase">Show in {$shcontrollname}</span>
                        </div>
                        <div class="actions" id="nestable_list_menu">


                            <a class="btn default btn-xs blue tooltips" href="{$hosturl}/controllers/{$controllname}.php" data-container="body" data-placement="top" data-original-title="Add new">
                                <i class="fa  fa-plus"></i>
                                Add new
                            </a>

                        </div>
                    </div>
                    <div class="portlet-body form">

                        <table class="table table-hover" id="controllpropr">
                            <thead>
                                <tr>
                                    <th>
                                        Name
                                    </th>
                                    <th>
                                        Username
                                    </th>
                                    <th>
                                        Role
                                    </th>
                                    <th>
                                        Email address
                                    </th>
                                    <th width="5%"></th>
                                    <th width="5%"></th>
                                </tr>
                            </thead>
                            <tbody>
                                {foreach $users as $single}
                                <tr class="odd gradeX">
                                    <td>
                                        {$single.name}
                                    </td>
                                    <td>
                                        {$single.user_name}
                                    </td>
                                    <td>
                                        {foreach $roles as $rol}
                                        {if $single.role_id eq $rol.id}{$rol.name}{/if}
                                        {/foreach}
                                    </td>
                                    <td>
                                        {$single.user_email}
                                    </td>
                                    <td>
                                        <a href="{$hosturl}/controllers/{$controllname}.php?ac=edit&id={$single.user_id}" class="btn blue-hoki btn-xs"><i class="fa fa-pencil"></i> Edit</a>
                                    </td>
                                    <td>
                                        {if $single.user_id neq 1}
                                        <a class="btn grey-cascade btn-xs deletemsg" data-id="{$single.user_id}" data-link="{$controllname}"><i class="fa fa-times"></i> Delete</a>
                                        {else}
                                        <a class="btn grey-cascade btn-xs deletemsg disabled" data-id="{$single.user_id}" data-link="{$controllname}"><i class="fa fa-times"></i> Delete</a>
                                        {/if}
                                    </td>
                                </tr>
                                {/foreach}
                            </tbody>
                        </table>


                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT -->