<!-- @import "/kitparts/head.html" -->
<!-- @import "/app/nav/components/nav.html" -->
<div class="container-fluid">
    <!-- @import "/app/settings/components/settings.html" -->
    <div class="row">
        <!-- @import "/app/reports/components/breadcrumb.html" -->
    </div>
    <div class="row">
        <div class="col-12">
            <div class="scadacard level1" id="reportwrapper">
                <div class="row contentrow">
                    <div class="col-12 ">
                        <div class="row">
                            <div class="col-12">
                                <div id="tablewrapper">
                                    <!-- @import "/app/loader/components/loader.html" -->
                                    <div class="hiddenwhileloading" style="display:none;">
                                        <table class="itemtable">
                                            <thead>
                                                <tr>
                                                    <th>
                                                        <div class="material-input">
                                                            <input required>
                                                            <label>Name</label>
                                                        </div>
                                                        <div class="sort-arrows">
                                                            <div class="arrow-up"></div>
                                                            <div class="arrow-down"></div>
                                                        </div>
                                                    </th>
                                                    <th>
                                                        <div class="material-input">
                                                            <input required>
                                                            <label>Description</label>
                                                        </div>
                                                    </th>
                                                    <th class="noinput">
                                                        <a href="javascript:void(0);" role="button">
                                                            Sections
                                                        </a>
                                                        <div class="sort-arrows">
                                                            <div class="arrow-up"></div>
                                                            <div class="arrow-down"></div>
                                                        </div>
                                                    </th>
                                                    <th class="noinput">
                                                        <a href="javascript:void(0);" role="button">
                                                            Suitable for
                                                        </a>
                                                        <div class="sort-arrows">
                                                            <div class="arrow-up"></div>
                                                            <div class="arrow-down"></div>
                                                        </div>
                                                    </th>
                                                    <th class="text-right">
                                                        <button class="btn" onclick="location.href='new_template.html'">+
                                                            Add template</button>
                                                    </th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <tr class="datarow">
                                                    <td>
                                                        Gloabal site report
                                                    </td>
                                                    <td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam
                                                        tempor eu dui sed sagittis. </td>
                                                    <td class="text-center">12</td>
                                                    <td>Sites</td>
                                                    <td class="text-right"> <i class="icon-edit" onclick="location.href='new_template.html'"></i>
                                                        <i class="icon-clone"></i>
                                                        <i class="icon-minus" data-toggle="modal" data-target="#configerrorModal"></i></td>
                                                </tr>
                                                <tr class="datarow">
                                                    <td>
                                                        Gloabal site report
                                                    </td>
                                                    <td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam
                                                        tempor eu dui sed sagittis. </td>
                                                    <td class="text-center">16</td>
                                                    <td>Sites and portfolio</td>
                                                    <td class="text-right"> <i class="icon-edit" onclick="location.href='new_template.html'"></i>
                                                        <i class="icon-clone"></i>
                                                        <i class="icon-minus" data-toggle="modal" data-target="#configerrorModal"></i></td>
                                                </tr>
                                                <tr class="datarow">
                                                    <td>
                                                        Gloabal site report
                                                    </td>
                                                    <td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam
                                                        tempor eu dui sed sagittis. </td>
                                                    <td class="text-center">14</td>
                                                    <td>Portfolio</td>
                                                    <td class="text-right"> <i class="icon-edit" onclick="location.href='new_template.html'"></i>
                                                        <i class="icon-clone"></i>
                                                        <i class="icon-minus" data-toggle="modal" data-target="#configerrorModal"></i></td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- Delete template modal -->
<div class="modal alarmmodal fade" id="configerrorModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-lg" style="max-width:1000px;" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title"" id="reportModalLabel"">
                    <i class="icon icon-minus"></i>
                    Delete template</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-12">
                            <table>
                                <tbody>
                                    <tr>
                                        <td>
                                            <h3>Warning</h3>
                                            You are about to delete a report template! <br>
                                            Deleting a template can’t be undone!<br>
                                            All report subscriptions based on this template will be cancelled!<br><br>

                                            Are you sure you want to delete the template?
                                        </td>

                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <div class="col-6">
                        <button class="btn" data-dismiss="modal">No!</button>
                    </div>
                    <div class="col-6 text-right">
                        <button class="btn" data-dismiss="modal">Yes, delete the template</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- @import "/kitparts/end.html" -->