



<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="hjob" data-fun="delhusjob" data-tableName="husbandjobs"><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 $allHusbandJobs as $row}                    
                        <tr class="textcenter" >
                            <td>
                                <a class="deleteelement fa fa-times btn red fleft" data-selectClass="hjob"  data-select2="yes" data-id="{$row->id}" data-link="patients"  data-fun="delhusjob"></a>
                            </td>
                            <td style="width: 100%">
                                <input type="text" class="form-control updateElementSelect" data-selectClass="hjob"  data-select2="yes" data-id="{$row->id}" data-colName="title" data-tableName="husbandjobs" 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>




























