diff options
Diffstat (limited to 'themes/default/config.twig')
-rw-r--r-- | themes/default/config.twig | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/themes/default/config.twig b/themes/default/config.twig index 0f1aea80..72671702 100644 --- a/themes/default/config.twig +++ b/themes/default/config.twig | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | <h2>{% trans "Updating poche" %}</h2> | 24 | <h2>{% trans "Updating poche" %}</h2> |
25 | <ul> | 25 | <ul> |
26 | <li>{% trans "your version" %} : <strong>{{ constant('POCHE_VERSION') }}</strong></li> | 26 | <li>{% trans "your version" %} : <strong>{{ constant('POCHE') }}</strong></li> |
27 | <li>{% trans "latest stable version" %} : {{ prod }}. {% if compare_prod == -1 %}<strong><a href="http://inthepoche.com/">{% trans "a more recent stable version is available." %}</a></strong>{% else %}{% trans "you are up to date." %}{% endif %}</li> | 27 | <li>{% trans "latest stable version" %} : {{ prod }}. {% if compare_prod == -1 %}<strong><a href="http://inthepoche.com/">{% trans "a more recent stable version is available." %}</a></strong>{% else %}{% trans "you are up to date." %}{% endif %}</li> |
28 | {% if constant('DEBUG_POCHE') == 1 %}<li>{% trans "latest dev version" %} : {{ dev }}. {% if compare_dev == -1 %}<strong><a href="http://inthepoche.com/">{% trans "a more recent development version is available." %}</a></strong>{% else %}{% trans "you are up to date." %}{% endif %}</li>{% endif %} | 28 | {% if constant('DEBUG_POCHE') == 1 %}<li>{% trans "latest dev version" %} : {{ dev }}. {% if compare_dev == -1 %}<strong><a href="http://inthepoche.com/">{% trans "a more recent development version is available." %}</a></strong>{% else %}{% trans "you are up to date." %}{% endif %}</li>{% endif %} |
29 | </ul> | 29 | </ul> |
@@ -47,6 +47,26 @@ | |||
47 | <input type="hidden" name="token" value="{{ token }}"> | 47 | <input type="hidden" name="token" value="{{ token }}"> |
48 | </form> | 48 | </form> |
49 | 49 | ||
50 | <h2>{% trans "Change your language" %}</h2> | ||
51 | <form method="post" action="?updatelanguage" name="changelanguageform"> | ||
52 | <fieldset class="w500p"> | ||
53 | <div class="row"> | ||
54 | <label class="col w150p" for="language">{% trans "Language:" %}</label> | ||
55 | <select class="col" id="language" name="language"> | ||
56 | {% for language in languages %} | ||
57 | <option value="{{ language.name }}" {{ language.current ? 'selected' : '' }}>{{ language.name }}</option> | ||
58 | {% endfor %} | ||
59 | </select> | ||
60 | </div> | ||
61 | <div class="row mts txtcenter"> | ||
62 | <button class="bouton" type="submit" tabindex="4">{% trans "Update" %}</button> | ||
63 | </div> | ||
64 | </fieldset> | ||
65 | <input type="hidden" name="returnurl" value="{{ referer }}"> | ||
66 | <input type="hidden" name="token" value="{{ token }}"> | ||
67 | </form> | ||
68 | |||
69 | {% if http_auth == 0 %} | ||
50 | <h2>{% trans "Change your password" %}</h2> | 70 | <h2>{% trans "Change your password" %}</h2> |
51 | <form method="post" action="?config" name="loginform"> | 71 | <form method="post" action="?config" name="loginform"> |
52 | <fieldset class="w500p"> | 72 | <fieldset class="w500p"> |
@@ -65,6 +85,7 @@ | |||
65 | <input type="hidden" name="returnurl" value="{{ referer }}"> | 85 | <input type="hidden" name="returnurl" value="{{ referer }}"> |
66 | <input type="hidden" name="token" value="{{ token }}"> | 86 | <input type="hidden" name="token" value="{{ token }}"> |
67 | </form> | 87 | </form> |
88 | {% endif %} | ||
68 | 89 | ||
69 | <h2>{% trans "Import" %}</h2> | 90 | <h2>{% trans "Import" %}</h2> |
70 | <p>{% trans "Please execute the import script locally, it can take a very long time." %}</p> | 91 | <p>{% trans "Please execute the import script locally, it can take a very long time." %}</p> |
@@ -77,4 +98,4 @@ | |||
77 | 98 | ||
78 | <h2>{% trans "Export your poche datas" %}</h2> | 99 | <h2>{% trans "Export your poche datas" %}</h2> |
79 | <p><a href="?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your poche datas." %}</p> | 100 | <p><a href="?export" target="_blank">{% trans "Click here" %}</a> {% trans "to export your poche datas." %}</p> |
80 | {% endblock %} \ No newline at end of file | 101 | {% endblock %} |