From: Nik Okuntseff Date: Thu, 5 Apr 2018 12:12:59 +0000 (+0000) Subject: Renamed admin templates. X-Git-Tag: timetracker_1.19-1~875 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=10e7c8186a42d71d6494711b562b92f3e5fd5b7b;p=timetracker.git Renamed admin templates. --- diff --git a/WEB-INF/templates/admin_group_add.tpl b/WEB-INF/templates/admin_group_add.tpl new file mode 100644 index 00000000..364b599b --- /dev/null +++ b/WEB-INF/templates/admin_group_add.tpl @@ -0,0 +1,49 @@ +{$forms.teamForm.open} + + + + +
+ + + + + + + + + + + + + + + + + + +{if !$auth_external} + + + + + + + + +{/if} + + + + + + + + + + + + +
{$i18n.label.group_name}:{$forms.teamForm.team_name.control}
{$i18n.label.language}:{$forms.teamForm.lang.control}
 
{$i18n.label.manager_name} (*):{$forms.teamForm.manager_name.control}
{$i18n.label.manager_login} (*):{$forms.teamForm.manager_login.control}
{$i18n.label.password} (*):{$forms.teamForm.password1.control}
{$i18n.label.confirm_password} (*):{$forms.teamForm.password2.control}
{$i18n.label.email}:{$forms.teamForm.manager_email.control}
{$i18n.label.required_fields}
 
{$forms.teamForm.btn_submit.control}
+
+{$forms.teamForm.close} diff --git a/WEB-INF/templates/admin_group_delete.tpl b/WEB-INF/templates/admin_group_delete.tpl new file mode 100644 index 00000000..a8b0712f --- /dev/null +++ b/WEB-INF/templates/admin_group_delete.tpl @@ -0,0 +1,20 @@ +{$forms.teamForm.open} + + + + +
+ + + + + + + + + + + +
{$team_to_delete|escape}
 
{$forms.teamForm.btn_delete.control}  {$forms.teamForm.btn_cancel.control}
+
+{$forms.teamForm.close} diff --git a/WEB-INF/templates/admin_group_edit.tpl b/WEB-INF/templates/admin_group_edit.tpl new file mode 100644 index 00000000..fb792045 --- /dev/null +++ b/WEB-INF/templates/admin_group_edit.tpl @@ -0,0 +1,45 @@ +{$forms.teamForm.open} + + + + +
+ + + + + + + + + + + + + + +{if !$auth_external} + + + + + + + + +{/if} + + + + + + + + + + + + +
{$i18n.label.group_name}:{$forms.teamForm.team_name.control}
 
{$i18n.label.manager_name} (*):{$forms.teamForm.manager_name.control}
{$i18n.label.manager_login} (*):{$forms.teamForm.manager_login.control}
{$i18n.label.password} (*):{$forms.teamForm.password1.control}
{$i18n.label.confirm_password} (*):{$forms.teamForm.password2.control}
{$i18n.label.email}:{$forms.teamForm.manager_email.control}
{$i18n.label.required_fields}
 
{$forms.teamForm.btn_save.control} {$forms.teamForm.btn_cancel.control}
+
+{$forms.teamForm.close} diff --git a/WEB-INF/templates/admin_groups.tpl b/WEB-INF/templates/admin_groups.tpl new file mode 100644 index 00000000..ebe88991 --- /dev/null +++ b/WEB-INF/templates/admin_groups.tpl @@ -0,0 +1,42 @@ + + + + +
{$i18n.form.groups.hint}
+ + + + + + + + + + +{if $teams} + {foreach $teams as $team} + + + + + + + + + {/foreach} +{/if} +
{$i18n.label.id}{$i18n.label.thing_name}{$i18n.label.date}{$i18n.label.language}{$i18n.label.edit}{$i18n.label.delete}
{$team.id}{$team.name|escape}{$team.date}{$team.lang}{$i18n.label.edit}{$i18n.label.delete}
+ + + + + +
+
+
+  {$i18n.label.or}  + +
+
diff --git a/WEB-INF/templates/admin_team_add.tpl b/WEB-INF/templates/admin_team_add.tpl deleted file mode 100644 index 364b599b..00000000 --- a/WEB-INF/templates/admin_team_add.tpl +++ /dev/null @@ -1,49 +0,0 @@ -{$forms.teamForm.open} - - - - -
- - - - - - - - - - - - - - - - - - -{if !$auth_external} - - - - - - - - -{/if} - - - - - - - - - - - - -
{$i18n.label.group_name}:{$forms.teamForm.team_name.control}
{$i18n.label.language}:{$forms.teamForm.lang.control}
 
{$i18n.label.manager_name} (*):{$forms.teamForm.manager_name.control}
{$i18n.label.manager_login} (*):{$forms.teamForm.manager_login.control}
{$i18n.label.password} (*):{$forms.teamForm.password1.control}
{$i18n.label.confirm_password} (*):{$forms.teamForm.password2.control}
{$i18n.label.email}:{$forms.teamForm.manager_email.control}
{$i18n.label.required_fields}
 
