


<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"> الحالة </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="hstatus"
                        data-fun="delhusstatus" data-tableName="husstatus"><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=""><center>الحالة</center></th>
                    </tr>
                    </thead>
                    <tbody id="loaddetectionnew">
                        {assign var=i value=1}
                        {foreach $allHusStatus as $row}                    
                        <tr class="textcenter" >
                            <td>
                                <a class="deleteelement fa fa-times btn red fleft" data-selectClass="hstatus"  
                                   data-select2="yes" data-id="{$row->id}" data-link="patients"  data-fun="delhusstatus"></a>
                            </td>
                            <td style="width: 100%">
                                <input type="text" class="form-control updateElementSelect" data-selectClass="hstatus"  
                                       data-select2="yes" data-id="{$row->id}" data-colName="title" data-tableName="husstatus" 
                                       value="{$row->title}"/>
                            </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>









