{% extends 'babybuddy/page.html' %}
{% load duration i18n %}

{% block title %}{% trans "Timer" %}{% endblock %}

{% block breadcrumbs %}
    <li class="breadcrumb-item"><a href="{% url 'core:timer-list' %}">{% trans "Timers" %}</a></li>
    {% if object %}
        <li class="breadcrumb-item font-weight-bold"><a href="{% url 'core:timer-detail' object.id %}">{{ object }}</a></li>
        <li class="breadcrumb-item active" aria-current="page">{% trans "Update" %}</li>
    {% else %}
        <li class="breadcrumb-item active" aria-current="page">{% trans "Start" %}</li>
    {% endif %}
{% endblock %}

{% block content %}
    {% if object %}
        {% blocktrans %}<h1>Update <span class="text-info">{{ object }}</span></h1>{% endblocktrans %}
    {% else %}
        <h1>{% trans "Start Timer" %}</h1>
    {% endif %}
    {% include 'babybuddy/form.html' %}
{% endblock %}

{% block javascript %}
    <script type="text/javascript">
        $(function () {
            $('#datetimepicker_start').datetimepicker({
                defaultDate: 'now',
                format: 'L LTS',
                locale: 'en'
            });
        });
    </script>
{% endblock %}
{% extends 'babybuddy/page.html' %}
{% load duration i18n %}

{% block title %}{% trans "Timer" %}{% endblock %}

{% block breadcrumbs %}
    <li class="breadcrumb-item"><a href="{% url 'core:timer-list' %}">{% trans "Timers" %}</a></li>
    {% if object %}
        <li class="breadcrumb-item font-weight-bold"><a href="{% url 'core:timer-detail' object.id %}">{{ object }}</a></li>
        <li class="breadcrumb-item active" aria-current="page">{% trans "Update" %}</li>
    {% else %}
        <li class="breadcrumb-item active" aria-current="page">{% trans "Start" %}</li>
    {% endif %}
{% endblock %}

{% block content %}
    {% if object %}
        {% blocktrans %}<h1>Update <span class="text-info">{{ object }}</span></h1>{% endblocktrans %}
    {% else %}
        <h1>{% trans "Start Timer" %}</h1>
    {% endif %}
    {% include 'babybuddy/form.html' %}
{% endblock %}

{% block javascript %}
    <script type="text/javascript">
        $(function () {
            $('#datetimepicker_start').datetimepicker({
                defaultDate: 'now',
                format: 'L LTS',
                locale: '{{ LOCALE }}'
            });
        });
    </script>
{% endblock %}
Use `LOCALE` in Timer form
Use `LOCALE` in Timer form
