Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-expenses
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-expenses
Commits
e15c9856
Commit
e15c9856
authored
Nov 03, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Implemented CSP (Content Security Policy)
parent
aab2d26f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
index.adp
www/index.adp
+9
-0
index.tcl
www/index.tcl
+4
-7
No files found.
www/index.adp
View file @
e15c9856
...
...
@@ -6,6 +6,15 @@
<property name="left_navbar">@left_navbar_html;literal@</property>
<property name="show_context_help">@show_context_help_p;literal@</property>
<script type="text/javascript" <if @::__csp_nonce@ not nil>nonce="@::__csp_nonce;literal@"</if>>
window.addEventListener('load', function() {
document.getElementById('start_date_calendar').addEventListener('click', function() { showCalendar('start_date', 'y-m-d'); });
document.getElementById('end_date_calendar').addEventListener('click', function() { showCalendar('end_date', 'y-m-d'); });
document.getElementById('list_check_all').addEventListener('click', function() { acs_ListCheckAll('expenses_list', this.checked) });
});
</script>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td colspan="3">
...
...
www/index.tcl
View file @
e15c9856
...
...
@@ -171,10 +171,7 @@ template::list::create \
-row_pretty_plural
"
[
_ intranet-expenses.Expenses_Items
]
"
\
-elements
{
expense_chk
{
label
"<input type=
\"
checkbox
\"
name=
\"
_dummy
\"
onclick=
\"
acs_ListCheckAll('expenses_list', this.checked)
\"
title=
\"
Check/uncheck all rows
\"
>"
label
"<input id=list_check_all type=
\"
checkbox
\"
name=
\"
_dummy
\"
title=
\"
Check/uncheck all rows
\"
>"
display_template
{
@expense_lines.expense_chk
;
noquote@
}
...
...
@@ -381,7 +378,7 @@ set ttt {
label "
[
_ intranet-expenses.ID
]
"
}
bundle_chk {
label "
<input type=
\"
checkbox
\"
name=
\"
_dummy
\"
onclick=
\"
acs_ListCheckAll
(
'bundles_list', this.checked
)
\"
title=
\"
Check/uncheck all rows
\"
>
"
label "
<input type=
\"
checkbox
\"
id=list_check_all_bundles_list name=
\"
_dummy
\"
title=
\"
Check/uncheck all rows
\"
>
"
display_template {
@bundle_lines.bundle_chk;noquote@
}
...
...
@@ -491,7 +488,7 @@ append left_navbar_html "
<td class=form-label>
[
_ intranet-core.Start_Date
]
</td>
<td class=form-widget>
<nobr><input type='textfield' name='start_date' id='start_date' value='$start_date' size='10'>
<input type=
\"
button
\"
style=
\"
height:20px
;
width:20px
;
background: url
(
'/resources/acs-templating/calendar.gif'
);
\"
onclick =
\"
return showCalendar
(
'start_date', 'y-m-d'
);
\"
></nobr>
<input type=
\"
button
\"
id=start_date_calendar style=
\"
height:20px
;
width:20px
;
background: url
(
'/resources/acs-templating/calendar.gif'
);
\"
></nobr>
</td>
</tr>
<tr>
...
...
@@ -499,7 +496,7 @@ append left_navbar_html "
<td class=form-widget>
<nobr>
<input type='textfield' name='end_date' id='end_date' value='$end_date' size='10'>
<input type=
\"
button
\"
style=
\"
height:20px
;
width:20px
;
background: url
(
'/resources/acs-templating/calendar.gif'
);
\"
onclick =
\"
return showCalendar
(
'end_date', 'y-m-d'
);
\"
>
<input type=
\"
button
\"
id=end_date_calendar style=
\"
height:20px
;
width:20px
;
background: url
(
'/resources/acs-templating/calendar.gif'
);
\"
>
</nobr>
</td>
</tr>
...
...
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