{$forms.teamForm.btn_submit.control}
-
-{$forms.teamForm.close} diff --git a/WEB-INF/templates/admin_team_delete.tpl b/WEB-INF/templates/admin_team_delete.tpl deleted file mode 100644 index a8b0712f..00000000 --- a/WEB-INF/templates/admin_team_delete.tpl +++ /dev/null @@ -1,20 +0,0 @@ -{$forms.teamForm.open} - - - - -
- - - - - - - - - - - -
{$team_to_delete|escape}
 
{$forms.teamForm.btn_delete.control}  {$forms.teamForm.btn_cancel.control}
-
-{$forms.teamForm.close} diff --git a/WEB-INF/templates/admin_team_edit.tpl b/WEB-INF/templates/admin_team_edit.tpl deleted file mode 100644 index fb792045..00000000 --- a/WEB-INF/templates/admin_team_edit.tpl +++ /dev/null @@ -1,45 +0,0 @@ -{$forms.teamForm.open} - - - - -
- - - - - - - - - - - - - - -{if !$auth_external} - - - - - - - - -{/if} - - - - - - - - - - - - -
{$i18n.label.group_name}:{$forms.teamForm.team_name.control}
 
{$i18n.label.manager_name} (*):{$forms.teamForm.manager_name.control}
{$i18n.label.manager_login} (*):{$forms.teamForm.manager_login.control}
{$i18n.label.password} (*):{$forms.teamForm.password1.control}
{$i18n.label.confirm_password} (*):{$forms.teamForm.password2.control}
{$i18n.label.email}:{$forms.teamForm.manager_email.control}
{$i18n.label.required_fields}
 
{$forms.teamForm.btn_save.control} {$forms.teamForm.btn_cancel.control}
-
-{$forms.teamForm.close} diff --git a/WEB-INF/templates/admin_teams.tpl b/WEB-INF/templates/admin_teams.tpl deleted file mode 100644 index 40207c8a..00000000 --- a/WEB-INF/templates/admin_teams.tpl +++ /dev/null @@ -1,43 +0,0 @@ - - - - -
{$i18n.form.groups.hint}
- - - - - - - - - - -{if $teams} - {foreach $teams as $team} - - - - - - - - - {/foreach} -{/if} -
{$i18n.label.id}{$i18n.label.thing_name}{$i18n.label.date}{$i18n.label.language}{$i18n.label.edit}{$i18n.label.delete}
{$team.id}{$team.name|escape}{$team.date}{$team.lang}{$i18n.label.edit}{$i18n.label.delete}
- - - - - -
-
-
-  {$i18n.label.or}  - -
-
- \ No newline at end of file diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index b526292a..5cc7edc4 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.86.4226 | Copyright © Anuko | +  Anuko Time Tracker 1.17.86.4227 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/admin_group_add.php b/admin_group_add.php index 7904d9f2..3684d6cd 100644 --- a/admin_group_add.php +++ b/admin_group_add.php @@ -115,6 +115,6 @@ if ($request->isPost()) { $smarty->assign('auth_external', $auth->isPasswordExternal()); $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.teamForm.team.focus()"'); -$smarty->assign('content_page_name', 'admin_team_add.tpl'); +$smarty->assign('content_page_name', 'admin_group_add.tpl'); $smarty->assign('title', $i18n->get('title.create_group')); $smarty->display('index.tpl'); diff --git a/admin_group_delete.php b/admin_group_delete.php index 99d508fb..48e60c31 100644 --- a/admin_group_delete.php +++ b/admin_group_delete.php @@ -66,5 +66,5 @@ if ($request->isPost()) { $smarty->assign('team_to_delete', $team_name); $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('title', $i18n->get('title.delete_group')); -$smarty->assign('content_page_name', 'admin_team_delete.tpl'); +$smarty->assign('content_page_name', 'admin_group_delete.tpl'); $smarty->display('index.tpl'); diff --git a/admin_group_edit.php b/admin_group_edit.php index 0efca4f6..317624ab 100644 --- a/admin_group_edit.php +++ b/admin_group_edit.php @@ -105,5 +105,5 @@ $smarty->assign('auth_external', $auth->isPasswordExternal()); $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.teamForm.manager_name.focus()"'); $smarty->assign('title', $i18n->get('title.edit_group')); -$smarty->assign('content_page_name', 'admin_team_edit.tpl'); +$smarty->assign('content_page_name', 'admin_group_edit.tpl'); $smarty->display('index.tpl'); diff --git a/admin_groups.php b/admin_groups.php index a5521ad9..bccbb058 100644 --- a/admin_groups.php +++ b/admin_groups.php @@ -37,5 +37,5 @@ if (!ttAccessAllowed('administer_site')) { $smarty->assign('teams', ttGroupHelper::getTopGroups()); $smarty->assign('title', $i18n->get('title.groups')); -$smarty->assign('content_page_name', 'admin_teams.tpl'); +$smarty->assign('content_page_name', 'admin_groups.tpl'); $smarty->display('index.tpl');