| 1 |
<script> |
| 2 |
jQuery(document).ready(function ($) { |
| 3 |
jQuery('.open-popup').on('click', function (e) { |
| 4 |
jQuery.post( |
| 5 |
ajaxurl, |
| 6 |
{ |
| 7 |
action: 'wtotem_ajax', |
| 8 |
ajax_action: 'popup', |
| 9 |
popup_action: jQuery(this).data('action'), |
| 10 |
wtotem_page_nonce: '{{ page_nonce }}', |
| 11 |
}, |
| 12 |
function (data) { |
| 13 |
|
| 14 |
if(data.success){ |
| 15 |
jQuery('.wtotem_body').append(data.content); |
| 16 |
} |
| 17 |
} |
| 18 |
); |
| 19 |
}); |
| 20 |
}); |
| 21 |
</script> |
| 22 |
|
| 23 |
<div class="wtotem_not-working__card message-card wtotem-mb-15"> |
| 24 |
<h2 class="wtotem_not-working__title message-card__title">{{ 'Data access error'|trans }}</h2> |
| 25 |
<img class="wtotem_not-working__img" src="{{ images_path }}people-with-glass.svg" width="183" height="156" alt="People with loupe" /> |
| 26 |
|
| 27 |
<p class="wtotem_not-working__text"> |
| 28 |
{{ message }} |
| 29 |
</p> |
| 30 |
{% if is_cabinet_link %} |
| 31 |
<a class="wtotem_button wtotem_control__btn wtotem-mb-15" href="{{ cabinet_link }}" target="_blank"> |
| 32 |
{{ 'Go to the cabinet'|trans }} |
| 33 |
</a> |
| 34 |
{% endif %} |
| 35 |
{% if is_bnt %} |
| 36 |
<div class="wtotem_button wtotem_control__btn open-popup wtotem-mb-15" data-action="reinstall_agents"> |
| 37 |
<img src="{{ images_path }}reload.svg" alt=""> <span>{{ 'Reinstall agents'|trans }}</span> |
| 38 |
</div> |
| 39 |
<div class="wtotem_button wtotem_control__btn open-popup" data-action="logout"> |
| 40 |
{{ 'API-key change'|trans }} |
| 41 |
</div> |
| 42 |
{% endif %} |
| 43 |
</div> |