Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-templating
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
acs-templating
Commits
aa06b1ee
Commit
aa06b1ee
authored
Apr 06, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed issues with DynField date widget
parent
dc5cb00f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
166 additions
and
148 deletions
+166
-148
date-procs.tcl
tcl/date-procs.tcl
+157
-139
element-procs.tcl
tcl/element-procs.tcl
+9
-9
No files found.
tcl/date-procs.tcl
View file @
aa06b1ee
This diff is collapsed.
Click to expand it.
tcl/element-procs.tcl
View file @
aa06b1ee
...
...
@@ -662,16 +662,16 @@ ad_proc -private template::element::render { form_id element_id tag_attributes }
@return A string containing the HTML for an INPUT, SELECT or TEXTAREA
form element.
}
{
get_reference
get_reference
# Remember that the element has been rendered already
set element
(
is_rendered
)
t
if
{
$element
(
mode
)
ne
"edit"
&&
[
info
exists element
(
display_value
)]
&&
$element
(
widget
)
ne
"hidden"
}
{
return
"
$element
(before_html)
$element
(display_value)
$element
(after_html)"
}
else
{
return
"
[
string
trim
"
$element
(before_html)
[
template::widget::$element
(
widget
)
element
$tag
_attributes
]
$element
(after_html)"
]
"
}
# Remember that the element has been rendered already
set element
(
is_rendered
)
t
if
{
$element
(
mode
)
ne
"edit"
&&
[
info
exists element
(
display_value
)]
&&
$element
(
widget
)
ne
"hidden"
}
{
return
"
$element
(before_html)
$element
(display_value)
$element
(after_html)"
}
else
{
return
"
[
string
trim
"
$element
(before_html)
[
template::widget::$element
(
widget
)
element
$tag
_attributes
]
$element
(after_html)"
]
"
}
}
ad_proc -private template::element::render_help
{
form_id element_id tag_attributes
}
{
...
...
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