-{$forms.teamForm.open}
+{$forms.groupForm.open}
<table cellspacing="4" cellpadding="7" border="0">
<tr>
<td>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
- <td colspan="2" align="center"><b>{$team_to_delete|escape}</b></td>
+ <td colspan="2" align="center"><b>{$group_to_delete|escape}</b></td>
</tr>
<tr>
<td colspan="2" align="center"> </td>
</tr>
<tr>
- <td align="right">{$forms.teamForm.btn_delete.control} </td>
- <td align="left"> {$forms.teamForm.btn_cancel.control}</td>
+ <td align="right">{$forms.groupForm.btn_delete.control} </td>
+ <td align="left"> {$forms.groupForm.btn_cancel.control}</td>
</tr>
</table>
</td>
</tr>
</table>
-{$forms.teamForm.close}
+{$forms.groupForm.close}
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.17.86.4228 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.86.4229 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
// End of access checks.
$group_id = (int)$request->getParameter('id');
-$team_details = ttTeamHelper::getTeamDetails($group_id);
-$team_name = $team_details['team_name'];
+$group_details = ttTeamHelper::getTeamDetails($group_id); // TODO: refactor this.
+$group_name = $group_details['team_name'];
-$form = new Form('teamForm');
+$form = new Form('groupForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$group_id));
$form->addInput(array('type'=>'submit','name'=>'btn_delete','value'=>$i18n->get('label.delete')));
$form->addInput(array('type'=>'submit','name'=>'btn_cancel','value'=>$i18n->get('button.cancel')));
}
} // isPost
-$smarty->assign('team_to_delete', $team_name);
+$smarty->assign('group_to_delete', $group_name);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->get('title.delete_group'));
$smarty->assign('content_page_name', 'admin_group_delete.tpl');