
<!--button type="button" class="btn btn-xs blue fright" id="addnewRow"><i class="fa fa-plus"></i> Add</button-->
<table cellspacing="10" width="100%" id="dtAddTbl">
    <thead>
        <tr>
            <th>Name</th>
            <th>Delete</th>
        </tr>
    </thead>


    {assign var=i value=1}
    {foreach $alldata as $mydata}
    <tr>
        <td style="width: 100%">
            <a href="#" >

                <input type="text" class="form-control updateElementSelect" data-selectClass="{$selectname}"  data-select2="yes" data-id="{$mydata->id}" data-colName="name" data-tableName="{$tablename}" value="{$mydata->name}"/>
            </a>
        </td>
        <td>
            <a class=" fa fa-times btn red fleft deleteElementSelect" data-selectClass="{$selectname}"  data-link="and_history" data-fn="delRowsommedel" data-id="{$mydata->id}" data-tableName="{$tablename}" ></a>
        </td>
    </tr>
    {capture assign=i}{$i+1}{/capture}
    {/foreach}
</table>
