Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-riskmanagement
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-riskmanagement
Commits
69f428cc
Commit
69f428cc
authored
Nov 03, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Implemented CSP (Content Security Policy)
parent
be02ec8e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
5 deletions
+17
-5
risk-project-component.adp
lib/risk-project-component.adp
+7
-0
intranet-riskmanagement-create.sql
sql/postgresql/intranet-riskmanagement-create.sql
+1
-1
index.adp
www/index.adp
+7
-2
index.tcl
www/index.tcl
+2
-2
No files found.
lib/risk-project-component.adp
View file @
69f428cc
<div class="risk_outer">
<script type="text/javascript" <if @::__csp_nonce@ not nil>nonce="@::__csp_nonce;literal@"</if>>
window.addEventListener('load', function() {
document.getElementById('list_check_all').addEventListener('click', function() { acs_ListCheckAll('risk', this.checked) });
});
</script>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<if @risk_chart_html@ ne "">
...
...
sql/postgresql/intranet-riskmanagement-create.sql
View file @
69f428cc
...
...
@@ -354,7 +354,7 @@ insert into im_view_columns (
visible_for
)
values
(
21000
,
210
,
0
,
'<input
type=checkbox name=_dummy onclick="acs_ListCheckAll(
''
risk
''
,this.checked)"
>'
,
'<input
id=list_check_all type=checkbox name=_dummy
>'
,
'"<input type=checkbox name=risk_id.$risk_id id=risk.$risk_id>"'
,
''
);
...
...
www/index.adp
View file @
69f428cc
...
...
@@ -7,8 +7,13 @@
<property name="show_context_help">@show_context_help_p;literal@</property>
<if @master_p@>
</if>
<!-- 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('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>
<%= [im_box_header $page_title] %>
@risk_html;noquote@
...
...
www/index.tcl
View file @
69f428cc
...
...
@@ -85,8 +85,8 @@ ad_form -extend -name $form_id -form {
{
risk_project_id:text
(
select
)
,optional
{
label #intranet-riskmanagement.Project#
}
{
options
$project
_options
}}
{
risk_type_id:text
(
im_category_tree
)
,optional
{
label #intranet-riskmanagement.Risk_Type#
}
{
value
$risk
_type_id
}
{
custom
{
category_type
"Intranet Risk Type"
translate_p 1 include_empty_name
"
[
_ intranet-core.All
]
"
}
}
}
{
risk_status_id:text
(
im_category_tree
)
,optional
{
label #intranet-riskmanagement.Risk_Status#
}
{
value
$risk
_status_id
}
{
custom
{
category_type
"Intranet Risk Status"
translate_p 1 include_empty_name
"
[
_ intranet-core.All
]
"
}
}
}
{
start_date:text
(
text
)
{
label
"
[
_ intranet-timesheet2.Start_Date
]
"
}
{
value
"
$start
_date"
}
{
html
{
size 10
}}
{
after_html
{
<input type=
"button"
style=
"height:20px; width:20px; background: url('/resources/acs-templating/calendar.gif');"
onclick =
"return showCalendar('start_date', 'y-m-d
');"
>
}}}
{
end_date:text
(
text
)
{
label
"
[
_ intranet-timesheet2.End_Date
]
"
}
{
value
"
$end
_date"
}
{
html
{
size 10
}}
{
after_html
{
<input type=
"button"
style=
"height:20px; width:20px; background: url('/resources/acs-templating/calendar.gif');"
onclick =
"return showCalendar('end_date', 'y-m-d
');"
>
}}}
{
start_date:text
(
text
)
{
label
"
[
_ intranet-timesheet2.Start_Date
]
"
}
{
value
"
$start
_date"
}
{
html
{
size 10
}}
{
after_html
{
<input type=
"button"
id=start_date_calendar style=
"height:20px; width:20px; background: url('/resources/acs-templating/calendar.gif
');"
>
}}}
{
end_date:text
(
text
)
{
label
"
[
_ intranet-timesheet2.End_Date
]
"
}
{
value
"
$end
_date"
}
{
html
{
size 10
}}
{
after_html
{
<input type=
"button"
id=end_date_calendar style=
"height:20px; width:20px; background: url('/resources/acs-templating/calendar.gif
');"
>
}}}
}
...
...
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