documentation/extensions/odoo_theme/layout_templates/language_switcher.html
Morgane (morm) 10bf041900 [IMP] documentation: legal page design
Prior to this commit, the terms and conditions were displayed in a table
with all the languages and it was not practical for the futur, with many
more languages.

task-3073198

closes 

X-original-commit: a52a9eef2d
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-12-08 12:31:09 +01:00

23 lines
875 B
HTML

<div class="o_languages">
<div class="dropdown">
{%- if alternate_languages|length > 0 %}
<button class="btn btn-sm dropdown-toggle"
id="languages"
data-bs-toggle="dropdown">
{{ language }} {# The current language #}
</button>
{%- else %}
<button class="btn btn-sm dropdown-toggle"
id="languages"
disabled="">
{{ language }} {# The current language #}
</button>
{%- endif %}
<ul class="dropdown-menu" aria-labelledby="languages">
{%- for alternate_language, language_code, url in alternate_languages %}
<li><a class="o_switcher_item dropdown-item" href="{{ url }}">{{ alternate_language }}</a></li>
{%- endfor %}
</ul>
</div>
</div>