From 1c6cdfd7a7ed6fc9b1dc77905032bd3a86e5ef12 Mon Sep 17 00:00:00 2001 From: Quitta Date: Thu, 1 Aug 2013 04:48:40 +0200 Subject: [PATCH] Added support group pages ingame layout + layout of the #menu's and managed to get a AMS-Home button in the top that would bring the page back to the dashboard! --HG-- branch : quitta-gsoc-2013 --- .../data/gamedev/interfaces_v3/help.xml | 4 +- .../ams_lib/ingame_templates/layout_admin.tpl | 7 +- .../ams_lib/ingame_templates/layout_mod.tpl | 26 ++-- .../ams_lib/ingame_templates/layout_user.tpl | 13 ++ .../ams_lib/ingame_templates/libuserlist.tpl | 73 +++++++++++ .../ams_lib/ingame_templates/sgroup_list.tpl | 114 ++++++++++++++++++ .../ams_lib/ingame_templates/show_sgroup.tpl | 113 +++++++++++++++++ 7 files changed, 331 insertions(+), 19 deletions(-) create mode 100644 code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/libuserlist.tpl create mode 100644 code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/sgroup_list.tpl create mode 100644 code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/show_sgroup.tpl diff --git a/code/ryzom/client/data/gamedev/interfaces_v3/help.xml b/code/ryzom/client/data/gamedev/interfaces_v3/help.xml index 2fae55a78..c774edd47 100644 --- a/code/ryzom/client/data/gamedev/interfaces_v3/help.xml +++ b/code/ryzom/client/data/gamedev/interfaces_v3/help.xml @@ -866,7 +866,7 @@ + value="http://localhost:40917/www/html/index.php" />
Support Groups
- | - -
Syncing
- -
Logout
- + {/block} diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/layout_mod.tpl b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/layout_mod.tpl index e0a77d99a..34911226f 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/layout_mod.tpl +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/layout_mod.tpl @@ -1,14 +1,18 @@ {extends file="layout.tpl"} -{block name=menu} - -
  • Dashboard
  • -
  • Profile
  • -
  • Settings
  • - -
  • Users
  • -
  • Queues
  • -
  • Support Groups
  • - -
  • Logout
  • +{block name=menu} +
    Dashboard
    + +
    Profile
    + +
    Settings
    + + | + +
    Users
    + +
    Queues
    + +
    Support Groups
    + {/block} diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/layout_user.tpl b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/layout_user.tpl index 8da6ca313..b876fa1c5 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/layout_user.tpl +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/layout_user.tpl @@ -7,5 +7,18 @@
  • Create New Ticket
  • Logout
  • + + +
    Dashboard
    + +
    Profile
    + +
    Settings
    + + | + +
    Create New Ticket
    + + {/block} diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/libuserlist.tpl b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/libuserlist.tpl new file mode 100644 index 000000000..645de53f2 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/libuserlist.tpl @@ -0,0 +1,73 @@ +{block name=content} + +
    +
    +
    +

    {$libuserlist_title}

    +
    + + + + +
    +
    +
    +
    +

    {$libuserlist_info}

    + {if $shard eq "online"} +
    + {$shard_online}{$libuserlist_sync} + +
    + {else} +
    + {$shard_offline} +
    + {/if} +
    +
    +
    +
    +
    +
    +
    +
    +

    {$members}

    +
    + + + +
    +
    +
    + + + + + + + + + {foreach from=$liblist item=element} + + + + + + + {/foreach} + + +
    {$id}{$type}
    {$element.id}{$element.type}
    +
    +
    + +
    +{/block} + diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/sgroup_list.tpl b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/sgroup_list.tpl new file mode 100644 index 000000000..63c2a42b3 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/sgroup_list.tpl @@ -0,0 +1,114 @@ +{block name=content} + + + + + + + + + + + +

    Support Groups

    + + + + + + + + + + + + +
    + + +
    +
    + + {if isset($isAdmin) && $isAdmin eq 'TRUE'} + + {/if} + +
    + + +
    + + +
    +

    Add a Support group

    + +
    + + + + + + + + + + +
    Group name:
    Group Tag:
    + +

    + + + {if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "SUCCESS"} +

    + {$group_success} +

    + {else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "NAME_TAKEN"} +

    + {$group_name_taken} +

    + {else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "TAG_TAKEN"} +

    + {$group_tag_taken} +

    + {else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "SIZE_ERROR"} +

    + {$group_size_error} +

    + {/if} +
    +
    +
    +
    + + +
    + + +
    +

    All groups

    + + + + + + {if isset($isAdmin) && $isAdmin eq 'TRUE'}{/if} + + + {foreach from=$grouplist item=group} + + + + + {if isset($isAdmin) && $isAdmin eq 'TRUE'}{/if} + + {/foreach} +
    IDNameTagAction
    {$group.sGroupId}{$group.name}{$group.tag}Delete
    +
    +
    +
    +
    + + + +{/block} + diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/show_sgroup.tpl b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/show_sgroup.tpl new file mode 100644 index 000000000..f2fedfe40 --- /dev/null +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/show_sgroup.tpl @@ -0,0 +1,113 @@ +{block name=content} + + + + + + + + + + + +

    Support Group: {$groupsname}

    + + + + + + + + + + + + +
    + + +
    +
    + + + +
    + + +
    + + +
    +

    Add user to the list

    + {if isset($isAdmin) && $isAdmin eq 'TRUE'} +
    + + + + + +
    Username:
    + + + +

    + +

    + + {if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "SUCCESS"} +

    + {$add_to_group_success} +

    + {else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "ALREADY_ADDED"} +

    + {$user_already_added} +

    + {else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "GROUP_NOT_EXISTING"} +

    + {$group_not_existing} +

    + {else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "USER_NOT_EXISTING"} +

    + {$user_not_existing} +

    + {else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "NOT_MOD_OR_ADMIN"} +

    + {$not_mod_or_admin} +

    + {/if} +
    + {/if} +
    +
    +
    + + +
    + + +
    +

    All members

    + + + + + {if isset($isAdmin) && $isAdmin eq 'TRUE'}{/if} + + + {foreach from=$userlist item=user} + + + + {if isset($isAdmin) && $isAdmin eq 'TRUE'}{/if} + + {/foreach} +
    IDNameAction
    {$user.tUserId}{$user.name}Delete
    +
    +
    +
    +
    + + + +{/block} +