<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" 
     data-keyboard="false"   id="suppliesCatModal" style="min-width:1000px;">
    <div class="modal-dialog  modal-lg wds95">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title">  </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form class="form-horizontal" role="form" action="" method="post" id="gynaRay" enctype="multipart/form-data">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="portlet blue-hoki box">
                                    <div class="portlet-title">
                                        <div class="actions">
                                            <a href="javascript:;" class="btn btn-default btn-sm" id="suppCat_add">
                                                <i class="fa fa-plus"></i> Add New  </a>          
                                        </div>
                                    </div>

                                    <div class="portlet-body">

                                        <div class="row" style="padding-left: 9px;padding-top:5px;overflow-y: scroll;">
                                            <input type="hidden" id="useDateChosen" value="{$useDate}"/>
                                            <table class="table table-striped table-hover table-bordered" >
                                                <thead>
                                                    <tr>
                                                        <th>
                                                            Category
                                                        </th>
                                                        <th class="wds5">
                                                            Supplies
                                                        </th>
                                                        <th class="wds5">
                                                            Delete
                                                        </th>
                                                    </tr>
                                                </thead>
                                                <tbody id="invSuppCatNew">
                                                    {foreach $cats as $cat}
                                                    <tr>
                                                        <td>
                                                            <input type="text" class="form-control updateElement" 
                                                                   data-id="{$cat->id}"  data-colName="name"   id="cat{$cat->id}" 
                                                                   data-tableName="suppliescats"  value="{$cat->name}"/>
                                                        </td>
                                                        <td>
                                                            <a class="btn green btn-xs showSupp" data-id="{$cat->id}" style=" float: left;" href="#" >
                                                                <i class="fa fa-pencil"></i> Show
                                                            </a>
                                                        </td>
                                                        <td>
                                                            <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$cat->id}" 
                                                               style=" float: left;" href="#" data-link="addinvestigation" data-fn="del" 
                                                               data-tableName="suppliescats">
                                                                <i class="fa fa-close"></i>
                                                            </a>
                                                        </td>
                                                    </tr> 

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

                                        <div class="actions">
                                            <button style="float: right; margin: 5px;" type="button" class="btn blue-hoki"  
                                                    id="newSupplyFinish"> Finish </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

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

