]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add production profile
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 5 Nov 2007 21:06:59 +0000 (21:06 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 5 Nov 2007 21:06:59 +0000 (21:06 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5859 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/tpl/display_user.tpl

index 5702a13dea8fd803dc6a824b23ca3448bd9853e0..c31c4cc08b74761366153b3824b28b52c06017ad 100644 (file)
@@ -80,11 +80,21 @@ function set_role(val)
        for (var i=0; i < document.form1.rolename.length; ++i) {
              document.form1.rolename[i].selected = true;
        }
+   else if (val == "production") {
+       for (var i=0; i < document.form1.rolename.length; ++i) {
+          if (document.form1.rolename[i].value != 'r_configure' &&
+               document.form1.rolename[i].value != 'r_user_mgnt' &&
+               document.form1.rolename[i].value != 'r_group_mgnt'
+               )
+           {
+             document.form1.rolename[i].selected = true;
+           }
+       }
    } else if (val == "customer") {
        for (var i=0; i < document.form1.rolename.length; ++i) {
-          if (document.form1.rolename[i].value == 'view_stats'   ||
-               document.form1.rolename[i].value == 'view_history' ||
-               document.form1.rolename[i].value == 'view_log'
+          if (document.form1.rolename[i].value == 'r_view_stats'   ||
+               document.form1.rolename[i].value == 'r_view_history' ||
+               document.form1.rolename[i].value == 'r_view_log'
                )
            {
              document.form1.rolename[i].selected = true;