<div class="tab-pane   " id="tab_3">
    <div class="portlet box grey-cascade">
        <div class="portlet-title">
            <div class="caption">Embryo Freezing</div>
            <div class="actions"></div>
        </div>
        <div class="portlet-body">
            <div class="row">
                <div class="portlet-body form border-gray2 mb-5" >
                    <div class="row border-gray2 "  style=" padding-bottom: 7px !important;">
                        <div class="row px-15">

                            <div class=" col-md-6">
                                <div class=" col-md-6">
                                    <div class="form-group">
                                        <label class="col-md-5 control-label" for="form_control_1">
                                            No Of Straws :
                                        </label>
                                        <div class="col-md-6">
                                            <input type="text" name="no_straws" class="form-control input-sm updateEmbryoLab straws positiveNo" 
                                                   id="strawsNo"  value="{$updatedate.no_straws}" data-colName="no_straws" 
                                                   data-tableName="embryoslab">

                                        </div>
                                    </div>
                                </div>

                                <div class=" col-md-6">
                                    <div class="form-group">
                                        <label class="col-md-5 control-label" for="form_control_1">
                                            No Of Embryos :
                                        </label>
                                        <div class="col-md-6">
                                            <input type="text" name="no_embryos" class="form-control input-sm updateEmbryoLab" id="form_control_1"  value="{$updatedate.no_embryos}" data-colName="no_embryos" data-tableName="embryoslab">

                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-6">
                                    <div class="form-group ">
                                        <label class="col-md-5 control-label" for="form_control_1">Day of Freezing :</label>
                                        <div class="col-md-6">
                                            <select class="form-control select2me updateEmbryoLab et_day"  required="required" id="et_day"  
                                                    data-placeholder="Select..." name="dayoffreezzing" data-colName="dayoffreezzing" 
                                                    data-tableName="embryoslab"  data-id="{$updatedate.id}" data-target="dateFreezing">
                                                {foreach  $et_day_array as $one}
                                                <option value="{$one}"{if $updatedate.dayoffreezzing eq $one}selected{/if}>{$one}</option>
                                                {/foreach}

                                            </select>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-6">
                                    <div class="form-group ">
                                        <label class="col-md-5 control-label" for="form_control_1">Date :</label>
                                        <div class="col-md-6">
                                            <input type="text" class="form-control  datepicker updateEmbryoLab"   readonly
                                                   value="{$updatedate.date_freezing}" name="date_freezing"  
                                                   data-colName="date_freezing" data-tableName="embryoslab"  
                                                   data-id="{$updatedate.id}" id="dateFreezing"/>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-12">
                                    <div class="form-group ">
                                        <label class="col-md-2 wds21 control-label" for="form_control_1">Embryologist :</label>
                                        <div class="col-md-6 wds77">
                                            <input type="hidden" class="form-control updateEmbryoLab "    
                                                   id="freeze_embryologist_id" 
                                                   data-colName="freeze_embryologist_id" data-tableName="embryoslab" >
                                            <input type="hidden" class="form-control"    id="freeze_embryologist_id_value"  
                                                   value="{$updatedate.freeze_embryologist_id}" >
                                            <input type="hidden" class="form-control"    id="freeze_embryologist_name"  
                                                   value="{$updatedate.freeze_embryologist_name}" >
                                        </div>
                                    </div>

                                </div>

                            </div>

                            {if $programesetting->tanks_view == 1 }
                            <div class=" col-md-1">
                                <button type="button" class="btn btn-primary" id="tankLocationBtn">
                                    Tank Location 
                                </button>
                            </div>

                            <div class=" col-md-5 wds35 fright">
                                <table>
                                    <tbody>
                                        <tr><th>Locations</th></tr>
                                        <tr style="background-color: #ffffff;" id='cellsContainer'>
                                            <td>
                                                {foreach $cells as $cell}
                                                <span class="tankLocationSpan btn  btn-danger"  data-location="{$cell.location}" data-no="{$cell.btn_no}">
                                                    Can {$cell.location}{$cell.btn_no}
                                                    ({$cell.rows_letter}{$cell.row_no}  - 
                                                    {$cell.col_no}  -  
                                                    cell{$cell.cell_no}) 
                                                </span>
                                                {/foreach}
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            {elseif $programesetting->tanks_view == 2 } 
                            <div class=" col-md-1">
                                <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addTankLocation">
                                    Add location in tank
                                </button>
                            </div>

                            <div class=" col-md-5 wds35 fright">
                                <table>
                                    <tbody>
                                        <tr><th>Locations</th></tr>
                                        <tr style="background-color: #ffffff;" id='cellsContainer'>
                                            <td>
                                                {foreach $tank_cells as $cell}
                                                <label id="location_value_for_patient" style="display: block;">{$cell.name}-{$cell.up_level_name}-{$cell.cell_name}</label>
                                                {/foreach}
                                                {foreach $tank_cells_2 as $cell}
                                                <label  style="display: block;">{$cell.name}-{$cell.up_level_name}-{$cell.cell_name}-{$cell.cell_part_name}</label>
                                                {/foreach}
                                                {foreach $tank_cells_3 as $cell}
                                                <label  style="display: block;">{$cell.name}-{$cell.up_level_name}-{$cell.cell_name}-{$cell.cell_part_name}</label>
                                                {/foreach}
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            {/if}


                        </div>

                        <div class="row px-15">

                        </div>

                        <div class="row px-15">

                        </div>
                    </div>
                    <div class="row" style=" margin-bottom: 7px !important;">
                        <table>
                            <thead>

                                <tr>
                                    <th  rowspan="2" class="wds6">
                                        Straw#
                                    </th>
                                    <th  colspan="2">
                                        1
                                    </th>
                                    <th  colspan="2">
                                        2
                                    </th>
                                    <th  colspan="2">
                                        3
                                    </th>

                                    <th  colspan="2">
                                        4
                                    </th>
                                    <th  colspan="2">
                                        5
                                    </th>
                                    <th  colspan="2">
                                        6
                                    </th>
                                    <th  colspan="2">
                                        7
                                    </th>

                                    <th rowspan="2" class="wds4"  >

                                    </th>
                                </tr>
                                <tr>
                                    <th >
                                        stage
                                    </th>
                                    <th >
                                        grade
                                    </th>
                                    <th >
                                        stage
                                    </th>
                                    <th >
                                        grade
                                    </th>

                                    <th >
                                        stage
                                    </th>
                                    <th >
                                        grade
                                    </th>
                                    <th >
                                        stage
                                    </th>
                                    <th >
                                        grade
                                    </th>
                                    <th >
                                        stage
                                    </th>
                                    <th >
                                        grade
                                    </th>
                                    <th >
                                        stage
                                    </th>
                                    <th >
                                        grade
                                    </th>
                                    <th >
                                        stage
                                    </th>
                                    <th >
                                        grade
                                    </th>
                                </tr>

                            </thead>
                            <tbody id="freezingTable">
                                {assign var=itr value=1}
                                {foreach $embryofreezing as $one_freezing}
                                <tr>
                                    <td>
                                        Straw#{$itr}
                                    </td>
                                    <td>
                                        <select id="s11" class="form-control selectStage update_item2"   data-tableName="embryofreezing"
                                                data-rowid="{$one_freezing->id}" name="stage1" select-tableName="stage" 
                                                data-colName="stage1">
                                            <option value="">choose</option>
                                            {foreach  $stages as $one}
                                            <option value="{$one->id}"{if $one_freezing->stage1 eq $one->id}selected{/if}>{$one->stage}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="g11" class="form-control selectGrade update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="grade1" select-tableName="grade" data-colName="grade1">
                                            <option value="">choose</option>
                                            {foreach  $grades as $one}
                                            <option value="{$one->id}"{if $one_freezing->grade1 eq $one->id}selected{/if}>{$one->grade}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="s12" class="form-control selectStage update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="stage2" select-tableName="stage" data-colName="stage2">
                                            <option value="">choose</option>
                                            {foreach  $stages as $one}
                                            <option value="{$one->id}"{if $one_freezing->stage2 eq $one->id}selected{/if}>{$one->stage}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="g12" class="form-control selectGrade update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="grade2" select-tableName="grade" data-colName="grade2">
                                            <option value="">choose</option>
                                            {foreach  $grades as $one}
                                            <option value="{$one->id}"{if $one_freezing->grade2 eq $one->id}selected{/if}>{$one->grade}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="s13" class="form-control selectStage update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="stage3" select-tableName="stage" data-colName="stage3">
                                            <option value="">choose</option>
                                            {foreach  $stages as $one}
                                            <option value="{$one->id}"{if $one_freezing->stage3 eq $one->id}selected{/if}>{$one->stage}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="g13" class="form-control selectGrade update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="grade3" select-tableName="grade" data-colName="grade3">
                                            <option value="">choose</option>
                                            {foreach  $grades as $one}
                                            <option value="{$one->id}"{if $one_freezing->grade3 eq $one->id}selected{/if}>{$one->grade}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="s14" class="form-control selectStage update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="stage4" select-tableName="stage" data-colName="stage4">
                                            <option value="">choose</option>
                                            {foreach  $stages as $one}
                                            <option value="{$one->id}"{if $one_freezing->stage4 eq $one->id}selected{/if}>{$one->stage}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="g14" class="form-control selectGrade update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="grade4" select-tableName="grade" data-colName="grade4">
                                            <option value="">choose</option>
                                            {foreach  $grades as $one}
                                            <option value="{$one->id}"{if $one_freezing->grade4 eq $one->id}selected{/if}>{$one->grade}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="s15" class="form-control selectStage update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="stage5" select-tableName="stage" data-colName="stage5">
                                            <option value="">choose</option>
                                            {foreach  $stages as $one}
                                            <option value="{$one->id}"{if $one_freezing->stage5 eq $one->id}selected{/if}>{$one->stage}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="g15" class="form-control selectGrade update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="grade5" select-tableName="grade" data-colName="grade5">
                                            <option value="">choose</option>
                                            {foreach  $grades as $one}
                                            <option value="{$one->id}"{if $one_freezing->grade5 eq $one->id}selected{/if}>{$one->grade}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="s16" class="form-control selectStage update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="stage6" select-tableName="stage" data-colName="stage6">
                                            <option value="">choose</option>
                                            {foreach  $stages as $one}
                                            <option value="{$one->id}"{if $one_freezing->stage6 eq $one->id}selected{/if}>{$one->stage}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="g16" class="form-control selectGrade update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="grade6" select-tableName="grade" data-colName="grade6">
                                            <option value="">choose</option>
                                            {foreach  $grades as $one}
                                            <option value="{$one->id}"{if $one_freezing->grade6 eq $one->id}selected{/if}>{$one->grade}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="s17" class="form-control selectStage update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="stage7" select-tableName="stage" data-colName="stage7">
                                            <option value="">choose</option>
                                            {foreach  $stages as $one}
                                            <option value="{$one->id}"{if $one_freezing->stage7 eq $one->id}selected{/if}>{$one->stage}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td>
                                        <select id="g17" class="form-control selectGrade update_item2"   data-tableName="embryofreezing"data-rowid="{$one_freezing->id}" name="grade7" select-tableName="grade" data-colName="grade7">
                                            <option value="">choose</option>
                                            {foreach  $grades as $one}
                                            <option value="{$one->id}"{if $one_freezing->grade7 eq $one->id}selected{/if}>{$one->grade}</option>
                                            {/foreach}

                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                        </select>
                                    </td>
                                    <td rowspan="2">
                                        <a class="btn grey-cascade btn-xs delFromTableFreezing" data-rowid="{$one_freezing->id}" style=" float: left;">
                                            <i class="fa fa-close"></i>
                                        </a>
                                    </td>
                                </tr>
                                <tr >
                                    <td colspan="15">
                                        <textarea class="form-control update_item2" data-rowid="{$one_freezing->id}" rows="2"  name='straw_notes' placeholder="Enter more text"
                                                  data-id="{$one_freezing->id}" data-colName="straw_notes" data-tableName="embryofreezing">{$one_freezing->straw_notes}</textarea>
                                        <div class="form-control-focus">
                                        </div>
                                    </td>
                                </tr>
                                {capture assign=itr}{$itr+1}{/capture}
                                {/foreach}
                            <input type="hidden" name="Itr" id="Itr" value="{$count_embryofreezing}"/>

                            </tbody>
                        </table>
                    </div>

                    <div class="portlet box grey-cascade" style=" margin-bottom: 0px !important;">
                        <div class="portlet-title">
                            <div class="caption">Embryo Thawing :  </div>
                            <div class="actions">
                                <a href="javascript:;" class="btn btn-default btn-sm" id="addNewthawingRow" 
                                   data-tableName="embryothawing">
                                    <i class="fa fa-plus"></i> Add New</a>
                            </div>
                        </div>
                        <div class="portlet-body">
                            <div class="row">
                                <div class="portlet-body form border-gray2 mb-5" >

                                    <div class="row" style=" margin-bottom: 7px !important;">
                                        <input type="hidden" id="storesController" value="1">
                                        <table>
                                            <thead>
                                                <tr>
                                                    <th class="col-md-1 wds5">
                                                        Straw
                                                    </th >
                                                    <th class="col-md-1">
                                                        No Of Embryos
                                                    </th>
                                                    <th class="col-md-1">
                                                        Thawing Date
                                                    </th>

                                                    <th class="col-md-1">
                                                        Recovered
                                                    </th>
                                                    <th class="col-md-1">
                                                        Lost
                                                    </th>
                                                    <th class="col-md-1">
                                                        E.T Date
                                                    </th>
                                                    <th class="col-md-1">
                                                        Embryos
                                                    </th>

                                                    <th class="col-md-1">
                                                        Grades
                                                    </th>
                                                    <th class="col-md-1 wds15">
                                                        Embryol oigist
                                                    </th>
                                                    <th class="col-md-1 wds15">
                                                        Clinician
                                                    </th>
                                                    <th class="col-md-1 wds15">
                                                        Cathetr
                                                    </th>
                                                    <th class="col-md-1 wds5">
                                                        Delete
                                                    </th>
                                                </tr>

                                            </thead>
                                            <tbody id="thawingContent">
                                                {assign var=itr value=1}
                                                {foreach $embryothawing as $pre}
                                                <tr>

                                                    <td>
                                                        {$itr}
                                                        <input type="hidden" name="safyinput1_{$itr}" id="safyinput1_{$itr}" value="{$itr}"/>
                                                    </td>
                                                    <td>
                                                        <input type="text" class="form-control updateEmbryoLab_thawing" value="{$pre.no_of_embryos}" id="no_of_embryos_{$itr}_1"  data-itra="{$itr}_1" name="no_of_embryos_{$itr}_1" data-colName="no_of_embryos" data-tableName="embryothawing" data-tableRow="{$pre.id}"/>
                                                    </td>
                                                    <td>
                                                        <input type="text" class="form-control datepicker updateEmbryoLab_thawing" data-colName="thawing_date" data-tableName="embryothawing" data-tableRow="{$pre.id}" value="{$pre.thawing_date}" id="thawing_date_{$itr}_2"  data-itra="{$itr}_2" name="thawing_date_{$itr}_2"/>
                                                    </td>
                                                    <td>
                                                        <input type="text" class="form-control updateEmbryoLab_thawing" data-colName="recovered" data-tableName="embryothawing" data-tableRow="{$pre.id}" value="{$pre.recovered}" id="recovered_{$itr}_3"  data-itra="{$itr}_3" name="recovered_{$itr}_3"/>
                                                    </td>
                                                    <td>
                                                        <input type="text" class="form-control updateEmbryoLab_thawing" data-colName="lost" data-tableName="embryothawing" data-tableRow="{$pre.id}" value="{$pre.lost}" id="lost_{$itr}_4"  data-itra="{$itr}_4" name="lost_{$itr}_4"/>
                                                    </td>
                                                    <td>
                                                        <input type="text" class="form-control datepicker updateEmbryoLab_thawing" data-colName="e_t_date" data-tableName="embryothawing" data-tableRow="{$pre.id}" value="{$pre.e_t_date}" id="et_date_{$itr}_5"  data-itra="{$itr}_5" name="et_date_{$itr}_5"/>
                                                    </td>
                                                    <td>
                                                        <input type="text" class="form-control updateEmbryoLab_thawing" data-colName="embryos" data-tableName="embryothawing" data-tableRow="{$pre.id}" value="{$pre.embryos}" id="embryos_{$itr}_6"  data-itra="{$itr}_6" name="embryos_{$itr}_6"/>
                                                    </td>
                                                    <td>
                                                        <input type="text" class="form-control updateEmbryoLab_thawing" data-colName="grades" data-tableName="embryothawing" data-tableRow="{$pre.id}" value="{$pre.grades}" id="grades_{$itr}_7"  data-itra="{$itr}_7" name="grades_{$itr}_7"/>
                                                    </td>
                                                    <td>
                                                        <div class="col-md-12">
                                                            <select class="form-control  select2me updateEmbryoLab_thawing" id="embryol_{$itr}_8" name="embryol_{$itr}_8" data-itr="{$itr}_8" data-id="{$pre.id}" data-colName="embryol_oigist" data-tableName="embryothawing" data-tableRow="{$pre.id}"  data-placeholder="Select..."  >
                                                                <option value="">choose</option>
                                                                {foreach  $embryologist as $one}
                                                                <option value="{$one.user_id}"  {if $pre.embryol_oigist == $one.user_id}selected{/if}>{$one.name}</option>
                                                                {/foreach}
                                                            </select>
                                                        </div>                                                                    </td>
                                                    <td>
                                                        <div class="col-md-12">
                                                            <select class="form-control  select2me updateEmbryoLab_thawing" id="clinician_{$itr}_9" name="clinician_{$itr}_9" data-itr="{$itr}_9" data-id="{$pre->id}"  data-colName="clinician" data-tableName="embryothawing" data-tableRow="{$pre.id}"  data-placeholder="Select...">
                                                                <option value="">choose</option>
                                                                {foreach  $clinician as $one}
                                                                <option value="{$one.user_id}"  {if $pre.clinician == $one.user_id}selected{/if}>{$one.name}</option>
                                                                {/foreach}
                                                            </select>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <div class="col-md-12">
                                                            <select class="form-control xx dname select2me cathetrselect allupdateselect cathetr updateEmbryoLab_thawing" data-itra="{$itr}_10" id="cathetr_{$itr}_10" name="cathetr_{$itr}_10" data-id="{$pre->id}" data-colName="cathetr" data-tableName="embryothawing" data-tableRow="{$pre.id}" select-tableName="cathetr"  data-placeholder="Select...">
                                                                <option value="">choose</option>
                                                                {foreach  $cathetrs as $one}
                                                                <option value="{$one.id}" {if $pre.cathetr == $one.id}selected{/if}>{$one.cathetr}</option>
                                                                {/foreach}

                                                                <option value="-2" class="deleteoptincompo">Delete</option>
                                                            </select>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$pre.id}" style=" float: left;" href="#" data-link="embryofreezing" data-fn="delRowsommedel" data-tableName="embryothawing">
                                                            <i class="fa fa-close"></i>
                                                        </a>

                                                    </td>
                                                </tr>

                                                {capture assign=itr}{$itr+1}{/capture}
                                                {/foreach}

                                            <input id="thawitr" value="{$itr-1}" type="hidden">

                                            </tbody>
                                        </table>
                                    </div>


                                    <div class="row">

                                        <table>
                                            <thead>

                                                <tr>
                                                    <th>   Culture Incubator  </th>   
                                                    <th class="wds20">   Temp. </th>   
                                                    <th class="wds20">   Co2 </th>   
                                                    <th class="wds20">   O2  </th>   
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <input type="text" class="form-control updateEmbryoLab" name="freezing_incubator" 
                                                               value="{$updatedate.freezing_incubator}" data-colName="freezing_incubator" data-tableName="embryoslab"/>
                                                    </td>

                                                    <td>
                                                        <input type="text" class="form-control updateEmbryoLab" name="freezing_temp" 
                                                               value="{$updatedate.freezing_temp}" data-colName="freezing_temp" data-tableName="embryoslab"/>
                                                    </td>

                                                    <td>
                                                        <input type="text" class="form-control updateEmbryoLab" name="freezing_co2" 
                                                               value="{$updatedate.freezing_co2}" data-colName="freezing_co2" data-tableName="embryoslab"/>
                                                    </td>

                                                    <td>
                                                        <input type="text" class="form-control updateEmbryoLab" name="freezing_o2" 
                                                               value="{$updatedate.freezing_o2}" data-colName="freezing_o2" data-tableName="embryoslab"/>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>

                                    </div>
                                </div>
                            </div>
                            <div class="clearfix"></div>
                        </div>
                    </div>


                </div>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>


    <div class="modal fade" id="addTankLocation" tabindex="-1" role="dialog" aria-labelledby="addTankLocationLabel"  aria-hidden="true">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <form action="" class="form-horizontal" id="tank_lab_locations" method="post">
                    <div class="modal-header">
                        <h5 class="modal-title" id="addTankLocationLabel">Choose location in tank</h5>
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                    </div>
                    <div class="modal-body" style="padding: 2em 1em 1em;">

                        <label class="col-md-5 control-label" for="form_control_1">
                            Tanks
                        </label>
                        <select class="form-control select2me" id="lab_tank_id" name="lab_tank_id" data-placeholder="Select...">
                            <option value="">choose</option>
                            {foreach  $tanks as $tank}
                            <option value="{$tank->id}" >{$tank->name}</option>
                            {/foreach}
                        </select>

                        <input type="hidden" name="lab_patient_id" value="{$patientid}">
                        <input type="hidden" id="up_level_name" name="up_level_name" value="0">
                        <input type="hidden" id="cell_name" name="cell_name" value="0">

                        <hr/>

                        <div id="tankCellsContainer">
                            Choose tank to load cells
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                        <button type="button" class="btn btn-primary" id="save_tank_lab_cell_patient">Save changes</button>
                    </div>
                </form>
            </div>
        </div>
    </div>


</div>