This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdisplay_report_data.html
142 lines (115 loc) · 4.56 KB
/
display_report_data.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{% extends 'widgets/widget_template.html' %}
{% load custom_template %}
{% block title1 %}{{ title1 }}{% endblock %}
{% block title2 %}{{ title2 }}{% endblock %}
{% block custom_tools %}
{% endblock %}
{% block widget_content %} <!-- Main Start Block -->
<!--
File: ./display_report_data.html
-->
<style>
#vx-template-container table {
margin-bottom: 20px;
}
#vx-template-container .vx-table-vertical {
width: initial;
font-size: 12px;
}
#vx-template-container .vx-table-vertical td,
#vx-template-container .vx-table-vertical th {
padding: 9px;
}
:not(.dark-theme) #vx-template-container .vx-table-vertical td,
:not(.dark-theme) #vx-template-container .vx-table-vertical th {
border: 1px solid #e7e9ec !important;
}
.dark-theme #vx-template-container .vx-table-vertical td,
.dark-theme #vx-template-container .vx-table-vertical th {
border: 1px solid #444357 !important;
}
#vx-template-container .vx-table-vertical a:hover {
text-decoration:underline;
}
#vx-template-container .vx-h3 {
font-size : 20px
}
#vx-template-container .vx-h4 {
font-size : 16px
}
#vx-template-container .vx-h5 {
font-size : 14px
}
#vx-template-container .vx-clear {
clear: both;
}
#vx-template-container .vx-header .btn.btn-xs {
height: 20px;
}
#vx-template-container .vx-header {
font-weight: 400;
}
#vx-template-container .vx-header span {
margin-right: 10px;
}
#vx-template-container #vx-show-in-webservice {
margin-top: -3px;
}
.dark-theme #vx-template-container .vx-header {
color: white;
}
#vx-template-container .vx-truncate {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#vx-template-container .widget-th {
border: none;
font-weight: normal;
}
/*table.vx-table-vertical tr td a span.fa-caret-down {*/
/*font-size: smaller;*/
/*}*/
</style>
<div id="vx-template-container" style="overflow: auto; width: 100%; height: 100%; padding-left:10px; padding-right:10px"> <!-- Main Div -->
{% for result in results %} <!-- loop for each result -->
<br>
<!------------------- For each Result ---------------------->
<div>
<h3 class="vx-h3 vx-header"><span>Sample report data</span> <a href="{{ result.data.sample_url }}" id="vx-show-in-webservice" class="btn btn-xs btn-phantom-purple" target="_blank">Show in WebService <i class="glyphicon glyphicon-menu-right"></i></a></h3>
</div>
<table class="vx-table-vertical">
<tr>
<th class="widget-th">FILE NAME</th>
<td>
<a class="vx-truncate" style="width: 380px; display: block; float: left;" href="javascript:;" onclick="context_menu(this, [{'contains': ['file name'], 'value': '{{ result.data.file_name }}' }], 0, {{ container.id }}, null, false);">
{{ result.data.file_name }}
</a>
<a href="javascript:;" style="float: left;" onclick="context_menu(this, [{'contains': ['file name'], 'value': '{{ result.data.file_name }}' }], 0, {{ container.id }}, null, false);"> <span class="fa fa-caret-down"></span></a>
</td>
</tr>
<tr>
<th class="widget-th">FILE TYPE</th>
<td>{{ result.data.file_type }}</td>
</tr>
<tr>
<th class="widget-th">ID</th>
<td>
<a href="javascript:;" onclick="context_menu(this, [{'contains': ['falcon sandbox job id'], 'value': '{{ result.param.id }}' }], 0, {{ container.id }}, null, false);">
{{ result.param.id }}<span> </span><span class="fa fa-caret-down"></span>
</a>
</td>
</tr>
<tr>
<th class="widget-th">VAULT ID</th>
<td>
<a href="javascript:;" onclick="context_menu(this, [{'contains': ['vault id'], 'value': '{{ result.data.vault_id }}' }], 0, {{ container.id }}, null, false);">
{{ result.data.vault_id }}<span> </span><span class="fa fa-caret-down"></span>
</a>
</td>
</tr>
</table>
<!------------------- For each Result END ---------------------->
{% endfor %} <!-- loop for each result end -->
</div> <!-- Main Div -->
{% endblock %} <!-- Main Start Block -->