
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 odoo/documentation#3139
X-original-commit: a52a9eef2d
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
23 lines
875 B
HTML
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>
|