@@ -76,17 +76,32 @@
Earliest finish |
- @project.earliest_finish_date@ |
+
+ @project.earliest_finish_date@ |
+
+
+ Ongoing |
+
Deadline |
- @project.planned_end_date@ |
+
+ @project.planned_end_date@ |
+
+
+ Ongoing |
+
Latest finish |
- @project.latest_finish_date@ |
+
+ @project.latest_finish_date@ |
+
+
+ Ongoing |
+
@@ -97,10 +112,31 @@
+
+
+
+ Project information |
+
+
+
+
+
+ |
+
+
+
+
+
+
Categories |
@@ -123,26 +159,15 @@
-
-
-
- Project information |
-
-
-
-
-
-
-
Add subproject
Subprojects:
- People:
-
+
Index: openacs-4/contrib/packages/project-manager/www/one.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/one.tcl,v
diff -u -r1.28 -r1.29
--- openacs-4/contrib/packages/project-manager/www/one.tcl 26 Jan 2004 15:39:40 -0000 1.28
+++ openacs-4/contrib/packages/project-manager/www/one.tcl 26 Feb 2004 15:15:41 -0000 1.29
@@ -143,21 +143,19 @@
}
earliest_start {
label "Earliest Start"
- display_template "@tasks.earliest_start_pretty@"
+ display_template "@tasks.earliest_start_pretty@@tasks.earliest_start_pretty@"
}
earliest_finish {
label "Earliest Finish"
- display_template "@tasks.earliest_finish_pretty@"
+ display_template "@tasks.earliest_finish_pretty@@tasks.earliest_finish_pretty@"
}
latest_start {
label "Latest Start"
- display_template "@tasks.latest_start_pretty@"
+ display_template "@tasks.latest_start_pretty@@tasks.latest_start_pretty@"
}
latest_finish {
label "Latest Finish"
- display_template {
- @tasks.latest_finish_pretty@
- }
+ display_template "@tasks.latest_finish_pretty@@tasks.latest_finish_pretty@"
}
last_name {
label "Who"
@@ -360,6 +358,8 @@
db_1row custom_query { } -column_array custom
+
+
# end of customizations
Index: openacs-4/contrib/packages/project-manager/www/process-add-edit.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/process-add-edit.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/contrib/packages/project-manager/www/process-add-edit.tcl 26 Jan 2004 15:39:40 -0000 1.2
+++ openacs-4/contrib/packages/project-manager/www/process-add-edit.tcl 26 Feb 2004 15:15:41 -0000 1.3
@@ -23,16 +23,7 @@
}
-ns_log notice it's my page!
-set mypage [ns_getform]
-if {[string equal "" $mypage]} {
- ns_log notice no form was submitted on my page
-} else {
- ns_log notice the following form was submitted on my page
- ns_set print $mypage
-}
-
# --------------------------------------------------------------- #
# the unique identifier for this package
set package_id [ad_conn package_id]
@@ -63,6 +54,7 @@
{one_line:text
{label "Subject"}
{value $one_line}
+ {html {size 40}}
}
{description:text(textarea),optional
@@ -73,6 +65,7 @@
{number_of_tasks:text
{label "Number of new tasks"}
{value "1"}
+ {html {size 5}}
}
} -select_query_name process_query -on_submit {
Index: openacs-4/contrib/packages/project-manager/www/task-add-edit-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/task-add-edit-postgresql.xql,v
diff -u -r1.13 -r1.14
--- openacs-4/contrib/packages/project-manager/www/task-add-edit-postgresql.xql 26 Jan 2004 15:39:40 -0000 1.13
+++ openacs-4/contrib/packages/project-manager/www/task-add-edit-postgresql.xql 26 Feb 2004 15:15:41 -0000 1.14
@@ -19,26 +19,6 @@
-
-
- select pm_task__new_task_item (
- null,
- :project_item_id,
- :p_task_title,
- :p_description,
- [project_manager::project::util::datenvl -value [set end_date_$i] -value_if_null "null," -value_if_not_null "to_timestamp('[set end_date_$i]','YYYY MM DD HH24 MI SS'),"]
- '0',
- :p_work,
- :p_work_min,
- :p_work_max,
- current_timestamp,
- :user_id,
- :peeraddr,
- :package_id
- );
-
-
-
select pm_task__new_task_revision (
Index: openacs-4/contrib/packages/project-manager/www/task-add-edit.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/task-add-edit.tcl,v
diff -u -r1.25 -r1.26
--- openacs-4/contrib/packages/project-manager/www/task-add-edit.tcl 26 Jan 2004 15:39:40 -0000 1.25
+++ openacs-4/contrib/packages/project-manager/www/task-add-edit.tcl 26 Feb 2004 15:15:41 -0000 1.26
@@ -1,4 +1,4 @@
-set debug 1
+set debug 0
if {[string equal $debug 1]} {
ns_log notice task add edit page
@@ -43,7 +43,7 @@
project_id:integer,optional
{number:integer "1"}
task_revision_id:integer,optional
- {task_id ""}
+ {task_id:multiple ""}
task_item_id:array,optional
task_title:array,optional
{process_id:integer ""}
@@ -519,7 +519,20 @@
ns_log Notice "adding task: pii: $project_item_id tt:$p_task_title d:$p_description ed: end_date($i) w:$p_work m:$p_work_min mx:$p_work_max dep_type:$p_dep_type dep_id:$p_dep_id"
# add in the new task
- set this_revision_id [db_exec_plsql new_task_item { *SQL* }]
+ set this_revision_id [project_manager::task::new \
+ -project_id $project_item_id \
+ -title $p_task_title \
+ -description $p_description \
+ -end_date [project_manager::project::util::datenvl -value [set end_date_$i] -value_if_null "" -value_if_not_null "to_timestamp('[set end_date_$i]','YYYY MM DD HH24 MI SS')"] \
+ -percent_complete "0" \
+ -estimated_hours_work $p_work \
+ -estimated_hours_work_min $p_work_min \
+ -estimated_hours_work_max $p_work_max \
+ -creation_user $user_id \
+ -creation_ip $peeraddr \
+ -package_id $package_id
+ ]
+
set this_task_id [db_string get_task_item_id {}]
set dep_task_id($i) $this_task_id
Index: openacs-4/contrib/packages/project-manager/www/task-one-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/task-one-postgresql.xql,v
diff -u -r1.17 -r1.18
--- openacs-4/contrib/packages/project-manager/www/task-one-postgresql.xql 26 Jan 2004 15:39:40 -0000 1.17
+++ openacs-4/contrib/packages/project-manager/www/task-one-postgresql.xql 26 Feb 2004 15:15:41 -0000 1.18
@@ -53,13 +53,17 @@
t.estimated_hours_work_min,
t.estimated_hours_work_max,
t.percent_complete,
- i.live_revision
+ i.live_revision,
+ p.first_names || ' ' || p.last_name as creation_user
FROM
- pm_tasks_revisionsx t, cr_items i
+ pm_tasks_revisionsx t,
+ cr_items i,
+ persons p
WHERE
t.item_id = :task_id and
t.revision_id = :task_revision_id and
- t.item_id = i.item_id
+ t.item_id = i.item_id and
+ t.creation_user = p.person_id
@@ -70,17 +74,18 @@
t.revision_id,
i.live_revision,
t.title as task_title,
- t.description,
+ t.description || ' -- ' || p.first_names || ' ' || p.last_name as description,
to_char(t.end_date,'MM/DD/YYYY') as end_date,
t.percent_complete,
t.estimated_hours_work_min,
t.estimated_hours_work_max,
t.actual_hours_worked
FROM
- pm_tasks_revisionsx t, cr_items i
+ pm_tasks_revisionsx t, cr_items i, persons p
WHERE
t.item_id = :task_id and
- t.item_id = i.item_id
+ t.item_id = i.item_id and
+ t.creation_user = p.person_id
[template::list::orderby_clause -name revisions -orderby]
Index: openacs-4/contrib/packages/project-manager/www/task-one.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/project-manager/www/Attic/task-one.adp,v
diff -u -r1.21 -r1.22
--- openacs-4/contrib/packages/project-manager/www/task-one.adp 26 Jan 2004 15:39:40 -0000 1.21
+++ openacs-4/contrib/packages/project-manager/www/task-one.adp 26 Feb 2004 15:15:41 -0000 1.22
@@ -28,6 +28,8 @@
Description |
@task_info.description;noquote@
+ |
+ | -- @task_info.creation_user@ |