{% extends "timerboard/form.html" %}
{% load i18n %}

{% block page_title %}
    {% translate "Create Timer" %}
{% endblock page_title %}

{% block page_header %}
    {% translate "Create Structure Timer" %}
{% endblock %}

{% block submit_button_text %}
    {% translate "Create Timer" %}
{% endblock %}

{% block extra_javascript %}
    {% include 'bundles/timerboard-js.html' %}
    {% include 'bundles/jquery-datetimepicker-js.html' %}
    {% include 'bundles/jquery-datetimepicker-css.html' %}

    <script>
        $(document).ready(() => {
            $('input#id_absolute_time').datetimepicker({
                setlocale: '{{ LANGUAGE_CODE }}',
                format: 'Y-m-d H:i',
                minDate: 0,
                defaultDate: null
            });
        });
    </script>
{% endblock %}
