Some more renaming in progress.
[timetracker.git] / admin_team_edit.php
index a737050..0efca4f 100644 (file)
@@ -37,8 +37,8 @@ if (!ttAccessAllowed('administer_site')) {
   exit();
 }
 
-$team_id = $request->getParameter('id');
-$team_details = ttTeamHelper::getTeamDetails($team_id);        
+$group_id = $request->getParameter('id');
+$team_details = ttTeamHelper::getTeamDetails($group_id);
 
 if ($request->isPost()) {
   $cl_team_name = trim($request->getParameter('team_name'));
@@ -68,7 +68,7 @@ if (!$auth->isPasswordExternal()) {
   $form->addInput(array('type'=>'password','maxlength'=>'30','name'=>'password2','value'=>$cl_password2));
 }
 $form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'manager_email','value'=>$cl_manager_email));
-$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$team_id));
+$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$group_id));
 $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->get('button.save')));
 $form->addInput(array('type'=>'submit','name'=>'btn_cancel','value'=>$i18n->get('button.cancel')));
 
@@ -88,15 +88,15 @@ if ($request->isPost()) {
 
     import('ttAdmin');
     $admin = new ttAdmin($err);
-    $result = $admin->updateGroup($team_id, $fields);
+    $result = $admin->updateGroup($group_id, $fields);
     if ($result) {
-      header('Location: admin_teams.php');
+      header('Location: admin_groups.php');
       exit();
     }
   }
 
   if ($request->getParameter('btn_cancel')) {
-    header('Location: admin_teams.php');
+    header('Location: admin_groups.php');
     exit();
   }
 } // isPost
@@ -104,6 +104,6 @@ if ($request->isPost()) {
 $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_team'));
+$smarty->assign('title', $i18n->get('title.edit_group'));
 $smarty->assign('content_page_name', 'admin_team_edit.tpl');
 $smarty->display('index.tpl');