diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-11 22:01:55 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-11 22:01:55 +0200 |
commit | bca8ceaa7de08fa4395ca243eb96a65888d74ef8 (patch) | |
tree | 3842d89a2d222cf9301ce8086242abced5b8ff29 /module/web/templates/default | |
parent | closed #402 (diff) | |
download | pyload-bca8ceaa7de08fa4395ca243eb96a65888d74ef8.tar.xz |
restart / quit buttons in webif
Diffstat (limited to 'module/web/templates/default')
-rw-r--r-- | module/web/templates/default/admin.html | 61 |
1 files changed, 8 insertions, 53 deletions
diff --git a/module/web/templates/default/admin.html b/module/web/templates/default/admin.html index df1843997..b049411fd 100644 --- a/module/web/templates/default/admin.html +++ b/module/web/templates/default/admin.html @@ -1,64 +1,19 @@ {% extends 'default/base.html' %} {% block head %} - <script type="text/javascript"> - - root = this; - - window.addEvent("domready", function() { - - root.passwordDialog = new MooDialog({destroyOnHide: false}); - root.passwordDialog.setContent($('password_box')); - - $("login_password_reset").addEvent("click", function(e) {root.passwordDialog.close();}); - $("login_password_button").addEvent("click", function(e) { - - var current = $("login_current_password").get("value"); - var newpw = $("login_new_password").get("value"); - var newpw2 = $("login_new_password2").get("value"); - - if (newpw == newpw2) { - var form = $("password_form"); - - form.set("send", { - onSuccess: function(data) { - root.notify.alert("Success", { - 'className': 'success' - }); - }, - onFailure: function(data) { - root.notify.alert("Error", { - 'className': 'error' - }); - }}); - - form.send(); - - root.passwordDialog.close(); - } else { - alert("{{_("Passwords did not match.")}}"); - } - e.stop(); - }); - - $$(".change_password").each(function(item) { - var id = item.get("id"); - var user = id.split("|")[1]; - $("user_login").set("value", user); - - item.addEvent("click", function(e) { - root.passwordDialog.open(); - }); - }); - }); - </script> + <script type="text/javascript" src="media/js/admin.js"></script> {% endblock %} -{% block title %}{{ _("Administrate User") }} - {{ super() }} {% endblock %} -{% block subtitle %}{{ _("Administrate User") }}{% endblock %} +{% block title %}{{ _("Administrate") }} - {{ super() }} {% endblock %} +{% block subtitle %}{{ _("Administrate") }}{% endblock %} {% block content %} + + <a href="#" id="quit-pyload" style="font-size: large; font-weight: bold;">{{_("Quit pyLoad")}}</a> | + <a href="#" id="restart-pyload" style="font-size: large; font-weight: bold;">{{_("Restart pyLoad")}}</a> + <br> + <br> {{ _("To add user or change passwords use:") }} <b>python pyLoadCore.py -u</b><br> {{ _("Important: Admin user have always all permissions!") }} |