diff options
Diffstat (limited to 'lib/srtgui/templates/investigation.html')
-rw-r--r-- | lib/srtgui/templates/investigation.html | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/lib/srtgui/templates/investigation.html b/lib/srtgui/templates/investigation.html index b662c5e1..f934d052 100644 --- a/lib/srtgui/templates/investigation.html +++ b/lib/srtgui/templates/investigation.html @@ -110,13 +110,16 @@ <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 + <input type="radio" name="priority" value="4" type="checkbox"> P1 </label><p></div> <div class="checkbox"> <label> - <input type="radio" name="priority" value="3" type="checkbox" checked="yes"> Medium + <input type="radio" name="priority" value="3" type="checkbox" checked="yes"> P2 </label><p></div> <div class="checkbox"> <label> - <input type="radio" name="priority" value="2" type="checkbox"> Low + <input type="radio" name="priority" value="2" type="checkbox"> P3 + </label><p></div> + <div class="checkbox"> <label> + <input type="radio" name="priority" value="1" type="checkbox"> P4 </label><p></div> </div> </div> @@ -135,8 +138,14 @@ </div> </div> </div> - Reason: <input type="text" id="input-defect-reason" name="defect-reason" size="20" placeholder="(optional)"> (e.g. "Security Advisory [- REASON -] CVE-2020-1234") + Defect Reason: <input type="text" id="input-defect-reason" name="defect-reason" size="20" placeholder="(optional)"> (e.g. "Security Advisory [- REASON -] CVE-2020-1234") + <p><p> + <b><big>Affected Components: </big></b> + <input type="text" id="input-affected-components" name="components" size="40" value="{{affected_components}}"> (e.g. space-separated list of packages, recipes, sub-system list, applications, ) <p><p> + Found Version: {{found_version}} + <p><p> + </div> </div> @@ -163,7 +172,7 @@ <td>{{ id.defect.summary }}</td> <td>{{ id.defect.get_priority_text }}</td> <td>{{ id.defect.get_status_text }}</td> - <td>{{ id.defect.get_resolution_text }}</td> + <td>{{ id.defect.get_defect_resolution_text }}</td> <td>{{ id.defect.release_version }}</td> <td><a href="{{id.defect.url}}" id="dataid_{{id.defect.id}}" target="_blank">{{id.defect.url}}</a></td> {% if request.user.is_creator %} @@ -268,10 +277,10 @@ <td>{{ u.author }}</td> <td> <span id="attachment_entry_'+{{u.id}}+'" class="js-config-var-name"></span> - <form id="downloadbanner" enctype="multipart/form-data" method="post" >{% csrf_token %} + <form id="downloadbanner-{{forloop.counter}}" enctype="multipart/form-data" method="post" >{% csrf_token %} <input type="hidden" id="action" name="action" value="download"> <input type="hidden" id="record_id" name="record_id" value={{u.id}}> - <span class="glyphicon glyphicon-download-alt submit-downloadattachment" id="attachment_download_'+{{u.id}}+'" x-data="{{u.id}}"></span> + <span class="glyphicon glyphicon-download-alt submit-downloadattachment" id="attachment_download_'+{{u.id}}+'" x-data="{{forloop.counter}}"></span> {% if request.user.is_creator %} <span class="glyphicon glyphicon-trash trash-attachment" id="attachment_trash_'+{{u.id}}+'" x-data="{{u.id}}"></span> {% endif %} @@ -442,6 +451,9 @@ </table> </div> +<HR ALIGN="center" WIDTH="100%"> +Created={{object.srt_created}} Updated={{object.srt_updated}} + <script> var selected_newcomment=false; var selected_addusernotify=false; @@ -539,6 +551,7 @@ postCommitAjaxRequest({ "action" : 'submit-createdefect', "defect_reason" : $("#input-defect-reason").val(), + "affected_components" : $("#input-affected-components").val(), "components": component_list, "priority": priority, }); @@ -614,8 +627,8 @@ } }); - $('.submit-downloadattachment').click(function() { - $("#downloadbanner").submit(); + $('.submit-downloadattac hment').click(function() { + $("#downloadbanner-"+this.getAttribute("x-data")).submit(); }); $('.trash-attachment').click(function() { @@ -728,16 +741,18 @@ $('#submit-quickedit').click(function(){ var note=$('#text-note').val().trim() var private_note=$('#text-private-note').val().trim() + var tags=$('#text-tags').val().trim(); var priority=$('#select-priority-state').val(); var status=$('#select-status-state').val(); var outcome=$('#select-outcome-state').val(); postCommitAjaxRequest({ - "action" : 'submit-quickedit', - "note" : note, - "private_note" : private_note, - "status" : status, - "outcome" : outcome, - "priority" : priority, + "action" : 'submit-quickedit', + "priority" : priority, + "status" : status, + "note" : note, + "private_note" : private_note, + "tags" : tags, + "outcome" : outcome, }); }); |