Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-invoices
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-invoices
Commits
7a2e5b92
Commit
7a2e5b92
authored
Nov 03, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Implemented CSP (Content Security Policy)
parent
dad8cf1e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
new.adp
www/price-lists/new.adp
+9
-2
new.tcl
www/price-lists/new.tcl
+2
-2
No files found.
www/price-lists/new.adp
View file @
7a2e5b92
...
...
@@ -2,13 +2,20 @@
<property name="doc(title)">@page_title;literal@</property>
<property name="context">@context;literal@</property>
<property name="main_navbar_label">finance</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('valid_from_calendar').addEventListener('click', function() { showCalendarWithDateWidget('valid_from', 'y-m-d'); });
document.getElementById('valid_through_calendar').addEventListener('click', function() { showCalendarWithDateWidget('valid_through', '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="price"></formtemplate>
www/price-lists/new.tcl
View file @
7a2e5b92
...
...
@@ -87,8 +87,8 @@ ad_form \
{
task_type_id:text
(
im_category_tree
)
,optional
{
label
"
[
_ intranet-timesheet2-invoices.Task_Type
]
"
}
{
custom
{
category_type
"Intranet Project Type"
translate_p 1 include_empty_p 1
}}
}
{
material_id:text
(
select
)
,optional
{
label
"
[
_ intranet-timesheet2-invoices.Material
]
"
}
{
options
$material
_options
}
}
{
project_id:text
(
select
)
,optional
{
label
"
[
_ intranet-core.Project
]
"
}
{
options
$project
_options
}
}
{
valid_from:date
(
date
)
,optional
{
label
"
[
_ intranet-timesheet2.Start_Date
]
"
}
{
after_html
{
<input
type=
"button"
style=
"height:23px; width:23px; background: url('/resources/acs-templating/calendar.gif');"
onclick =
"return showCalendarWithDateWidget('valid_from', 'y-m-d
');"
>
}}
}
{
valid_through:date
(
date
)
,optional
{
label
"
[
_ intranet-timesheet2.End_Date
]
"
}
{
after_html
{
<input
type=
"button"
style=
"height:23px; width:23px; background: url('/resources/acs-templating/calendar.gif');"
onclick =
"return showCalendarWithDateWidget('valid_through', 'y-m-d');"
>
}}
}
{
valid_from:date
(
date
)
,optional
{
label
"
[
_ intranet-timesheet2.Start_Date
]
"
}
{
after_html
{
<input
id=valid_from_calendar type=
"button"
style=
"height:23px; width:23px; background: url('/resources/acs-templating/calendar.gif
');"
>
}}
}
{
valid_through:date
(
date
)
,optional
{
label
"
[
_ intranet-timesheet2.End_Date
]
"
}
{
after_html
{
<input
id=valid_through_calendar type=
"button"
style=
"height:23px; width:23px; background: url('/resources/acs-templating/calendar.gif');"
>
}}
}
{
price:text
(
text
)
{
label
"
[
_ intranet-timesheet2-invoices.Price
]
"
}
{
html
{
size 10
}}}
{
currency:text
(
select
)
{
label
"
[
_ intranet-timesheet2-invoices.Currency
]
"
}
{
options
$currency
_options
}
}
}
...
...
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