{% extends 'timeseer.html' %}

{% from 'macros.html' import menu_back %}

{% block menu %}
{{ menu_back(url_for('.configure_data_service', dataservicename=data_service.name, sourcename=source_name)) }}
{% endblock %}

{% block main %}
<div class="ts-section py-3 my-3">
    <h2 class="h4">Clean {{ data_service.name }}</h2>
</div>

<div class="pt-3 my-3">
    <p>This will remove all data, event frames and statistics associated with the <b>{{ data_service.name }}</b> data service.</p>
    <form method="POST">
        <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
        {% if source_name is not none %}
        <input type="hidden" name="sourcename" value="{{ source_name }}">
        {% endif %}
        <input type="hidden" name="dataservicename" value="{{ data_service.name }}">

        <div class="btn-toolbar">
            <button type="submit" class="btn btn-primary me-2">Yes</button>
            <a class="btn btn-secondary"
                href="{{ url_for('.configure_data_service', dataservicename=data_service.name, sourcename=source_name) }}"
                role="button">
                Cancel
            </a>
        </div>
    </form>
</div>
{% endblock %}
