
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height: 5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> Analysis Devices
                        </div>
                        <div class="actions">

                            <a href="{$hosturl}/controllers/{$controllname}.php"  accesskey=""class="btn btn-default btn-sm" id="labDeviceAdd">
                                <i class="fa fa-plus"></i> Add New  </a>


                        </div>

                    </div>
                    <div class="portlet-body" >
                        <div class="table-toolbar">

                        </div>
                        <table class="table table-striped table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th>     Device Name     </th>
                                    <th class="wds9">  Edit</th>
                                    <th class="wds9">     Delete   </th>
                                </tr>
                            </thead>
                            <tbody  id="devicesContainer" >

                                {foreach $devices as $device}
                                <tr>
                                    <td>{$device->name} </td>
                                    <td>
                                        <a href="{$hosturl}/controllers/{$controllname}.php?ac=edit&id={$device->id}" 
                                           class="btn green btn-block btn-xs"><i class="fa fa-pencil"></i> Edit</a>
                                    </td>
                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$device->id}" 
                                           style=" float: left;" href="#" data-link="{$controllname}" 
                                           data-fn="del" data-tableName="labdevices">
                                            <i class="fa fa-close"></i>
                                        </a>
                                    </td>
                                </tr> 

                                {/foreach}
                            </tbody>
                        </table>



                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

<input type="hidden" id="controllName" value="adddevices"/>



