<h2>Authority Magnet</h2>

<div class="frame-wrap p1cm-listview">
    <div class="frame-sidebar">
        <div class="frame-box">
            <div class="frame-box-title">
                <h4 class="frame-heading">New Report</h4>
            </div>
            <div class="frame-box-content">
                <div class="btn-group btn-block">
                    <button type="button" class="btn btn-primary btn-block dropdown-toggle" data-toggle="dropdown">
                        New Report <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu" role="menu">
                        <li><a id="p1cm-keywords-menu-anchor" href="#" data-toggle="modal" data-target="#p1cm-new-keywords-report-modal">Keywords</a></li>
                        <li><a id="p1cm-url-menu-anchor" href="#" data-toggle="modal" data-target="#p1cm-new-url-report-modal">URL</a></li>
                    </ul>
                </div>
            </div>
        </div>

        {% include '@p1cm/help.twig' %}
    </div>

    <div class="frame-content">
        <div class="frame-box">
            <table class="table">
                <thead>
                <tr>
                    <th>Date</th>
                    <th>Search</th>
                    <th>Actions</th>
                </tr>
                </thead>
                <tbody>
                	{% for id, report in reports %}
	                <tr>
	                    <td>{{ report.reporttime|date( 'Y-m-d' ) }}</td>
	                    <td>{{ report.search }}</td>
	                    <td>
                            <a href="{{ route( 'p1cm_authority_magnet', { id : id } ) }}">
                                <span class="glyphicon glyphicon-zoom-in p1cm-view-glyph"></span>
                            </a>
                            <a href="" data-value="{{ id }}" data-toggle="modal" data-target="#p1cm-delete-modalList">
                                <span class="glyphicon glyphicon-trash p1cm-trash-glyph"></span>
                            </a>
	                    </td>
	                </tr>
	               	{% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>

{% include '@p1cm/authority/modal/keywords.twig'    %}
{% include '@p1cm/authority/modal/url.twig'         %}
{% include '@p1cm/authority/modal/delete-list.twig' %}
