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
393dbf84
Commit
393dbf84
authored
Mar 01, 2007
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Improving TimesheetNewPage as component page
- Imrpoving DynField performance
parent
5d506934
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
new.adp
www/new.adp
+10
-5
new.tcl
www/new.tcl
+4
-1
No files found.
www/new.adp
View file @
393dbf84
...
...
@@ -2,6 +2,7 @@
<property name="title">@page_title@</property>
<property name="context">@context;noquote@</property>
<property name="main_navbar_label">projects</property>
<property name="focus">@focus;noquote@</property>
<h2>@page_title@</h2>
...
...
@@ -9,11 +10,12 @@
<div class="general-message">@message@</div>
</if>
<
property name="focus">@focus;noquote@</property
>
<
% set return_url [im_url_with_query] %
>
<table width="100%">
<tr valign="top">
<td width="50%">
<table cellpadding=2 cellspacing=0 border=1 frame=void width='100%'>
<tr>
<td class=tableheader align=left width='99%'>Task</td>
...
...
@@ -24,14 +26,17 @@
</table>
<br>
<% set return_url [im_url_with_query] %>
<% if { $form_mode!="edit" } { %>
<if @form_mode@ eq "display" >
<%= [im_component_bay left] %>
</if>
</td>
<td width="50%">
<if @form_mode@ eq "display" >
<%= [im_component_bay right] %>
<% } %>
</if>
</td>
</tr>
...
...
www/new.tcl
View file @
393dbf84
...
...
@@ -164,10 +164,13 @@ ad_form \
{
note:text
(
textarea
)
,optional
{
label
"Note"
}
{
html
{
cols 40
}}}
{
start_date:date
(
date
)
,optional
{
label
"Start Date"
}
{}}
{
end_date:date
(
date
)
,optional
{
label
"End Date"
}
{}}
}
# Fix for problem changing to "edit" form_mode
set
form_action
[
template::form::get_action
"task"
]
if
{
""
!=
$form
_action
}
{
set form_mode
"edit"
}
ad_form -extend -name task -on_request
{
# Populate elements from local variables
...
...
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