



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

















