commit 77dd76a24df99ed699febfb19b9d3d5244f6e69a
parent 836ef929e2da7f538d1a187ac85faff3e970e00a
Author: dankert <devnull@localhost>
Date: Mon, 30 Nov 2009 23:02:51 +0100
Bessere Checkbox bei Projekt-Wartung.
Diffstat:
2 files changed, 21 insertions(+), 9 deletions(-)
diff --git a/actionClasses/ProjectAction.class.php b/actionClasses/ProjectAction.class.php
@@ -209,15 +209,23 @@ class ProjectAction extends Action
*/
function maintenanceAction()
{
- if ( !$this->hasRequestVar('ok') )
+ if ( !$this->getRequestVar('type')=='check_files' )
{
- $this->addValidationError('ok');
+ $this->project->checkLostFiles();
+ $this->addNotice('project',$this->project->name,'DONE');
+ $this->setTemplateVar('done',true);
+ }
+ elseif ( !$this->getRequestVar('type')=='clean_old_values' )
+ {
+ $this->project->checkLostFiles();
+ $this->addNotice('project',$this->project->name,'DONE');
+ $this->setTemplateVar('done',true);
+ }
+ else
+ {
+ $this->addValidationError('type');
return;
}
-
- $this->project->checkLostFiles();
- $this->addNotice('project',$this->project->name,'DONE');
- $this->setTemplateVar('done',true);
}
diff --git a/themes/default/templates/project/maintenance.tpl.src.php b/themes/default/templates/project/maintenance.tpl.src.php
@@ -2,6 +2,10 @@ page
form
window icon:project name:GLOBAL_PROJECT
row
+ cell colspan:2
+ label for:check_files
+ checkbox name:check_files
+ text key:project_check_files
+ row
cell colspan:2 class:act
- if not:true present:done
- button-
\ No newline at end of file
+ button type:OK+
\ No newline at end of file