diff options
Diffstat (limited to 'lib/srtgui/templates/vulnerability.html')
-rw-r--r-- | lib/srtgui/templates/vulnerability.html | 44 |
1 files changed, 32 insertions, 12 deletions
diff --git a/lib/srtgui/templates/vulnerability.html b/lib/srtgui/templates/vulnerability.html index 35b2c0e6..9290a1ef 100644 --- a/lib/srtgui/templates/vulnerability.html +++ b/lib/srtgui/templates/vulnerability.html @@ -148,26 +148,41 @@ </tr> </thead> - {% if object.vulnerability_investigation.all %} - {% for investigation in object.vulnerability_investigation.all %} + <table class="table table-striped table-condensed" data-testid="vuln-hyperlinks-table"> + <thead> + <tr> + <th>Product Name</th> + <th>Investigation</th> + <th>Status</th> + <th>Outcome</th> + <th>Defect</th> + <th>Release Version</th> + {% if request.user.is_creator %} + <th>Manage</th> + {% endif %} + </tr> + </thead> + + {% if object.investigation_list %} + {% for v2i in object.investigation_list %} <tr> - <td><a href="{% url 'product' investigation.product.id %}">{{ investigation.product.long_name }}<a></td> - <td><a href="{% url 'investigation' investigation.id %}">{{ investigation.name }}<a></td> - <td>{{ investigation.get_status_text }}</td> - <td>{{ investigation.get_outcome_text }}</td> + <td><a href="{% url 'product' v2i.investigation.product.id %}">{{ v2i.investigation.product.long_name }}<a></td> + <td><a href="{% url 'investigation' v2i.investigation.id %}">{{ v2i.investigation.name }}<a></td> + <td>{{ v2i.investigation.get_status_text }}</td> + <td>{{ v2i.investigation.get_outcome_text }}</td> <td> - {% for ij in investigation.investigation_to_defect.all %} + {% for ij in v2i.investigation.investigation_to_defect.all %} {% if not forloop.first %}| {% endif %}<a href="{% url 'defect' ij.defect.id %}">{{ij.defect.name}} </a> {% endfor %} </td> <td> - {% for ij in investigation.investigation_to_defect.all %} + {% for ij in v2i.investigation.investigation_to_defect.all %} {% if not forloop.first %}| {% endif %}<a href="{% url 'defect' ij.defect.id %}">{{ij.defect.release_version}} </a> {% endfor %} </td> {% if request.user.is_creator %} <td> - <span class="glyphicon glyphicon-trash trash-investigation" id="affected_trash_'+{{investigation.id}}+'" x-data="{{investigation.id}}"></span> + <span class="glyphicon glyphicon-trash trash-investigation" id="affected_trash_'+{{v2i.investigation.id}}+'" x-data="{{v2i.investigation.id}}"></span> </td> {% endif %} </tr> @@ -268,10 +283,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 %} @@ -440,6 +455,9 @@ </table> </div> +<HR ALIGN="center" WIDTH="100%"> +Created={{object.srt_created}} Updated={{object.srt_updated}} + <!-- Javascript support --> <script> var selected_addrelatedproduct=false; @@ -583,7 +601,7 @@ }); $('.submit-downloadattachment').click(function() { - $("#downloadbanner").submit(); + $("#downloadbanner-"+this.getAttribute("x-data")).submit(); }); $('.trash-attachment').click(function() { @@ -694,6 +712,7 @@ $('#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(); @@ -701,6 +720,7 @@ "action" : 'submit-quickedit', "note" : note, "private_note" : private_note, + "tags" : tags, "status" : status, "outcome" : outcome, "priority" : priority, |