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
a29b19ba
Commit
a29b19ba
authored
Jan 26, 2007
by
Christof Damian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- task member/resource component
- import and show percentage/resource
parent
79d468e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
4 deletions
+50
-4
intranet-timesheet2-tasks-procs.tcl
tcl/intranet-timesheet2-tasks-procs.tcl
+50
-4
No files found.
tcl/intranet-timesheet2-tasks-procs.tcl
View file @
a29b19ba
...
...
@@ -537,14 +537,11 @@ ad_proc -public im_timesheet_task_info_component {
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
return
"task in not created yet"
}
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"
...
...
@@ -590,6 +587,55 @@ ad_proc -public im_timesheet_task_info_component {
return
$html
}
# ----------------------------------------------------------------------
# Task Members Component
# ---------------------------------------------------------------------
ad_proc -public im_timesheet_task_members_component
{
project_id
task_id
return_url
}
{
set html
""
db_multirow member_list member_list
"
SELECT
user_id,
im_name_from_user_id(user_id) as name,
percentage
from
acs_rels,users,im_biz_object_members
where
object_id_two=user_id and object_id_one=:task_id
and acs_rels.rel_id=im_biz_object_members.rel_id
"
template::list::create
\
-name member_list
\
-key user_id
\
-pass_properties
{
return_url project_id task_id
}
\
-elements
{
name
{
label
"Name"
link_url_eval
{
[
return
"/intranet/users/view?user_id=
$user
_id"
]
}
}
percentage
{
label
"Percentage"
}
}
\
-bulk_actions
{
"Delete"
"delete-task-dep"
"delete members"
}
\
-bulk_action_export_vars
{
return_url project_id task_id
}
\
-bulk_action_method post
append html
[
template::list::render -name member_list
]
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