{% extends 'layouts/report.html.twig' %}
{% block title %}Alerts{% endblock %}
{% block report_content %}
<div class="loader" style="display:none" >
<div class="d-flex justify-content-center loading">
<div class="spinner-border " role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
<div class="row mb-2">
<div class="col-12 js_message_alert_report text-center" >
{% for msg in app.session.flashbag.get('notification-success') %}
<div class="alert alert-success col-md-12" role="alert">
{{ msg }}
</div>
{% endfor %}
</div>
</div>
<div class="row mb-2">
<div class="col-lg-3 col-md-2 col-sm-2 col-12 pt-1">
</div>
<div class="col-lg-2 col-md-2 col-sm-3 col-12">
<div class="row mb-2 float-right">
<span class="status-filter-button-header mt-1 mr-2" >Show All: </span>
<label class="switch">
<input class="js_alerts_report_show_all" type="checkbox">
<span class="slider round"></span>
</label>
</div>
</div>
<div class="col-lg-2 col-md-4 col-sm-5 col-12">
<select id="js_traffic_type_filter" multiple data-actions-box="true" class="w-100 border" >
{% for trafficId, trafficName in trafficType %}
<option value="{{trafficId}}">{{trafficName}}</option>
{% endfor %}
</select>
</div>
<div class="col-2">
<select id="js-tags_filter" multiple data-actions-box="true" class="w-100 border" title="Choose a tag filter...">
{% for tagVal, tagLabel in tagTypes %}
<option value="{{tagVal}}">{{tagLabel}}</option>
{% endfor %}
</select>
</div>
<div class="col-lg-3 col-md-4 col-sm-5 col-12 height-40" >
<div id="js_last_scan_date_filter" class="h-100 border px-1 py-2 cursor-pointer text-nowrap overflow-hidden" >
<i class="fa fa-calendar"></i>
<span></span> <i class="fa fa-caret-down float-right"></i>
</div>
</div>
</div>
<table class="table table-striped display dt-responsive overflow-auto" id="reportTable" width="100%" data-opsui-base-url="{{ opsui_base_url }}">
<thead>
<tr>
<th scope="col">Target</th>
<th scope="col">Affiliate Name</th>
<th scope="col">Affiliate Id</th>
<th scope="col">Campaign Name</th>
<th scope="col">Campaign</th>
<th scope="col">
<span data-toggle="tooltip" data-placement="top" title="Campaign Status">Status</span>
</th>
<th scope="col">Domain</th>
<th scope="col">Landing Domain</th>
<th scope="col">Redirect Path</th>
<th scope="col">Screenshot</th>
<th scope="col">Captured</th>
<th scope="col">Device</th>
<th scope="col">Country</th>
<th scope="col">PLP Link</th>
<th scope="col">Resolution</th>
<th scope="col">Tags</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="modal fade bd-example-modal-lg js-modal-redirect-path" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Redirect Path</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body js-modal-body-redirect-path">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
{{ encore_entry_script_tags('alert-report')}}
{% endblock %}