<div class="row">
    <input type="hidden" id="newOrgPatNo" value="{$orgPatNo->id}"/>
    <div class="col-md-5">
        <div class="form-group form-md-line-input form-md-floating-label has-info">
            <input type="text"   class="form-control updateElement"
                   data-colName="patient_no" data-tableName="organizations_patient_no"
                   data-id="{$orgPatNo->id}"     value="{$orgPatNo->patient_no}"   />
            <label for="form_control_1" class="txtc">الرقم  </label>
        </div>
    </div>

    <div class="col-md-5">
        <div class="form-group form-md-line-input form-md-floating-label has-info">
            <select  class="form-control  updateElement" id="orgPatNoOrgId_{$orgPatNo->id}"
                     placeholder="اختر  "   data-tableName="organizations_patient_no"
                     data-colName="organization_id" data-id="{$orgPatNo->id}" >
                <option value="0" selected>لا يوجد </option>
                {foreach $organizations as $row}
                <option value="{$row->id}" {if $orgPatNo->organization_id eq $row->id}selected{/if}  >{$row->organization_name}</option>
                {/foreach}
            </select>
            <label for="form_control_1" class="txtc"> </label>
            <span class="input-group-addon go2r">تابع ل    </span>
        </div>
    </div>



    <div class="col-md-1" style="margin-top: 25px;">
        <a class="btn grey-cascade btn-xs deletemsgEX"
           data-tableName="organizations_patient_no"
           data-id="{$orgPatNo->id}" style=" float: left;" href="#"
           data-link="instruction" data-fn="delinst">  <i class="fa fa-close"></i>
        </a>
    </div>

</div>


{literal}
<script type="text/javascript" >
    var id = $('#newOrgPatNo').val();
    $('#newOrgPatNo').remove();
    $("#orgPatNoOrgId_" + id).select2({placeholder: "Select", allowClear: true});
</script>
{/literal}