

<div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

    <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;">ESR 1st Hour : </label>

    <div class="col-md-2">
        <select class="form-control updateElement  cross_hour1 cross "     data-target="hour1"   
                data-colName="hour1"   data-id="{$inv->cross.id}"  data-tableName="{$inv->tableName}"
                id="cross_hour1"  {if $archive == 1 } disabled="" {/if} >
                <option value=""></option>
            {foreach $cross_hour1 as $data}
            <option value="{$data->id}" {if $inv->cross.hour1 ==    $data->id }selected{/if}>{$data->name}</option>
            {/foreach}
            <option value="0" class="deleteoptincompo">حذف</option>
        </select>
    </div>

    <div class="col-md-2">
        <input type="text" disabled="" id="hour1_unit"  class="form-control" value="{$inv->cross.hour1_unit}">
    </div>

    <div class="col-md-2">
        <input type="text" disabled="" id="hour1_level"  class="form-control" value=" {if $inv->cross.hour1_range_txt == Null || $inv->cross.hour1_range_txt  == ''}   {if $inv->cross.hour1_low == 1 } L  {else if $inv->cross.hour1_high == 1 } H   {/if} {/if} ">
    </div>

    <div class="col-md-4">
        <select class="form-control select2h updateElement cross" data-colName="hour1_rangeid" 
                data-id="{$inv->cross.id}"  data-tableName="{$inv->tableName}"   data-target="hour1"   
                id="hour1_rangeid" >
            <option value=""></option>
            {foreach  $inv->cross.hour1_ranges as $rang}
            {if $rang->range_txt != Null && $rang->range_txt != ''}
            <option value="{$rang->id}" {if $rang->id == $inv->cross.hour1_rangeid} selected {/if} >{$rang->range_txt} </option>
            {else}
            <option value="{$rang->id}" {if $rang->id == $inv->cross.hour1_rangeid} selected {/if} > {$rang->range_low} - {$rang->range_high} /  {$rang->invest_units}</option>
            {/if}
            {/foreach}
        </select>
    </div>
</div>


