{% extends 'timeseer.html' %}

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

{% block menu %}
{{ menu_back(url_for('series_sets.show_series_sets', sourcename=source_name)) }}
{% endblock %}

{% block main %}
<div class="ts-section py-3 my-3">
    <h2 class="h4">Create a new series set</h2>
</div>

<div class="pt-3 my-3">
    {{ alerter() }}

    <form method="POST">
        <input type="hidden" name="sourcename" value="{{ source_name }}">
        <div class="mb-3">
            <label class="form-label" for="seriesSetsName">Series set name:</label>
            <input class="form-control" id="seriesSetsName" name="seriessetname" autofocus required>
        </div>
        <button type="submit" class="btn btn-primary me-2">Create</button>
        <a href="{{ url_for('.show_series_sets', sourcename=source_name) }}"
            class="btn btn-secondary">
            Cancel
        </a>
    </form>
</div>
{% endblock %}
