Index: openacs-4/packages/project-manager/project-manager.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/project-manager.info,v
diff -u -r1.39 -r1.40
--- openacs-4/packages/project-manager/project-manager.info 13 Nov 2005 19:30:07 -0000 1.39
+++ openacs-4/packages/project-manager/project-manager.info 16 Nov 2005 17:40:43 -0000 1.40
@@ -7,15 +7,15 @@
f
f
-
+
Jade Rubick
Project management tool for OpenACS
2005-11-08
Integrated Bakery Resources
Track tasks, estimates and actual progress for a project. See the <a href="http://openacs.org/projects/dotwrk/project_management/">project page</a> for more information.
0
-
+
Index: openacs-4/packages/project-manager/catalog/project-manager.de_DE.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/catalog/project-manager.de_DE.ISO-8859-1.xml,v
diff -u -r1.19 -r1.20
--- openacs-4/packages/project-manager/catalog/project-manager.de_DE.ISO-8859-1.xml 13 Nov 2005 17:54:44 -0000 1.19
+++ openacs-4/packages/project-manager/catalog/project-manager.de_DE.ISO-8859-1.xml 16 Nov 2005 17:40:45 -0000 1.20
@@ -1,5 +1,5 @@
-
+
--- noch nicht festgelegt ---
-- geschlossen
@@ -37,6 +37,8 @@
Aggregiere die Projekte von diesem Zeitpunkt der letzten Jahre und davor
Alle
Von den Kategorien aus zuteilen
+ Selbst zuweisen
+ Mich selbst als Verantwortlichen zuweisen
%assign% entfernt
%assign% gespeichert
Beauftragter
@@ -56,7 +58,9 @@
Kategorien
Alle/Keine ausw�hlen
Schlie�en
+ Mehrer Aufgaben schliessen
Projekt schlie�en
+ Aufgaben schliessen
Abgeschlossen
Kennziffer
Jobnummer:
@@ -143,6 +147,7 @@
Zur�ck gehen
Ziel
Ziel:
+ Verstecken
aufgelaufene Stunden
Stunden
Geleistete Stunden
@@ -345,6 +350,7 @@
W�hlen Sie ein Projekt aus, zu dem die Aufgabe verschoben werden soll
Aufgabe verschieben
Verschiebe Aufgabe zu Projekt
+ Mich selbst
n/a
Name
Job ID:
@@ -445,6 +451,7 @@
Beteiligte bewerten
Bewertung der Mitarbeiter des Projektes
Bewerte dieses Projekt
+ Neu zuweisen
Zugeh�rige %task_term%n
Verbleibende Arbeit
ich selbst
@@ -471,6 +478,7 @@
Send Nachricht an:
Berechtigungen setzen
Einrichten
+ Anzeigen
Auch Abgeschlossene anzeigen
Dieses Projekt anzeigen
Subproject anzeigen
@@ -491,6 +499,7 @@
Thema:
Thema
Betreff\
+ Unterprojekt Aufgaben
Subprojekte
Zwischensumme
Zwischensumme Durchschnitt
Index: openacs-4/packages/project-manager/catalog/project-manager.en_US.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/catalog/project-manager.en_US.ISO-8859-1.xml,v
diff -u -r1.50 -r1.51
--- openacs-4/packages/project-manager/catalog/project-manager.en_US.ISO-8859-1.xml 13 Nov 2005 17:54:44 -0000 1.50
+++ openacs-4/packages/project-manager/catalog/project-manager.en_US.ISO-8859-1.xml 16 Nov 2005 17:40:45 -0000 1.51
@@ -1,5 +1,5 @@
-
+
--- TBD ---
-- Closed
@@ -58,7 +58,9 @@
Categories
Check/Uncheck
Close
+ Close multiple tasks
Close project
+ Close tasks
Closed
Code
Code:
Index: openacs-4/packages/project-manager/lib/tasks.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/lib/tasks.tcl,v
diff -u -r1.39 -r1.40
--- openacs-4/packages/project-manager/lib/tasks.tcl 16 Nov 2005 15:06:08 -0000 1.39
+++ openacs-4/packages/project-manager/lib/tasks.tcl 16 Nov 2005 17:40:45 -0000 1.40
@@ -25,12 +25,13 @@
# Other Variables:
# ----------------
# actions_p Boolean to specify if you like to show list actions or not
+# bulk_actions_p Boolean to specify if you like to show bulk actions or not
# base_url Url to use in links
# display_mode Could be "list", then only the list of tasks will be shown or could be "filter",
# then filters would be added as well.
set required_param_list [list]
-set optional_param_list [list orderby searchterm page actions_p base_url page_num page_size]
+set optional_param_list [list orderby searchterm page actions_p base_url page_num page_size bulk_actions_p]
set optional_unset_list [list \
filter_party_id pid_filter \
is_observer_filter instance_id filter_package_id \
@@ -285,12 +286,15 @@
# Bulk actions to show in the list
set use_bulk_p [parameter::get -parameter "UseBulkP" -default "0"]
-if { $use_bulk_p == 1 } {
+if { $use_bulk_p == 1 || $bulk_actions_p == 1} {
set row_list "multiselect {}\n $row_list"
set bulk_actions [list \
"[_ project-manager.Edit_tasks]" \
"${base_url}task-add-edit" \
"[_ project-manager.Edit_multiple_tasks]" \
+ "[_ project-manager.Close_tasks]" \
+ "${base_url}task-bulk-close" \
+ "[_ project-manager.Close_multiple_tasks]" \
"[_ project-manager.Assign_myself]" \
"${base_url}assign-myself" \
"[_ project-manager.Assign_myself_as_lead]"]
Index: openacs-4/packages/project-manager/www/task-bulk-close.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/www/task-bulk-close.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/project-manager/www/task-bulk-close.tcl 16 Nov 2005 17:40:45 -0000 1.1
@@ -0,0 +1,38 @@
+#
+
+ad_page_contract {
+
+ Closes several projects at once.
+
+ @author Jade Rubick (jader@bread.com)
+ @creation-date 2004-07-02
+ @arch-tag: ca6395ca-df76-467c-8b46-65f4370d3248
+ @cvs-id $Id: task-bulk-close.tcl,v 1.1 2005/11/16 17:40:45 maltes Exp $
+} {
+ task_item_id:integer,multiple
+ {return_url "index?assignee_id=[ad_conn user_id]"}
+} -properties {
+} -validate {
+} -errors {
+}
+
+set number 0
+
+foreach task $task_item_id {
+ permission::require_permission \
+ -privilege write \
+ -object_id $task
+
+ pm::task::close \
+ -task_item_id $task
+
+ incr number
+}
+
+if {$number > 1} {
+ set task_tasks tasks
+} else {
+ set task_tasks task
+}
+
+ad_returnredirect -message "$number $task_tasks closed" $return_url