aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-03-27 13:24:41 +0100
committerPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-03-27 13:24:41 +0100
commitda0022e5c1abbf9825ae76debaabdff7e8623bb4 (patch)
treea4891aab23983bcf92cf495750f0a30193afc63c
parenta5ab0e56bae72904e6b46d9098bda905f4a62bbc (diff)
use fixed number of colors in schedule
-rw-r--r--app/views/calendar/schedule/_colorpicker.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/calendar/schedule/_colorpicker.php b/app/views/calendar/schedule/_colorpicker.php
index 79ad8b2..310c93a 100644
--- a/app/views/calendar/schedule/_colorpicker.php
+++ b/app/views/calendar/schedule/_colorpicker.php
@@ -1,12 +1,12 @@
<section id="color_picker">
<?= _('Farbe des Termins') ?>
<div>
- <? foreach ($GLOBALS['PERS_TERMIN_KAT'] as $index => $data): ?>
+ <? for ($index = 1; $index <= 18; $index++): ?>
<span>
<input type="radio" name="entry_color" value="<?= $index ?>" id="color-<?= $index ?>"
<? if ($index == $selected) echo 'checked'; ?>>
<label class="undecorated schedule-category<?= $index ?>" for="color-<?= $index ?>"></label>
</span>
- <? endforeach; ?>
+ <? endfor; ?>
</div>
</section>