Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions static/css/jquery.powertip.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions static/js/jquery.powertip.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions static/js/showAccessHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,18 @@ $(document).click(function (e) {
}
}
})

function showToolTip(elem, evt, id) {
const tipContent = $(`#${id}`).clone(true, true);
tipContent.removeClass('hidden');

$(elem).data('powertipjq', tipContent).powerTip({
manual: true,
intentPollInterval: 1000,
intentSensitivity: 100,
placement: 'e',
mouseOnToPopup:true,
openEvents: ['mouseenter','focus' ],
});
$(elem).powerTip('show', evt)
}
21 changes: 19 additions & 2 deletions templates/EnigmaOps/showAccessHistory.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
{% block head_body %}
<script src={% static "js/showAccessHistory.js" %}></script>
<script src={% static "js/globalSearchMisc.js" %}></script>
<script src={% static "js/jquery.powertip.min.js" %}></script>
<link rel="stylesheet" type="text/css" href="{% static "css/jquery.powertip.min.css" %}">
{% endblock %}

{% block nav_breadcrumb %}
Expand Down Expand Up @@ -157,8 +159,23 @@ <h3 class="text-sm font-medium text-yellow-800">No exact match found</h3>
<div class="text-gray-900">{{ each_access.access_desc }}</div>
<div class="text-gray-400">{{ each_access.requestId }}</div>
</td>
<td data-tooltip-target="tooltip-light" class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{% access_status_content each_access.status|safe %}</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500 max-w-2xl truncate">{{ each_access.accessCategory }}</td>
<td onmouseenter="showToolTip(this, event, 'access-tooltip-{{forloop.counter}}')" class="whitespace-nowrap px-3 py-4 text-sm text-gray-500 max-w-2xl truncate">
<div>
{% access_status_content each_access.status|safe %}
</div>
<div id="access-tooltip-{{forloop.counter}}" class="hidden text-sm leading-5 p-3 font-normal">
<ul>
<li><b>Approver 1 -</b> {{ each_access.approver_1 }}</li>
<li><b>Approver 2 -</b> {{ each_access.approver_2 }}</li>
</ul><br>
<ul>
<li><b>Access Reason -</b> {{ each_access.accessReason }}</li>
<li><b>Last Updated -</b> {{ each_access.updated_on }}</li>
</ul>
</div>
</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500 max-w-2xl truncate">{{ each_access.accessCategory }}
</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">{{ each_access.accessRequestType }}</td>
<td class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6">
<a href="#" class="text-blue-100 hover:text-blue-200">
Expand Down