diff --git a/templates/web/admin/editusers.twig b/templates/web/admin/editusers.twig index db2cd0be98..871438a121 100644 --- a/templates/web/admin/editusers.twig +++ b/templates/web/admin/editusers.twig @@ -111,7 +111,7 @@
  • {% trans 'Rights' %}
  • - {% if main_user is not empty and main_user.is_template is empty %} + {% if main_user is not empty and main_user.is_template is empty and main_user.is_special is empty %}
  • {% trans 'Infos' %}
  • @@ -124,10 +124,19 @@ {% if main_user is not empty %} - {% set display_name = main_user.get_display_name() %} - {% trans %} - Edition des droits de {{ display_name }} - {% endtrans %} + + {% if main_user.is_special is not empty %} + {% if main_user.get_login() == 'invite' %} + {% trans 'Reglages:: reglages d acces guest' %} + {% elseif main_user.get_login() == 'autoregister' %} + {% trans 'Reglages:: reglages d inscitpition automatisee' %} + {% endif %} + {% else %} + {% set display_name = main_user.get_display_name() %} + {% trans %} + Edition des droits de {{ display_name }} + {% endtrans %} + {% endif %} {% else %} {% set number = users|length %} {% trans %} @@ -413,7 +422,7 @@ - {% if main_user is not empty and main_user.is_template is empty %} + {% if main_user is not empty and main_user.is_template is empty and main_user.is_special is empty %}
    diff --git a/templates/web/admin/users.html b/templates/web/admin/users.html index 47c1ea5099..162ce53a65 100644 --- a/templates/web/admin/users.html +++ b/templates/web/admin/users.html @@ -34,6 +34,13 @@ + + + + {% trans 'Reglages:: reglages d inscitpition automatisee' %} + + +

    diff --git a/www/admin/users.js b/www/admin/users.js index a64db944b0..6eecde8195 100644 --- a/www/admin/users.js +++ b/www/admin/users.js @@ -362,7 +362,7 @@ $(document).ready(function(){ }); return false; }); - $('#users_page .invite_modifier').live('click', function(){ + $('#users_page .invite_modifier, #users_page .autoregister_modifier').live('click', function(){ var users = $(this).next('input').val(); if($.trim(users) === '')