From 78ef5f9b455fc04a3fe8535f234d98bddf4de6c9 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Tue, 20 Nov 2018 21:56:40 +0000 Subject: [PATCH] Started to work on group editor for subgroups. --- WEB-INF/templates/footer.tpl | 2 +- WEB-INF/templates/groups.tpl | 31 +++++++++++++++++++++++++ groups.php | 45 ++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 WEB-INF/templates/groups.tpl create mode 100644 groups.php diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 98ee48de..9a9be2d0 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.25.4476 | Copyright © Anuko | +  Anuko Time Tracker 1.18.25.4477 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/groups.tpl b/WEB-INF/templates/groups.tpl new file mode 100644 index 00000000..d9748bcb --- /dev/null +++ b/WEB-INF/templates/groups.tpl @@ -0,0 +1,31 @@ + + + + + + + + +{if $groups} + {foreach $groups as $group} + + + + + + {/foreach} +{/if} +
{$i18n.label.thing_name}{$i18n.label.edit}{$i18n.label.delete}
{$group.name|escape}{$i18n.label.edit}{$i18n.label.delete}
+ + + + + +
+
+
+ +
+
diff --git a/groups.php b/groups.php new file mode 100644 index 00000000..5a612c13 --- /dev/null +++ b/groups.php @@ -0,0 +1,45 @@ +assign('groups', $user->getGroups()); +$smarty->assign('title', $i18n->get('title.groups')); +$smarty->assign('content_page_name', 'groups.tpl'); +$smarty->display('index.tpl'); -- 2.20.1