Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-hr
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-hr
Commits
f95d6695
Commit
f95d6695
authored
Nov 03, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Implemented CSP (Content Security Policy)
parent
6ebce9d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
new.adp
www/new.adp
+10
-3
new.tcl
www/new.tcl
+3
-5
No files found.
www/new.adp
View file @
f95d6695
...
...
@@ -2,13 +2,20 @@
<property name="doc(title)">@page_title;literal@</property>
<property name="context">@context;literal@</property>
<property name="main_navbar_label">user</property>
<property name="focus">@focus;literal@</property>
<h2>@page_title@</h2>
<!-- Show calendar on start- and end-date -->
<script type="text/javascript" <if @::__csp_nonce@ not nil>nonce="@::__csp_nonce;literal@"</if>>
window.addEventListener('load', function() {
document.getElementById('birthdate_calendar').addEventListener('click', function() { showCalendar('birthdate', 'y-m-d'); });
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'); });
});
</script>
<h2>@page_title@</h2>
<if @message@ not nil>
<div class="general-message">@message@</div>
</if>
<property name="focus">@focus;literal@</property>
<formtemplate id="employee_information"></formtemplate>
www/new.tcl
View file @
f95d6695
...
...
@@ -214,11 +214,9 @@ if {"" == $currency} { set currency $default_currency }
# -- ------------------------------------------------
set
form_id
"employee_information"
set
after_html_birthday
"<input type=
\"
button
\"
style=
\"
height:20px; width:20px; background: url('/resources/acs-templating/calendar.gif');
\"
onclick =
\"
return showCalendar('birthdate', 'y-m-d');
\"
>"
set
after_html_start_date
"<input type=
\"
button
\"
style=
\"
height:20px; width:20px; background: url('/resources/acs-templating/calendar.gif');
\"
onclick =
\"
return showCalendar('start_date', 'y-m-d');
\"
>"
set
after_html_end_date
"<input type=
\"
button
\"
style=
\"
height:20px; width:20px; background: url('/resources/acs-templating/calendar.gif');
\"
onclick =
\"
return showCalendar('end_date', 'y-m-d');
\"
>"
set
after_html_birthday
"<input type=
\"
button
\"
id=birthdate_calendar style=
\"
height:20px; width:20px; background: url('/resources/acs-templating/calendar.gif');
\"
>"
set
after_html_start_date
"<input type=
\"
button
\"
id=start_date_calendar style=
\"
height:20px; width:20px; background: url('/resources/acs-templating/calendar.gif');
\"
>"
set
after_html_end_date
"<input type=
\"
button
\"
id=end_date_calendar style=
\"
height:20px; width:20px; background: url('/resources/acs-templating/calendar.gif');
\"
>"
template::form::create
$form
_id
template::form::section
$form
_id
""
...
...
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