2015-02-01 18:55:24 +01:00
|
|
|
{% extends "contact_form/base.html" %}
|
|
|
|
{% load i18n crispy_forms_tags %}
|
|
|
|
|
2023-04-16 22:11:32 +02:00
|
|
|
{% block title %}{{ block.super }} - {% translate "Contact" %}{% endblock title %}
|
|
|
|
{% block page_title %}{% translate "Contact" %}{% endblock page_title %}
|
2015-02-01 18:55:24 +01:00
|
|
|
|
|
|
|
{% block content %}
|
2023-04-16 22:11:32 +02:00
|
|
|
{% crispy form %}
|
2015-02-01 18:55:24 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block extra_js %}
|
2023-04-16 22:11:32 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
|
|
let textFields = document.querySelectorAll("input[type=text]");
|
|
|
|
|
|
|
|
if (textFields[0].val() !== '') {
|
|
|
|
document.getElementsByTagName("textarea")[0].focus();
|
|
|
|
} else {
|
|
|
|
textFields[0].focus();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2015-02-01 18:55:24 +01:00
|
|
|
{% endblock extra_js %}
|