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




















