mirror of
https://github.com/ellite/Wallos.git
synced 2025-12-23 23:18:07 -05:00
feat: add sort by renew type feat: add filter by renew type fix: state filter not cleared by clear button fix: special chars on calendar exports fix: special chars on notifications feat: remove "Wallos" text from calendar export fix: ical trigger to spec RFC5545
35 lines
2.1 KiB
PHP
35 lines
2.1 KiB
PHP
<div class="sort-options" id="sort-options">
|
|
<ul>
|
|
<li <?= $sortOrder == "name" ? 'class="selected"' : "" ?> onClick="setSortOption('name')" id="sort-name">
|
|
<?= translate('name', $i18n) ?>
|
|
</li>
|
|
<li <?= $sortOrder == "id" ? 'class="selected"' : "" ?> onClick="setSortOption('id')" id="sort-id">
|
|
<?= translate('last_added', $i18n) ?>
|
|
</li>
|
|
<li <?= $sortOrder == "price" ? 'class="selected"' : "" ?> onClick="setSortOption('price')" id="sort-price">
|
|
<?= translate('price', $i18n) ?>
|
|
</li>
|
|
<li <?= $sortOrder == "next_payment" ? 'class="selected"' : "" ?> onClick="setSortOption('next_payment')"
|
|
id="sort-next_payment"><?= translate('next_payment', $i18n) ?></li>
|
|
<li <?= $sortOrder == "payer_user_id" ? 'class="selected"' : "" ?> onClick="setSortOption('payer_user_id')"
|
|
id="sort-payer_user_id"><?= translate('member', $i18n) ?></li>
|
|
<li <?= $sortOrder == "category_id" ? 'class="selected"' : "" ?> onClick="setSortOption('category_id')"
|
|
id="sort-category_id"><?= translate('category', $i18n) ?></li>
|
|
<li <?= $sortOrder == "payment_method_id" ? 'class="selected"' : "" ?> onClick="setSortOption('payment_method_id')"
|
|
id="sort-payment_method_id">
|
|
<?= translate('payment_method', $i18n) ?>
|
|
</li>
|
|
<?php
|
|
if (!isset($settings['hideDisabledSubscriptions']) || $settings['hideDisabledSubscriptions'] !== 'true') {
|
|
?>
|
|
<li <?= $sortOrder == "inactive" ? 'class="selected"' : "" ?> onClick="setSortOption('inactive')"
|
|
id="sort-inactive"><?= translate('state', $i18n) ?></li>
|
|
<?php
|
|
}
|
|
?>
|
|
<li <?= $sortOrder == "alphanumeric" ? 'class="selected"' : "" ?> onClick="setSortOption('alphanumeric')"
|
|
id="sort-alphanumeric"><?= translate('alphanumeric', $i18n) ?></li>
|
|
<li <?= $sortOrder == "renewal_type" ? 'class="selected"' : "" ?> onClick="setSortOption('renewal_type')"
|
|
id="sort-renewal_type"><?= translate('renewal_type', $i18n) ?></li>
|
|
</ul>
|
|
</div>
|