Skip to content

Commit

Permalink
Fix TasksCreateForm template when in StandAlone Collector mode to all…
Browse files Browse the repository at this point in the history
…ow any minute, hour, et al.
  • Loading branch information
mark-unwin committed Feb 13, 2024
1 parent 8e3b627 commit 854e6c9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/Views/tasksCreateform.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<div id="div_options" style="display:none;"></div>

<?php if (empty($config->servers)) { ?>
<?php if (empty($config->servers) or (!empty($config->servers->type) and $config->servers->type === 'stand-alone')) { ?>
<?php if (!empty($included['collectors'])) { ?>
<div class="row" style="padding-top:16px;" id="div_collector" style="display:none;">
<div class="offset-2 col-8" style="position:relative;">
Expand All @@ -59,7 +59,7 @@

<?= create_text_field('data[attributes][first_run]', __('First Run'), $dictionary->attributes->create, '', 'date') ?>

<?php if (!empty($config->servers)) { ?>
<?php if (!empty($config->servers) and $config->servers->type === 'collector') { ?>
<div class="row" style="padding-top:16px;" id="div_every">
<div class="offset-2 col-8" style="position:relative;">
<label for="data[attributes][minute]" class="form-label"><?= __('Every') ?> <span style="color: #d9534f;">*</span></label>
Expand All @@ -78,7 +78,7 @@
</div>
<?php } ?>

<?php if (empty($config->servers)) { ?>
<?php if (empty($config->servers) or (!empty($config->servers->type) and $config->servers->type === 'stand-alone')) { ?>
<div class="row" style="padding-top:16px;" id="div_minute">
<div class="offset-2 col-8" style="position:relative;">
<label for="data[attributes][minute][]" class="form-label"><?= __('Minute') ?> <span style="color: #dc3545;">*</span></label><br />
Expand All @@ -94,7 +94,7 @@
<?php } ?>


<?php if (empty($config->servers)) { ?>
<?php if (empty($config->servers) or (!empty($config->servers->type) and $config->servers->type === 'stand-alone')) { ?>
<div class="row" style="padding-top:16px;" id="div_hour">
<div class="offset-2 col-8" style="position:relative;">
<label for="data[attributes][hour][]" class="form-label"><?= __('Hour') ?> <span style="color: #dc3545;">*</span></label><br />
Expand All @@ -110,7 +110,7 @@
<?php } ?>


<?php if (empty($config->servers)) { ?>
<?php if (empty($config->servers) or (!empty($config->servers->type) and $config->servers->type === 'stand-alone')) { ?>
<div class="row" style="padding-top:16px;" id="div_day_of_month">
<div class="offset-2 col-8" style="position:relative;">
<label for="data[attributes][day_of_month][]" class="form-label"><?= __('Day of Month') ?> <span style="color: #dc3545;">*</span></label><br />
Expand All @@ -125,7 +125,7 @@
</div>
<?php } ?>

<?php if (empty($config->servers)) { ?>
<?php if (empty($config->servers) or (!empty($config->servers->type) and $config->servers->type === 'stand-alone')) { ?>
<div class="row" style="padding-top:16px;" id="div_month">
<div class="offset-2 col-8" style="position:relative;">
<label for="data[attributes][month][]" class="form-label"><?= __('Month') ?> <span style="color: #dc3545;">*</span></label><br />
Expand All @@ -148,7 +148,7 @@
</div>
<?php } ?>

<?php if (empty($config->servers)) { ?>
<?php if (empty($config->servers) or (!empty($config->servers->type) and $config->servers->type === 'stand-alone')) { ?>
<div class="row" style="padding-top:16px;" id="div_day_of_week">
<div class="offset-2 col-8" style="position:relative;">
<label for="data[attributes][day_of_week][]" class="form-label"><?= __('Day Of Week') ?> <span style="color: #dc3545;">*</span></label><br />
Expand Down

0 comments on commit 854e6c9

Please sign in to comment.