aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-10-22 09:37:27 +0000
committerJan-Hendrik Willms <tleilax+github@gmail.com>2024-10-22 16:47:50 +0200
commit1ba04a6989bcf74938416c9357fda12c8880bb72 (patch)
treee22b027950e912894b2687e88a2bbacd11bbdaae /templates
parent37120592f618f5b0b26882dadcd8b0935d2ad7fc (diff)
fix filter in files overview, fixes #3267
Closes #3267 Merge request studip/studip!3525
Diffstat (limited to 'templates')
-rw-r--r--templates/pagination/buttons.php7
-rw-r--r--templates/pagination/links.php7
-rw-r--r--templates/sidebar/time-range-filter.php11
3 files changed, 7 insertions, 18 deletions
diff --git a/templates/pagination/buttons.php b/templates/pagination/buttons.php
index 1c62b10..9bfd0bd 100644
--- a/templates/pagination/buttons.php
+++ b/templates/pagination/buttons.php
@@ -41,11 +41,4 @@
</button>
</li>
<? endif; ?>
-
- <li class="divider--template">
- <button class="pagination--link" name="<?= htmlReady($name) ?>" value="{{value}}" <? if ($dialog !== null) echo "data-dialog=\"{$dialog}\""; ?>>
- <span class="audible"><?= _('Seite') ?></span>
- {{label}}
- </button>
- </li>
</ul>
diff --git a/templates/pagination/links.php b/templates/pagination/links.php
index 6d824ed..007b77a 100644
--- a/templates/pagination/links.php
+++ b/templates/pagination/links.php
@@ -43,11 +43,4 @@
</a>
</li>
<? endif; ?>
-
- <li class="divider--template">
- <a class="pagination--link" href="<?= $link_for('{{value}}') ?>" <? if ($dialog !== null) echo "data-dialog=\"{$dialog}\""; ?>>
- <span class="audible"><?= _('Seite') ?></span>
- {{label}}
- </a>
- </li>
</ul>
diff --git a/templates/sidebar/time-range-filter.php b/templates/sidebar/time-range-filter.php
index 97dbcf6..059c51d 100644
--- a/templates/sidebar/time-range-filter.php
+++ b/templates/sidebar/time-range-filter.php
@@ -2,13 +2,16 @@
<?= CSRFProtection::tokenTag() ?>
<label>
<?= _('Dateien neuer als') ?>:
- <input type="text" name="begin" value="<?= htmlReady($begin ?? '') ?>"
- class="hasDatePicker">
+ <input type="text" name="begin" id="begin"
+ value="<?= htmlReady($begin ?? '') ?>"
+ data-date-picker="<?= htmlReady(json_encode(['<=' => '#end'])) ?>">
</label>
<label>
<?= _('Dateien älter als') ?>:
- <input type="text" name="end" value="<?= htmlReady($end ?? '') ?>"
- class="hasDatePicker submit-on-change">
+ <input type="text" name="end" id="end"
+ value="<?= htmlReady($end ?? '') ?>"
+ data-date-picker="<?= htmlReady(json_encode(['>=' => '#begin'])) ?>"
+ onchange="this.closest('form').submit()">
</label>
<? if (!empty($course_options)) : ?>
<label>