diff options
author | Jishnu <jishnu7@gmail.com> | 2011-09-22 00:22:08 +0530 |
---|---|---|
committer | Jishnu <jishnu7@gmail.com> | 2011-09-22 00:22:08 +0530 |
commit | 95d27650403b0491ffbbbc288f969559207de5d9 (patch) | |
tree | c69359ba90e3976cb0c2019525b16356041f838f | |
parent | 2464b782aacd1bd7083b5169a520008631f69c03 (diff) | |
download | askbot-95d27650403b0491ffbbbc288f969559207de5d9.tar.gz askbot-95d27650403b0491ffbbbc288f969559207de5d9.tar.bz2 askbot-95d27650403b0491ffbbbc288f969559207de5d9.zip |
feature #79 - explaining meanings of user levels in account->moderation.
-rw-r--r-- | askbot/skins/default/templates/user_profile/user_moderate.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/askbot/skins/default/templates/user_profile/user_moderate.html b/askbot/skins/default/templates/user_profile/user_moderate.html index 563026a4..674f8770 100644 --- a/askbot/skins/default/templates/user_profile/user_moderate.html +++ b/askbot/skins/default/templates/user_profile/user_moderate.html @@ -15,6 +15,8 @@ <table class="form-as-table"> {{ change_user_status_form.as_table() }} </table> + <p id="id_user_status_info"> + </p> <input type="submit" class="submit" name="change_status" value="{% trans %}Save{% endtrans %}" /> </form> {% endif %} @@ -64,3 +66,29 @@ </form> {% endif %} {% endblock %} +{% block endjs %} + <script type="text/javascript" > + $("#id_user_status_info").hide(); + $("#id_user_status").change(function () { + var optionValue = $(this).attr('value'); + if (optionValue == "d") { + $('#id_user_status_info').html("{% trans %}Administrator is the top-level user privilege set. This amounts to the same as an Operational user's privileges, plus the ability to manage users and alter system settings.{% endtrans %}"); + $('#id_user_status_info').show('slow'); + } else if (optionValue == "m"){ + $('#id_user_status_info').html("{% trans %}Moderator differ from admins in that they cannot set anyone's status to 'moderator' or remove it.{% endtrans %}"); + $('#id_user_status_info').show('slow'); + } else if (optionValue == "a"){ + $('#id_user_status_info').html("{% trans %}Approved status is for a regular user.{% endtrans %}"); + $('#id_user_status_info').show('slow'); + } else if (optionValue == "s"){ + $('#id_user_status_info').html("{% trans %}Suspended users can only edit or delete his/her own posts.{% endtrans %}"); + $('#id_user_status_info').show('slow'); + } else if (optionValue == "b"){ + $('#id_user_status_info').html("{% trans %}Blocked user can login and send feedback. nothing else.{% endtrans %}"); + $('#id_user_status_info').show('slow'); + } else { + $('#id_user_status_info').hide('slow'); + } + }) + </script> +{% endblock %} |