commit ffa3f82a96b748e711e826bbf05d43006c3e87fd
parent 063c393ee1421403e3f4d5155b8b4fe356fb8f20
Author: dankert <devnull@localhost>
Date: Mon, 16 Apr 2007 23:25:41 +0200
Neuer Men?punkt im Projektmen?: Import.
Diffstat:
4 files changed, 48 insertions(+), 7 deletions(-)
diff --git a/actionClasses/ProjectAction.class.php b/actionClasses/ProjectAction.class.php
@@ -20,7 +20,10 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// ---------------------------------------------------------------------------
// $Log$
-// Revision 1.11 2007-01-21 15:00:03 dankert
+// Revision 1.12 2007-04-16 21:25:41 dankert
+// Neuer Men?punkt im Projektmen?: Import.
+//
+// Revision 1.11 2007/01/21 15:00:03 dankert
// Parameter TARGETSUBACTION verwenden.
//
// Revision 1.10 2006/06/01 20:59:27 dankert
@@ -186,10 +189,26 @@ class ProjectAction extends Action
}
+
function maintenance()
{
- $this->project->checkLostFiles();
+ if ( $this->hasRequestVar('ok') )
+ {
+ $this->project->checkLostFiles();
+ $this->addNotice('project',$this->project->name,'DONE');
+ $this->setTemplateVar('done',true);
+ }
+ }
- $this->addNotice('project',$this->project->name,'DONE');
+
+
+ function import()
+ {
+ if ( $this->hasRequestVar('ok') )
+ {
+ $this->project->import();
+ $this->addNotice('project',$this->project->name,'DONE');
+ $this->setTemplateVar('done',true);
+ }
}
}
\ No newline at end of file
diff --git a/actionClasses/ProjectAction.ini.php b/actionClasses/ProjectAction.ini.php
@@ -14,6 +14,11 @@ goto=listing
[maintenance]
menu=edit
+target=maintenance
+
+[import]
+menu=edit
+target=import
[edit]
target=save
@@ -31,4 +36,4 @@ target=addproject
[menu]
list=listing,add
-edit=edit,remove,maintenance-
\ No newline at end of file
+edit=edit,remove,import,maintenance+
\ No newline at end of file
diff --git a/themes/default/templates/project/import.tpl.src.php b/themes/default/templates/project/import.tpl.src.php
@@ -0,0 +1,9 @@
+page
+ form
+ window icon:project name:GLOBAL_PROJECT
+ row
+ cell
+ newline
+ newline
+ newline
+ button+
\ No newline at end of file
diff --git a/themes/default/templates/project/maintenance.tpl.src.php b/themes/default/templates/project/maintenance.tpl.src.php
@@ -1,3 +1,10 @@
page
form
- window icon:project name:GLOBAL_PROJECT-
\ No newline at end of file
+ window icon:project name:GLOBAL_PROJECT
+ row
+ cell
+ if not:true present:done
+ newline
+ newline
+ newline
+ button+
\ No newline at end of file