From 541a2d67982105d86a7bc257ce5f7a24e4a8b066 Mon Sep 17 00:00:00 2001 From: botanic Date: Mon, 8 Sep 2014 03:19:13 -0700 Subject: [PATCH] fix menu plugin display --- .../Domain_Management/templates/index.tpl | 406 +++++++++--------- .../public_php/ams/templates/layout_admin.tpl | 2 + .../public_php/ams/templates/layout_mod.tpl | 4 +- .../public_php/ams/templates/layout_user.tpl | 2 +- 4 files changed, 210 insertions(+), 204 deletions(-) diff --git a/code/web/private_php/ams/plugins/Domain_Management/templates/index.tpl b/code/web/private_php/ams/plugins/Domain_Management/templates/index.tpl index 0f7e208ac..174ee0639 100644 --- a/code/web/private_php/ams/plugins/Domain_Management/templates/index.tpl +++ b/code/web/private_php/ams/plugins/Domain_Management/templates/index.tpl @@ -1,211 +1,213 @@ {block name=content} -{if isset($smarty.get.edit_domain)} -
-
-
-
-

{$hook_info['Domain_Management']['domains'][$smarty.get.edit_domain-1]['domain_name']}

-
-
-
- Users with permissions in domain - - - - - - - - - - - {foreach from=$hook_info['Domain_Management']['userlist'] item=element} - - - - - - - {/foreach} - -
User IDUsernamePermissions
{$element.id}{$element.username}{$hook_info['Domain_Management']['permissions'][{$element.id}-1]['AccessPrivilege']} - -
-
-
-
-
- -
-
-
-

Modify Domain Settings

-
-
-
- -
- - Domain Settings of '{$hook_info['Domain_Management']['domains'][$smarty.get.edit_domain-1]['domain_name']}' - -
- -
-
- -
-
-
- -
- -
-
- -
-
-
- -
- -
- +{if $permission eq 3} + {if isset($smarty.get.edit_domain)} +
+
+
+
+

{$hook_info['Domain_Management']['domains'][$smarty.get.edit_domain-1]['domain_name']}

-
- -
- -
-
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
- -
-
-
- -
- -
-
- -
-
-
- -
- -
- -
-
- - {if isset($RESULT_OF_MODIFYING) and $RESULT_OF_MODIFYING eq "SUCCESS"} -
- {$modify_mail_of_group_success} -
- {/if} - - -
-
-
-
- -
-{else} - +
+
+ Users with permissions in domain +
- - - - - + + + + - - {if isset($hook_info['Domain_Management']['domains'][0])} - {foreach from=$hook_info['Domain_Management']['domains'] item=array} - - - - - - - - {/foreach} + + {foreach from=$hook_info['Domain_Management']['userlist'] item=element} + + + + + + + {/foreach} + +
Domain IDDomain NameStatusPatch VersionDescriptionUser IDUsernamePermissions
{$array['domain_id']}{$array['domain_name']}{$array['status']}{$array['patch_version']}{$array['description']|truncate}
{$element.id}{$element.username}{$hook_info['Domain_Management']['permissions'][{$element.id}-1]['AccessPrivilege']} + +
+
+
+
+
+ +
+
+
+

Modify Domain Settings

+
+
+
+ +
+ + Domain Settings of '{$hook_info['Domain_Management']['domains'][$smarty.get.edit_domain-1]['domain_name']}' + +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+ +
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+ +
+
+ + {if isset($RESULT_OF_MODIFYING) and $RESULT_OF_MODIFYING eq "SUCCESS"} +
+ {$modify_mail_of_group_success} +
{/if} - - -{/if} + +
+
+
+
+
+ + + {else} + + + + + + + + + + + + {if isset($hook_info['Domain_Management']['domains'][0])} + {foreach from=$hook_info['Domain_Management']['domains'] item=array} + + + + + + + + {/foreach} + {/if} + +
Domain IDDomain NameStatusPatch VersionDescription
{$array['domain_id']}{$array['domain_name']}{$array['status']}{$array['patch_version']}{$array['description']|truncate}
+ {/if} +{/if} {/block} diff --git a/code/web/public_php/ams/templates/layout_admin.tpl b/code/web/public_php/ams/templates/layout_admin.tpl index be6bd0765..d1d0901c5 100644 --- a/code/web/public_php/ams/templates/layout_admin.tpl +++ b/code/web/public_php/ams/templates/layout_admin.tpl @@ -1,5 +1,6 @@ {extends file="layout.tpl"} {block name=menu} +{if $permission eq 3}
  • Dashboard
  • Profile
  • @@ -14,5 +15,6 @@
  • Plugins
  • Syncing
  • Logout
  • +{/if} {/block} diff --git a/code/web/public_php/ams/templates/layout_mod.tpl b/code/web/public_php/ams/templates/layout_mod.tpl index 63b992d3f..f5cc950b1 100644 --- a/code/web/public_php/ams/templates/layout_mod.tpl +++ b/code/web/public_php/ams/templates/layout_mod.tpl @@ -1,5 +1,6 @@ {extends file="layout.tpl"} {block name=menu} +{if $permission > 1}
  • Dashboard
  • Profile
  • @@ -10,6 +11,7 @@
  • Queues
  • Support Groups
  • -
  • Logout
  • + +{/if}
  • Logout
  • {/block} diff --git a/code/web/public_php/ams/templates/layout_user.tpl b/code/web/public_php/ams/templates/layout_user.tpl index 800058bfa..845436e94 100644 --- a/code/web/public_php/ams/templates/layout_user.tpl +++ b/code/web/public_php/ams/templates/layout_user.tpl @@ -3,7 +3,7 @@
  • Profile
  • Settings
  • - {if isset($hook_info)} {foreach from=$hook_info key=arrkey item=element}
  • {$element.menu_display}
  • {/foreach}{/if} + {if isset($hook_info)} {foreach from=$hook_info key=arrkey item=element}{if isset($element.user_display)}
  • {$element.user_display}
  • {/if}{/foreach}{/if}
  • Create New Ticket
  • Logout