aboutsummaryrefslogtreecommitdiffstats
path: root/lib/srtgui/templates/cves-select-toastertable.html
diff options
context:
space:
mode:
Diffstat (limited to 'lib/srtgui/templates/cves-select-toastertable.html')
-rw-r--r--lib/srtgui/templates/cves-select-toastertable.html26
1 files changed, 24 insertions, 2 deletions
diff --git a/lib/srtgui/templates/cves-select-toastertable.html b/lib/srtgui/templates/cves-select-toastertable.html
index 69c34b00..eaf8f4f0 100644
--- a/lib/srtgui/templates/cves-select-toastertable.html
+++ b/lib/srtgui/templates/cves-select-toastertable.html
@@ -98,6 +98,7 @@
</div>
<div class="column2">
<p><b><label id="priority">Set Priority:</label></b>
+
<div id="priority-list" class="scrolling" style="width: 120px;">
<div class="checkbox"> <label>
<input type="radio" name="priority" value="4" type="checkbox"> High
@@ -125,12 +126,28 @@
</div>
</div>
</div>
+
<p><input id="create_defects" type="checkbox"> Create Defect(s) </input>
Reason: <input type="text" id="input-defect-reason" name="defect-reason" size="20" placeholder="(optional)"> (e.g. "Security Advisory [- REASON -] CVE-2020-1234")
- <p><input id="group_vulnerability" type="checkbox">&nbsp;Group the CVEs into one vulnerability and one investigation per product</input>
+
&nbsp;&nbsp;<input id="create_notifications" type="checkbox" checked>&nbsp;Create Notifications</input>
<p><b><big>Reason: </big></b>
<input type="text" id="input-isvulnerable-reason" name="reason" size="40">&nbsp;&nbsp;<input id="markPublishIs" type="checkbox">&nbsp;Mark for Publish</input>&nbsp;&nbsp;<input id="markFor" type="checkbox"> Add Keywords to 'For' </input>
+
+ <div id="group_vulnerability" style="border: 1px solid #dddddd; padding: 0 5px; width: 400px; margin-bottom: 10px; margin-top: 0px; " >
+ <div class="checkbox"> <label>
+ <input type="radio" name="group_vulnerability" value="0" type="checkbox" checked="yes"> Each CVE creates a Vulnerability
+ </label><p></div>
+ <div class="checkbox"> <label>
+ <input type="radio" name="group_vulnerability" value="1" type="checkbox"> Group CVEs into one Vulnerability
+ </label><p></div>
+ <div class="checkbox"> <label>
+ <input type="radio" name="group_vulnerability" value="2" type="checkbox"> Attach CVEs to existing Vulnerability
+ <input type="text" id="vulnerability_name" name="vulnerability_name" size="20" style="margin-left: 20px;" placeholder="(Vunerability name)">
+ </label>
+ <p></div>
+ </div>
+
</div>
<div id="details-notvulnerable" style="display:none;">
@@ -389,6 +406,10 @@
$('#priority-list input:checked').each(function(){
priority = $(this).attr('value');
});
+ var group_vulnerability=0
+ $('#group_vulnerability input:checked').each(function(){
+ group_vulnerability = $(this).attr('value');
+ });
postCommitAjaxRequest({
"action" : 'submit-isvulnerable',
"reason" : $("#input-isvulnerable-reason").val(),
@@ -400,7 +421,8 @@
"pub" : $('#markPublishIs').is(':checked') ? "yes" : "no",
"for" : $('#markFor').is(':checked') ? "yes" : "no",
"mk_d" : $('#create_defects').is(':checked') ? "yes" : "no",
- "group_v": $('#group_vulnerability').is(':checked') ? "yes" : "no",
+ "vul_group": group_vulnerability,
+ "vul_name": $("#vulnerability_name").val(),
"notify" : $('#create_notifications').is(':checked') ? "yes" : "no",
});
});