summaryrefslogtreecommitdiff
path: root/horizon/horizon/dashboards/nova/templates/nova/settings.html
blob: e77087741963c05d0fba5b68c69e5077f127e3d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends 'base.html' %}
{%load i18n%}

{% block topbar %}
  {% with current_topbar="settings" %}
    {{block.super}}
  {% endwith %}
{% endblock %}


{% block sidebar %}
  {% include 'nova/_sidebar.html' %}
{% endblock %}


{% block main %}
  {% block page_header %}
    {% url horizon:nova:instances:index as refresh_link %}
    {# to make searchable false, just remove it from the include statement #}
    {% include "horizon/common/_page_header.html" with title=_("Dashboard Settings") %}
  {% endblock page_header %}
  {% include "_messages.html" %}
  <div class='main_content'>
    <div class="dash_block">
      <div class="left">
          <h3>{% trans "Dashboard User Interface Language"%}</h3>
          <form action="/i18n/setlang/" method="post"> {% csrf_token %}
            <p><select name="language">
            {% get_language_info_list for LANGUAGES as languages %}
            {% for language in languages %}
                {% if language.code == LANGUAGE_CODE %}
                   <option selected value="{{ language.code }}">{{ language.name_local }} ({{ language.code }})</option>
                {%else%}
                    <option value="{{ language.code }}">{{ language.name_local }} ({{ language.code }})</option>
                {%endif%}
            {% endfor %}
            </select></p>
            <input type="submit" value="{% trans "Select Language"%}"  class="large-rounded" />
          </form>
      </div>
      <div class="clear">&nbsp;</div>
    </div>
  </div>
{% endblock %}