<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            <h4 class="modal-title"> {$col}</h4>
        </div>
        <div class="modal-body">
            <div class="portlet-body form">
                <input type="hidden" id="controllName" value="111"/>
                <!--button type="button" class="btn btn-xs blue fright addwtRow" id="addwtRow" data-selectClass="bloodtype" data-fun="delbl" data-tableName="bloodtypes"><i class="fa fa-plus"></i> إضافة</button></td-->
                <table cellspacing="10" width="100%" id="ptAddTbl" class="ptAddTbl">
                    <thead>
                        <tr >
                            <th class="textcenter">حذف</th>
                            <th class="textcenter" style="text-align: center;"> {$col}</th>
                        </tr>
                    </thead>
                    <tbody id="loaddetectionnew">
                        {assign var=i value=1}
                        {foreach $allData as $row}                    
                        <tr class="textcenter" >
                            <td>
                                <a class="deleteelement fa fa-times btn red fleft" data-selectClass="{$selectId}"  data-select2="yes" data-id="{$row->id}" data-link="gyna"  data-fun="deldata" data-tableName="{$table}"></a>
                            </td>
                            <td style="width: 100%">
                                <input type="text" class="form-control updateElementSelect" data-selectClass="{$selectId}"  data-select2="yes" data-id="{$row->id}" data-colName="name" data-tableName="{$table}" value="{$row->name}"/>
                            </td>

                        </tr>

                        {capture assign=i}{$i+1}{/capture}
                        {/foreach}
                    </tbody>
                </table>
            </div>
        </div>

        <div class="modal-footer">
            <button type="button" class="btn default" data-dismiss="modal">إغلاق</button>
        </div>
        <!-- /.modal-content -->
    </div>
</div>




















