Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-tasks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-timesheet2-tasks
Commits
79d468e4
Commit
79d468e4
authored
Jan 25, 2007
by
Christof Damian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- start of a component to list additional information about tasks, like:
- dependencies - parent/child relations
parent
3f3684e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
0 deletions
+82
-0
intranet-timesheet2-tasks-procs.tcl
tcl/intranet-timesheet2-tasks-procs.tcl
+82
-0
No files found.
tcl/intranet-timesheet2-tasks-procs.tcl
View file @
79d468e4
...
...
@@ -510,6 +510,88 @@ ad_proc -public im_timesheet_task_list_component {
return
$component
_html
}
# ----------------------------------------------------------------------
# Task List Page Component
# ---------------------------------------------------------------------
ad_proc -public im_timesheet_task_info_component
{
project_id
task_id
return_url
}
{
set html
""
if
{
!
[
db_0or1row project_info
"
select p.*,
t.*,
o.object_type,
p.start_date::date as start_date,
p.end_date::date as end_date,
p.end_date::date - p.start_date::date as duration,
c.company_name
from im_projects p
LEFT OUTER JOIN im_timesheet_tasks t on (p.project_id = t.task_id),
acs_objects o,
im_companies c
where p.project_id = :task_id
and p.project_id = o.object_id
and p.company_id = c.company_id
"
]}
{
ad_return_complaint 1
[
lang::message::lookup
""
intranet-ganttproject.Project_Not_Found
"Didn't find task
\#
%task_id%"
]
return
}
append html
"<p>
$start
_date -
$end
_date
$duration
$company
_name"
append html
"<h3>Dependencies</h3>"
foreach
{
a b info
}
{
two one
"This task depends on"
one two
"These tasks depend on this one"
}
{
append html
"<p>
$info:
"
db_multirow delete_task_deps_$a delete_task_deps_$a
"
SELECT
task_id_
$a
as id,
project_nr,
project_name
from
im_timesheet_task_dependencies,im_projects
where
task_id_
$b
= :task_id AND dependency_type_id=9650
and task_id_
$a
= project_id
"
template::list::create
\
-name delete_task_deps_$a
\
-key id
\
-pass_properties
{
return_url project_id task_id
}
\
-elements
{
project_nr
{
label
"Task NR"
link_url_eval
{
[
return
"/intranet-timesheet2-tasks/new?
[
export_vars -url -override
{{
task_id
$id
}}
{
return_url project_id
}
]
"
]
}
}
project_name
{
label
"Task Name"
}
}
\
-bulk_actions
{
"Delete"
"delete-task-dep"
"Delete selected task dependency"
}
\
-bulk_action_export_vars
{
return_url project_id task_id
}
\
-bulk_action_method post
append html
[
template::list::render -name delete_task_deps_$a
]
}
return
$html
}
# -------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment