<div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  id="edit_model">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title"> Edit </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form  method="post" class="form-horizontal  emptyform" >
                        <div class="form-body all" >
                            <!------===========================================------->
                            <div class="form-group">
                                <div class="col-md-12">
                                    <button type="button" class="btn btn-xs blue fright" id="addnewH"  data-colName="{$colName}"
                                            data-selectClass="{$selectClass}" data-tableName="{$tableName}"> 
                                        <i class="fa fa-plus"></i> Add</button>
                                </div>
                                <div class="col-md-12">
                                    <input type="hidden" id="defaultValue" value="{$defaultValue}">
                                    <table cellspacing="10" width="100%">
                                        <thead>
                                            <tr>
                                                <th>Name</th>
                                                <th class="wds10">Delete</th>
                                                {if $defaultValue == 1 }
                                                <th class="wds10">Default</th>
                                                {/if}
                                            </tr>
                                        </thead>
                                        <tbody id="editTableH">
                                            {assign var=i value=1}
                                            {foreach $alldata as $mydata}
                                            <tr>
                                                <td>
                                                    <input type="text" class="form-control newitemH" 
                                                           data-id="{$mydata.id}"  data-tableName="{$tableName}"
                                                           data-colName="{$colName}"   value='{$mydata.name}'>
                                                </td>
                                                <td>
                                                    <a href="#" class="btn btn-xs red fleft deleteModalH wds100" data-id="{$mydata.id}" 
                                                       data-tableName="{$tableName}"  >
                                                        <i class="fa fa-times" ></i>
                                                    </a>
                                                </td>
                                                {if $defaultValue == 1 }
                                                <td class="txtc">
                                                    <input type="radio" id="radio{$mydata.id}" name="defaultValue" class="md-radiobtn"
                                                           data-id="{$mydata.id}"  data-tableName="{$tableName}"
                                                           data-colName="default_value"   value='1'  
                                                           {if $mydata.default_value == 1} checked {/if}>
                                                    <label for="radio{$mydata.id}">
                                                        <span></span>
                                                        <span class="check"></span>
                                                        <span class="box"></span>
                                                    </label>
                                                    </div>

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

                                            {capture assign=i}{$i+1}{/capture}
                                            {/foreach}
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button" id="amountcloseinput"   class="btn default" data-dismiss="modal">Close</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
    </div>
</div>


{literal}
<script>


</script>
{/literal}

