{if $case_summary == 1 }

<tr>
    <td class="wds16">
        <select  class="form-control contype contype updateElement allupdateselect" data-val=""  id="contype{$itr}" data-itr="{$itr}" name="contype" data-colName="contype"  select-tableName="phcontracttype"  data-id="{$phconstract_obj->id}" data-tableName="phcontraception" >
            <option value="">choose</option>
            {foreach  $allphcontracttype as $myallphcontracttype}
            <option value="{$myallphcontracttype->id}">{$myallphcontracttype->name} </option>
            {/foreach}
            <option value="-2" class="deleteoptincompo" >Delete</option>
        </select>
    </td>
    <td class="wds16">
        <input type="text" class="form-control  updateElement wds85" placeholder="Duration" name="contduration" 
               data-colName="contduration"   data-id="{$phconstract_obj->id}" data-tableName="phcontraception" 
               style="display: inline;"/>Y
    </td>
    <td class="wds16">
        <input type="text" class="form-control  updateElement wds85" placeholder="Stopped" name="contstopped" 
               data-colName="contstopped"  data-id="{$phconstract_obj->id}" data-tableName="phcontraception" 
               style="display: inline;"/>Y
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement" placeholder="Note" name="contranote" data-colName="contranote"   data-id="{$phconstract_obj->id}" data-tableName="phcontraception"/>
    </td>
    <td  class="wds5">
        <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="{$phconstract_obj->id}" 
           data-link="case_summary"  data-fn="del" data-tableName="phcontraception" 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-2">
            <div class="form-group">
                <!--<label class="control-label col-md-2 ls2">Type</label>-->
                <select  class="form-control contype contype updateElement allupdateselect" data-val=""  id="contype{$itr}" data-itr="{$itr}" name="contype" data-colName="contype"  select-tableName="phcontracttype"  data-id="{$phconstract_obj->id}" data-tableName="phcontraception" >
                    <option value="">choose</option>
                    {foreach  $allphcontracttype as $myallphcontracttype}
                    <option value="{$myallphcontracttype->id}">{$myallphcontracttype->name} </option>
                    {/foreach}
                    <option value="-2" class="deleteoptincompo" >Delete</option>
                </select>
            </div>
        </div>


        <div class="col-md-2">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <input type="text" class="form-control  updateElement" placeholder="Duration" name="contduration" data-colName="contduration"   data-id="{$phconstract_obj->id}" data-tableName="phcontraception" />
                <!--<label for="form_control_1">Duration</label>-->
                <span class="input-group-addon">Y</span>
            </div>
        </div>



        <div class="col-md-2">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <input type="text" class="form-control  updateElement" placeholder="Stopped" name="contstopped" data-colName="contstopped"  data-id="{$phconstract_obj->id}" data-tableName="phcontraception" />
                <!--<label for="contstopped">Stopped</label>-->
                <span class="input-group-addon">Y</span>
            </div>
        </div>

        <div class="col-md-6">
            <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="contranote" data-colName="contranote"   data-id="{$phconstract_obj->id}" data-tableName="phcontraception"/>
                </div>
                <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="{$phconstract_obj->id}" data-tableName="phcontraception"><i class="fa fa-close"></i></button>
            </div>
        </div>


        <!-- END SAMPLE FORM PORTLET-->

    </div>
</div>

{/if}