<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"  
     id="customModel" style="min-width:1000px;">
    <div class="modal-dialog  modal-lg wds95" style="max-width: 90%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">  </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="portlet blue-hoki box">

                                <div class="portlet-title">
                                    <div class="caption">
                                        <i class="fa fa-cogs"></i> Custom Investigation  ({$customInvName})
                                    </div>
                                    <div class="actions">
                                        <a href="javascript:;" class="btn btn-default btn-sm" id="customAdd">
                                            <i class="fa fa-plus"></i> Add </a>

                                    </div>
                                </div>
                                <div class="portlet-body">

                                    <table class="table table-striped table-hover table-bordered"  >
                                        <thead>
                                            <tr>
                                                <th class="wds5">
                                                </th>
                                                <th>
                                                    Element 
                                                </th>
                                                <th class="wds5">
                                                </th>
                                            </tr>

                                        </thead>
                                        <tbody id="customElements">
                                            {assign var="x" value="1"}
                                            {foreach $invest_elements as $data}

                                            <tr>
                                                <td>{$x}</td>
                                                <td>
                                                    <input type="text" class="form-control updateElement"  id="invElement{$data->id}"  
                                                           data-id="{$data->id}"   data-colName="show_name" data-tableName="invest_elements"  
                                                           value="{$data->show_name}"
                                                           style="height: 26px;"/>
                                                </td>
                                                <td>
                                                    <a class="btn red btn-xs deletemsgEX" data-id="{$data->id}"  
                                                       href="#" data-link="addinvestigation" data-fn="del" data-tableName="invest_elements"> <i class="fa fa-close"></i>
                                                    </a>
                                                </td>
                                            </tr> 
                                            {assign var="x" value={$x+1}}
                                            {/foreach}
                                        </tbody>
                                    </table>
                                    <input type="hidden" id="customInvId" value="{$customInvId}"/>
                                    <input type="hidden" id="custom_itr" value="{$custom_itr}"/>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">

                            <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>