1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-06-29 21:51:08 +02:00

Translate logs app and cleanup

This commit is contained in:
Alexandre Iooss
2019-08-16 20:14:52 +02:00
parent c2ab1e4bc5
commit 670f7dfa39
9 changed files with 77 additions and 149 deletions

View File

@ -84,7 +84,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% get_available_languages as LANGUAGES %}
{% get_language_info_list for LANGUAGES as languages %}
{% for language in languages %}
<option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected{% endif %}>
<option value="{{ language.code }}"
{% if language.code == LANGUAGE_CODE %} selected{% endif %}>
{{ language.name_local }} ({{ language.code }})
</option>
{% endfor %}
@ -92,8 +93,23 @@ SPDX-License-Identifier: GPL-3.0-or-later
<noscript>
<input type="submit">
</noscript>
Mediatek 2017-2020 &mdash; <a href="mailto:club-med@crans.org">Nous contactez</a>
Mediatek 2017-2020 &mdash;
<a href="mailto:club-med@crans.org">Nous contactez</a>
</form>
</div>
{% endif %}
{# Bind CTRL+S to Save button in forms #}
<script type="text/javascript">
if (typeof django !== 'undefined') {
django.jQuery(window).bind('keydown', function (event) {
if (event.ctrlKey || event.metaKey) {
if (String.fromCharCode(event.which).toLowerCase() === 's') {
event.preventDefault();
django.jQuery("#content-main form input[name=_save]").click();
}
}
});
}
</script>
{% endblock %}