fix: [workflows] Removed unused views and fix end of files

pull/8530/head
Sami Mokaddem 2022-07-25 13:50:11 +02:00
parent b8a9bedcbc
commit 8a98815b75
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
10 changed files with 8 additions and 75 deletions

View File

@ -1,47 +0,0 @@
<div>
<?php if (empty($trigger['GroupedWorkflows']['blocking']) && empty($trigger['GroupedWorkflows']['non-blocking'])): ?>
<?= __('No workflows listen to this trigger') ?>
<?php endif; ?>
<?php if (!empty($trigger['GroupedWorkflows']['blocking'])): ?>
<ul class="unstyled">
<li class="bold">
<i class="bold fa-fw <?= $this->FontAwesome->getClass('hourglass-start') ?>" style="font-size: larger;" title="<?= __('Blocking execution path') ?>"></i>
<?= __('Blocking') ?>
</li>
<?php foreach ($trigger['GroupedWorkflows']['blocking'] as $i => $workflow) : ?>
<li>
<i class="fa-fw fa-rotate-90 <?= $this->FontAwesome->getClass(empty($workflow['Workflow']['enabled']) ? 'arrow-right' : 'level-up-alt') ?>" style="margin-left: <?= $i+1 ?>em"></i>
<a
href="<?= $baseurl . '/workflows/view/' . h($workflow['Workflow']['id']) ?>"
title="<?= empty($workflow['Workflow']['enabled']) ? __('This workflow is disabled') : h($workflow['Workflow']['description']) ?>"
class="<?= empty($workflow['Workflow']['enabled']) ? 'muted' : '' ?>"
style="<?= empty($workflow['Workflow']['enabled']) ? 'text-decoration: line-through;' : '' ?>"
>
<?= h($workflow['Workflow']['name']) ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if (!empty($trigger['GroupedWorkflows']['non-blocking'])): ?>
<ul class="unstyled">
<li class="bold">
<i class="fa-fw <?= $this->FontAwesome->getClass('random') ?>" title="<?= __('Concurrent execution path') ?>"></i>
<?= __('Concurrent') ?>
</li>
<?php foreach ($trigger['GroupedWorkflows']['non-blocking'] as $i => $workflow) : ?>
<li>
<i class="fa-fw <?= $this->FontAwesome->getClass('arrow-right') ?>" title="<?= __('Concurrent execution path') ?>" style="margin-left: <?= 1 ?>em"></i>
<a
href="<?= $baseurl . '/workflows/view/' . h($workflow['Workflow']['id']) ?>"
title="<?= empty($workflow['Workflow']['enabled']) ? __('This workflow is disabled') : h($workflow['Workflow']['description']) ?>"
class="<?= empty($workflow['Workflow']['enabled']) ? 'muted' : '' ?>"
style="<?= empty($workflow['Workflow']['enabled']) ? 'text-decoration: line-through;' : '' ?>"
>
<?= h($workflow['Workflow']['name']) ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>

View File

@ -1,20 +0,0 @@
<li data-workflowid="<?= h($workflow['Workflow']['id']) ?>">
<i class="<?= $this->FontAwesome->getClass('arrows-alt-v') ?>"></i>
<div>
<div style="display: flex;">
<strong
title="<?= empty($workflow['Workflow']['enabled']) ? __('This workflow is disabled') : h($workflow['Workflow']['description']) ?>"
class="<?= empty($workflow['Workflow']['enabled']) ? 'muted' : '' ?>"
style="font-size: larger; <?= empty($workflow['Workflow']['enabled']) ? 'text-decoration: line-through;' : '' ?>"
>
<?= h($workflow['Workflow']['name']) ?>
</strong>
<span style="font-size: smaller; margin-left: auto;">
<?= $this->element('genericElements/SingleViews/Fields/orgField', ['data' => $workflow, 'field' => ['path' => 'Organisation']]) ?>
</span>
</div>
<div class="muted ellipsis-overflow">
<?= h($workflow['Workflow']['description']) ?>
</div>
</div>
</li>

View File

@ -58,4 +58,4 @@ $invalidMarkdown = substr_count($markdown, PHP_EOL) <= 2;
}
}
</script>
<?php endif; ?>
<?php endif; ?>

View File

@ -51,4 +51,4 @@ if (!$ajax) {
error: xhrFailCallback,
});
}
</script>
</script>

View File

@ -61,4 +61,4 @@ echo $this->element(
overflow: auto;
resize: both;
}
</style>
</style>

View File

@ -311,4 +311,4 @@ echo $this->element('genericElements/assetLoader', [
.dropdown-menu li.disabled a {
pointer-events: none;
}
</style>
</style>

View File

@ -18,4 +18,4 @@ echo $this->element('/genericElements/SideMenu/side_menu', [
<?php endforeach; ?>
</ul>
</div>
</div>
</div>

View File

@ -92,4 +92,4 @@ echo $this->element(
overflow: auto;
resize: both;
}
</style>
</style>

View File

@ -137,4 +137,4 @@
]
]);
echo $this->element('/Workflows/infoModal');
echo $this->element('/Workflows/infoModal');

View File

@ -79,4 +79,4 @@ echo $this->element(
overflow: auto;
resize: both;
}
</style>
</style>