kadenios/elections/templates/elections/election_create.html

38 lines
865 B
HTML

{% extends "base.html" %}
{% load i18n static %}
{% block extra_head %}
{# DateTimePicker #}
<script src="{% static 'vendor/datetimepicker/picker.js' %}"></script>
<link rel="stylesheet" href="{% static 'vendor/datetimepicker/picker.css' %}">
{% endblock %}
{% block custom_js %}
<script>
{% get_current_language as LANGUAGE_CODE %}
new DateTimePicker('input[name=start_date]', {
lang: '{{ LANGUAGE_CODE }}',
});
new DateTimePicker('input[name=end_date]', {
lang: '{{ LANGUAGE_CODE }}',
});
</script>
{% endblock %}
{% block content %}
{% for error in form.non_field_errors %}
<div class="notification is-danger">
{{ error }}
</div>
{% endfor %}
<h1 class="title">{% trans "Création d'une élection" %}</h1>
<hr>
{% url 'election.list' as r_url %}
{% include "forms/common-form.html" with c_size="is-12" errors=False %}
{% endblock %}