templates/layouts/report.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/fluid.html.twig' %}
  2. {% block stylesheets %}
  3.     {{ parent() }}
  4.     <link rel="stylesheet" href="{{ asset('build/report-vendors.css') }}" >
  5. {% endblock %}
  6. {% block javascripts %}
  7.     {{ parent() }}
  8.     {% set sourceknowledge_domains = sk_domains()  %}
  9.     {{ encore_entry_script_tags('report-vendors')}}
  10.     <script src="{{ asset('build/common-public.js') }}"></script>
  11.     <script type="text/javascript">
  12.         window.engageVars      = window.engageVars || {};
  13.         window.engageVars.reportConstants = {
  14.             SK_DOMAIN: "{{ sourceknowledge_domains }}",
  15.         };
  16.         // alerts/list.html.twig
  17.         window.engageVars.alertConstants = {
  18.             ALERT_LABELS: {{ constant('App\\Entity\\Scan::ALERT_LABELS')|json_encode | raw }},
  19.             STATUS_RESOLUTION_LABELS: {{ constant('App\\Entity\\Scan::STATUS_RESOLUTION_LABELS')|json_encode | raw }},
  20.             STATUS_UNKNOWN: {{ constant('App\\Entity\\Scan::STATUS_UNKNOWN') }},
  21.             STATUS_PENDING_RESOLUTION: {{ constant('App\\Entity\\Scan::STATUS_PENDING_RESOLUTION') }},
  22.             ALERTS_LIST_URL: '{{ path('alerts_list') }}',
  23.             RESOLUTION_UPDATE_URL: '{{ path('resolution_update') }}',
  24.             DEVICE_LABELS : {{ constant('App\\Entity\\Scan::DEVICE_TYPE_LABELS')|json_encode|raw }}
  25.         };
  26.         // alerts/list.html.twig
  27.         window.engageVars.campaignConstants = {
  28.             STATUS_LABELS: {{ constant('App\\Entity\\GeoEdgeExtraInfo::CAMPAIGN_STATUS_LABELS')|json_encode | raw }},
  29.             CAMPAIGN_STATUS_LIVE: {{ constant('App\\Entity\\GeoEdgeExtraInfo::CAMPAIGN_STATUS_LIVE')}},
  30.             CAMPAIGN_STATUS_PAUSED: {{ constant('App\\Entity\\GeoEdgeExtraInfo::CAMPAIGN_STATUS_PAUSED')}},
  31.         };
  32.         // search/list.html.twig
  33.         window.engageVars.searchConstants = {
  34.             STATUS_LABELS: {{ constant('App\\Entity\\Scan::SEARCH_LABELS')|json_encode | raw }},
  35.             STATUS_RESOLUTION_LABELS: {{ constant('App\\Entity\\Scan::STATUS_RESOLUTION_LABELS')|json_encode | raw }},
  36.             STATUS_UNKNOWN: {{ constant('App\\Entity\\Scan::STATUS_UNKNOWN') }},
  37.             STATUS_LANDING_OK: {{ constant('App\\Entity\\Scan::STATUS_LANDING_OK') }},
  38.             STATUS_FILTERED: {{ constant('App\\Entity\\Scan::STATUS_FILTERED') }},
  39.             SEARCH_LIST_URL: '{{ path('search_list') }}',
  40.             RESOLUTION_UPDATE_URL: '{{ path('resolution_update') }}',
  41.             ORDER_OF_STATUS: {{ constant('App\\Entity\\Scan::ORDER_OF_STATUS')|json_encode | raw }},
  42.             SOURCE_LABELS: {{ constant('App\\Entity\\Scan::FLAG_TRAFFIC_LABELS')|json_encode | raw }},
  43.             SK_DOMAIN: "{{ sourceknowledge_domains }}",
  44.         };
  45.         // search/list.html.twig
  46.         window.engageVars.campaignConstants = {
  47.             STATUS_LABELS: {{ constant('App\\Entity\\GeoEdgeExtraInfo::CAMPAIGN_STATUS_LABELS')|json_encode | raw }},
  48.             CAMPAIGN_STATUS_LIVE: {{ constant('App\\Entity\\GeoEdgeExtraInfo::CAMPAIGN_STATUS_LIVE')}},
  49.             CAMPAIGN_STATUS_PAUSED: {{ constant('App\\Entity\\GeoEdgeExtraInfo::CAMPAIGN_STATUS_PAUSED')}},
  50.         };
  51.         // targets/list.html.twig combined with scans/list
  52.         window.engageVars.scanConstants = {
  53.             STATUS_LABELS: {{ constant('App\\Entity\\Scan::STATUS_LABELS')|json_encode | raw }},
  54.             STATUS_UNKNOWN: {{ constant('App\\Entity\\Scan::STATUS_UNKNOWN') }},
  55.             STATUS_LANDING_OK: {{ constant('App\\Entity\\Scan::STATUS_LANDING_OK')}},
  56.             STATUS_FILTERED: {{ constant('App\\Entity\\Scan::STATUS_FILTERED') }},
  57.             STATUS_LANDING_ISSUE: {{ constant('App\\Entity\\Scan::STATUS_LANDING_ISSUE') }},
  58.             STATUS_INVALID_SCAN : {{ constant('App\\Entity\\Scan::STATUS_INVALID_SCAN') }},
  59.             TARGETS_LIST_URL: '{{ path('targets_list') }}',
  60.         };
  61.         // targets/list
  62.         window.engageVars.tagConstants = {
  63.             TYPE_LABELS: {{ constant('App\\Model\\Tag::TYPE_LABELS') | json_encode | raw }},
  64.             TYPE_LABELS_SHORT: {{ constant('App\\Model\\Tag::TYPE_LABELS_SHORT') | json_encode | raw }},
  65.             TYPE_DL: {{  constant('App\\Model\\Tag::TYPE_DL') }},
  66.             TYPE_HP: {{ constant('App\\Model\\Tag::TYPE_HP') }},
  67.             TYPE_ML: {{ constant('App\\Model\\Tag::TYPE_ML') }}
  68.         };
  69.     </script>
  70. {% endblock %}
  71. {% block page_header %}
  72.     {% block report_header %}
  73.         <h1>{% block title %}GeoEdge Integration{% endblock %}</h1>
  74.     {% endblock %}
  75. {% endblock %}
  76. {% block page_content %}
  77.     <div id="js_spin_loader" style="display:none" >
  78.         <div class="d-flex justify-content-center loading">
  79.             <div class="spinner-border " role="status">
  80.             <span class="sr-only">Loading...</span>
  81.             </div>
  82.         </div>
  83.     </div>
  84.     {% block report_content %}
  85.     {% endblock %}
  86.     <script src="{{ asset('build/report-controls.js') }}"></script>
  87. {% endblock %}