<tr>
    <th>
        Plan {$newItr}
    </th>
    <td>
        <input type="text" class="form-control updateElement " id="plan{$newItr}" data-colName="plan" 
               data-id="{$plan->id}"  data-tableName="gynainfertilityplan"  
               value="{$plan->plan}">
        <div class="form-control-focus">
        </div>
    </td>
    <td>
        {if $newItr == 1}
        <span class="input-group-btn btn-right">
            <button class="btn green-haze" type="button" id="addPlan" style="padding: 5px;"><i class="fa fa-plus"></i></button>
        </span>
        {else}
        <span class="input-group-btn btn-right">
            <button class="btn red-intense deleteelement " type="button"  data-id="{$plan->id}" data-link="gyna"  data-fun="deldata" data-tableName="gynainfertilityplan" style="padding: 5px;"><i class="fa fa-close"></i></button>
        </span>

        {/if}
    </td>
</tr>