{if $case_summary == 1 }
<tr>
    <td class="wds45"> 
        <select  class="form-control  sexual_type updateElement allupdateselect" data-val="" id="sexual_type{$itr}" data-itr="{$itr}" select-tableName="phsexualtypes"  name="sexual_type" data-colName="sexual_type" data-id="{$phsexual_obj->id}" data-tableName="phsexual" >
            <option value="">choose</option>
            {foreach  $sexual_types as $data}
            <option value="{$data->id}" >{$data->name} </option>
            {/foreach}
            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement" placeholder="Note" name="sexualnote" data-colName="sexualnote"   data-id="{$phsexual_obj->id}" data-tableName="phsexual"/>
    </td>
    <td class="wds5"> 
        <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="{$phsexual_obj->id}" 
           data-link="case_summary"  data-fn="del" data-tableName="phsexual" data-colName="del">
            <i class="fa fa-times"></i> </a>
    </td>
</tr>
{else}
<div>
    {if $ProgramesettingData->displaydoctorname eq 1}
    <div class="row ltr" >
        <div class="col-md-1">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <label class="control-label col-md-2 ">{$username}</label>
            </div>
        </div>
    </div>
    {/if}
    <div class="row ltr" >
        <div class="col-md-4">
            <div class="form-group">
                <!--<label class="control-label col-md-2 ls2">Disease</label>-->
                <select  class="form-control  sexual_type updateElement allupdateselect" data-val="" id="sexual_type{$itr}" data-itr="{$itr}" select-tableName="phsexualtypes"  name="sexual_type" data-colName="sexual_type" data-id="{$phsexual_obj->id}" data-tableName="phsexual" >
                    <option value="">choose</option>
                    {foreach  $sexual_types as $data}
                    <option value="{$data->id}" >{$data->name} </option>
                    {/foreach}
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </div>
        </div>


        <div class="col-md-8">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <div class="form-group form-md-line-input form-md-floating-label has-info">
                    <input type="text" class="amrpop form-control updateElement" placeholder="Note" name="sexualnote" data-colName="sexualnote"   data-id="{$phsexual_obj->id}" data-tableName="phsexual"/>
                </div>
                <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="{$phsexual_obj->id}" data-tableName="phsexual"><i class="fa fa-close"></i></button>
            </div>
        </div>

    </div>
</div>

{/if}