chg: [UI] Use asset loader for view_event_graph.ctp

pull/8321/head
Jakub Onderka 2022-05-02 10:20:00 +02:00
parent 68ca1b8849
commit 3f3aa78689
1 changed files with 18 additions and 16 deletions

View File

@ -1,7 +1,7 @@
<div class="eventgraph_header">
<label id="network-scope" class="btn center-in-network-header network-control-btn">
<span class="useCursorPointer fa fa-object-group" style="margin-right: 3px;">
</span><?php echo __('Scope')?>
<span class="useCursorPointer fa fa-object-group" style="margin-right: 3px;"></span>
<?php echo __('Scope')?>
<span id="network-scope-badge" class="badge"></span>
</label>
<label id="network-physic" class="btn center-in-network-header network-control-btn"><span class="useCursorPointer fa fa-space-shuttle" style="margin-right: 3px;"></span><?php echo __('Physics')?></label>
@ -10,7 +10,7 @@
<label id="network-import" class="btn center-in-network-header network-control-btn"><span class="useCursorPointer fa fa-exchange" style="margin-right: 3px;"></span><?php echo __('Export')?></label>
<label id="network-history" class="btn center-in-network-header network-control-btn"><span class="useCursorPointer fa fa-history" style="margin-right: 3px;"></span><?php echo __('History')?></label>
<select type="text" id="network-typeahead" class="center-in-network-header network-typeahead flushright position-absolute max-width-400"></select>
<select id="network-typeahead" class="center-in-network-header network-typeahead flushright position-absolute max-width-400"></select>
</div>
<span class="shortcut-help btn btn-xs btn-info">?</span>
@ -22,16 +22,18 @@
<div class="spinner-network" data-original-title="" title=""></div>
<div class="loadingText-network" data-original-title="" title=""></div>
</div>
<?php
echo $this->Html->script('vis');
echo $this->Html->css('vis');
echo $this->Html->script('bootstrap-typeahead');
echo $this->Html->script('contextual_menu');
echo $this->Html->css('contextual_menu');
echo $this->Html->script('action_table');
echo $this->Html->css('action_table');
echo $this->Html->css('event-graph');
echo $this->Html->script('event-graph');
?>
<?= $this->element('genericElements/assetLoader', [
'js' => [
'vis',
'bootstrap-typeahead',
'contextual_menu',
'action_table',
'event-graph',
],
'css' => [
'vis',
'contextual_menu',
'action_table',
'event-graph',
],
]);