From 2126bf5e070b877a994e4aa10143670d5c013a2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Mon, 6 Aug 2018 11:30:11 +0200 Subject: [PATCH] Add showOrder function for trophies See #2641 --- .../install/files/acp/templates/trophyAdd.tpl | 8 +++ .../files/acp/templates/trophyList.tpl | 65 +++++++++---------- .../lib/acp/form/TrophyAddForm.class.php | 15 ++++- .../lib/acp/form/TrophyEditForm.class.php | 4 +- .../lib/acp/page/TrophyListPage.class.php | 13 ++-- .../files/lib/data/trophy/Trophy.class.php | 1 + .../lib/data/trophy/TrophyAction.class.php | 62 +++++++++++++++++- .../lib/data/trophy/TrophyEditor.class.php | 35 ++++++++++ .../files/lib/data/user/UserProfile.class.php | 4 +- .../files/lib/form/SettingsForm.class.php | 2 + .../files/lib/page/TrophyListPage.class.php | 2 +- .../builder/TrophyCacheBuilder.class.php | 1 + wcfsetup/install/lang/de.xml | 1 + wcfsetup/install/lang/en.xml | 1 + wcfsetup/setup/db/install.sql | 1 + 15 files changed, 164 insertions(+), 51 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/trophyAdd.tpl b/wcfsetup/install/files/acp/templates/trophyAdd.tpl index 4279ced2bb..8908e03807 100644 --- a/wcfsetup/install/files/acp/templates/trophyAdd.tpl +++ b/wcfsetup/install/files/acp/templates/trophyAdd.tpl @@ -121,6 +121,14 @@ +
+
+
+ + {lang}wcf.acp.trophy.showOrder.description{/lang} +
+
+
diff --git a/wcfsetup/install/files/acp/templates/trophyList.tpl b/wcfsetup/install/files/acp/templates/trophyList.tpl index 6e7b5b751e..0aa506c315 100644 --- a/wcfsetup/install/files/acp/templates/trophyList.tpl +++ b/wcfsetup/install/files/acp/templates/trophyList.tpl @@ -1,12 +1,18 @@ {include file='header' pageTitle='wcf.acp.menu.link.trophy.list'}
@@ -25,44 +31,35 @@ {hascontent}
{content} - {pages print=true assign=pagesLinks controller='TrophyList' link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder"} + {pages print=true assign=pagesLinks controller='TrophyList' link="pageNo=%d"} {/content}
{/hascontent} {if $objects|count} -
- - - - - - - - - {event name='columnHeads'} - - - - - {foreach from=$objects item=trophy} - - - - - - - - {event name='columns'} - +
+
    + {foreach from=$objects item='trophy'} +
  1. + + {$trophy->getTitle()} + + + + + + + + {event name='itemButtons'} + + +
  2. {/foreach} -
-
{lang}wcf.global.objectID{/lang}{lang}wcf.global.title{/lang}{lang}wcf.acp.trophy.category{/lang}
- - - - {@$trophy->trophyID}{@$trophy->renderTrophy(32)}{$trophy->getTitle()}{$trophy->getCategory()->getTitle()}
- + + +
+ +