You've already forked wc-licensed-product
Release v0.6.1 - UI improvements and bug fixes
- Fix admin license test popup showing empty product field - Display product name in bold in test license modal - Split auto-update settings into notification and auto-install options - Add filter functionality to customer account licenses page - Update translations (402 strings) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,53 @@
|
||||
{# License Filter Form #}
|
||||
{% if filter_products is defined and filter_products|length > 0 or filter_domains is defined and filter_domains|length > 0 %}
|
||||
<div class="wclp-filter-form">
|
||||
<form method="get" action="{{ esc_url(licenses_url) }}">
|
||||
<div class="wclp-filter-row">
|
||||
{% if filter_products is defined and filter_products|length > 0 %}
|
||||
<div class="wclp-filter-field">
|
||||
<label for="filter_product">{{ __('Product') }}</label>
|
||||
<select name="filter_product" id="filter_product">
|
||||
<option value="">{{ __('All Products') }}</option>
|
||||
{% for id, name in filter_products %}
|
||||
<option value="{{ id }}" {{ current_filter_product == id ? 'selected' : '' }}>
|
||||
{{ esc_html(name) }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if filter_domains is defined and filter_domains|length > 0 %}
|
||||
<div class="wclp-filter-field">
|
||||
<label for="filter_domain">{{ __('Domain') }}</label>
|
||||
<select name="filter_domain" id="filter_domain">
|
||||
<option value="">{{ __('All Domains') }}</option>
|
||||
{% for domain in filter_domains %}
|
||||
<option value="{{ esc_attr(domain) }}" {{ current_filter_domain == domain ? 'selected' : '' }}>
|
||||
{{ esc_html(domain) }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="wclp-filter-actions">
|
||||
<button type="submit" class="button">{{ __('Filter') }}</button>
|
||||
{% if is_filtered %}
|
||||
<a href="{{ esc_url(licenses_url) }}" class="button">{{ __('Clear') }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if not has_packages %}
|
||||
<p>{{ __('You have no licenses yet.') }}</p>
|
||||
{% if is_filtered %}
|
||||
<p>{{ __('No licenses found matching your filters.') }}</p>
|
||||
{% else %}
|
||||
<p>{{ __('You have no licenses yet.') }}</p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div class="woocommerce-licenses">
|
||||
{% for package in packages %}
|
||||
|
||||
Reference in New Issue
Block a user