<table>
    <caption>
        Hysteroscopy    <button type="button" class="btn btn-xs blue addInvRow" id="invhysteroscopy" data-tableName="hysteroscopy" 
                                data-hus="0" data-itr="{$hysteroscopyCount}"> <i class="fa fa-plus"></i> </button>
    </caption>

    <tbody  id="hysteroscopyDiv">
        {if $hysteroscopyCount > 0 }   
        <tr>
            <th class="wds8" > Date  </th>  
            <th class="wds8" > Cervix </th>
            <th class="wds8" > Ut Cavity  </th>  
            <th class="wds8"> R.Ostium </th>  
            <th class="wds8" > L.Ostium  </th> 
            <th class="wds8" > Notes  </th> 
            <th class="wds2">   </th> 
        </tr>
        {/if}

        {foreach $hysteroscopys as $hysteroscopy}
        <tr> 
            <td>
                <input type="text" class="form-control datepicker updateElement txtc"   data-tableName="hysteroscopy"
                       data-colName="sdate" data-id="{$hysteroscopy->id}" value="{$hysteroscopy->sdate}"/>
            </td> 
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="hysteroscopy"
                       data-colName="cervix" data-id="{$hysteroscopy->id}" value="{$hysteroscopy->cervix}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="hysteroscopy"
                       data-colName="uterine" data-id="{$hysteroscopy->id}" value="{$hysteroscopy->uterine}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="hysteroscopy"
                       data-colName="rostium" data-id="{$hysteroscopy->id}" value="{$hysteroscopy->rostium}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="hysteroscopy"
                       data-colName="lostium" data-id="{$hysteroscopy->id}" value="{$hysteroscopy->lostium}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="hysteroscopy"
                       data-colName="notes" data-id="{$hysteroscopy->id}" value="{$hysteroscopy->notes}"/>
            </td>
            <td>
                <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="{$hysteroscopy->id}" 
                   data-link="{$controllname}"  data-fn="del" data-tableName="hysteroscopy" data-colName="del">
                    <i class="fa fa-times"></i> </a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
