From: Ben Klang Date: Sat, 3 Apr 2010 00:36:01 +0000 (-0400) Subject: Shout: mv accounts admin files into place X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4c359400871ce4e2d24262bcbbe0a2562c8db527;p=horde.git Shout: mv accounts admin files into place --- diff --git a/shout/admin/accounts.php b/shout/admin/accounts.php index 6969872ce..8cddbd399 100644 --- a/shout/admin/accounts.php +++ b/shout/admin/accounts.php @@ -107,6 +107,6 @@ $notification->notify(); Shout::getAdminTabs(); -require SHOUT_TEMPLATES . '/accounts/' . $action . '.inc'; +require SHOUT_TEMPLATES . '/admin/accounts/' . $action . '.inc'; require $registry->get('templates', 'horde') . '/common-footer.inc'; diff --git a/shout/templates/accounts/edit.inc b/shout/templates/accounts/edit.inc deleted file mode 100644 index e42e0b1a3..000000000 --- a/shout/templates/accounts/edit.inc +++ /dev/null @@ -1,10 +0,0 @@ -renderActive($RENDERER, $vars, Horde::applicationUrl('admin.php'), 'post'); - -if ($vars->get('action') == 'edit') { - $deleteUrl = Horde::applicationUrl('admin.php'); - $params = array ('action' => 'delete', - 'account' => $account); - $deleteUrl = Horde_Util::addParameter($deleteUrl, $params); - echo 'Delete Account'; -} diff --git a/shout/templates/accounts/list.inc b/shout/templates/accounts/list.inc deleted file mode 100644 index d15573505..000000000 --- a/shout/templates/accounts/list.inc +++ /dev/null @@ -1,44 +0,0 @@ -
- Account: -
- -
- - - - - - - - - - - - - -
Account CodeAccount NameAdmin PIN
- $code))); echo $code; echo ''; ?> - - - - -
-
- \ No newline at end of file diff --git a/shout/templates/admin/accounts/edit.inc b/shout/templates/admin/accounts/edit.inc new file mode 100644 index 000000000..e42e0b1a3 --- /dev/null +++ b/shout/templates/admin/accounts/edit.inc @@ -0,0 +1,10 @@ +renderActive($RENDERER, $vars, Horde::applicationUrl('admin.php'), 'post'); + +if ($vars->get('action') == 'edit') { + $deleteUrl = Horde::applicationUrl('admin.php'); + $params = array ('action' => 'delete', + 'account' => $account); + $deleteUrl = Horde_Util::addParameter($deleteUrl, $params); + echo 'Delete Account'; +} diff --git a/shout/templates/admin/accounts/list.inc b/shout/templates/admin/accounts/list.inc new file mode 100644 index 000000000..d15573505 --- /dev/null +++ b/shout/templates/admin/accounts/list.inc @@ -0,0 +1,44 @@ +
+ Account: +
+ +
+ + + + + + + + + + + + + +
Account CodeAccount NameAdmin PIN
+ $code))); echo $code; echo ''; ?> + + + + +
+
+ \ No newline at end of file