fix: remove test toggle button, fix Oferuje → Oferuję diacritics
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c49e57965e
commit
8481ffd70a
@ -84,7 +84,7 @@
|
||||
<input type="radio" id="type_oferuje" name="listing_type" value="oferuje" required {% if classified.listing_type == 'oferuje' %}checked{% endif %}>
|
||||
<label for="type_oferuje">
|
||||
<span class="type-icon">✨</span>
|
||||
<strong>Oferuje</strong>
|
||||
<strong>Oferuję</strong>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -157,22 +157,6 @@
|
||||
margin-left: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.toggle-test-btn {
|
||||
background: #fef3c7;
|
||||
border-color: #fcd34d;
|
||||
color: #92400e;
|
||||
}
|
||||
|
||||
.toggle-test-btn:hover {
|
||||
background: #fde68a;
|
||||
}
|
||||
|
||||
.toggle-test-btn.active {
|
||||
background: var(--primary);
|
||||
border-color: var(--primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.classified-title {
|
||||
font-size: var(--font-size-lg);
|
||||
font-weight: 600;
|
||||
@ -264,7 +248,7 @@
|
||||
<div class="filter-group">
|
||||
<a href="{{ url_for('classifieds.classifieds_index', category=category_filter) }}" class="filter-btn {% if not listing_type %}active{% endif %}">Wszystkie</a>
|
||||
<a href="{{ url_for('classifieds.classifieds_index', type='szukam', category=category_filter) }}" class="filter-btn {% if listing_type == 'szukam' %}active{% endif %}">Szukam</a>
|
||||
<a href="{{ url_for('classifieds.classifieds_index', type='oferuje', category=category_filter) }}" class="filter-btn {% if listing_type == 'oferuje' %}active{% endif %}">Oferuje</a>
|
||||
<a href="{{ url_for('classifieds.classifieds_index', type='oferuje', category=category_filter) }}" class="filter-btn {% if listing_type == 'oferuje' %}active{% endif %}">Oferuję</a>
|
||||
</div>
|
||||
|
||||
<div class="filter-group">
|
||||
@ -274,12 +258,6 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="filter-group" style="margin-left: auto;">
|
||||
<button type="button" id="toggleTestBtn" class="filter-btn toggle-test-btn" onclick="toggleTestItems()">
|
||||
<span class="hide-label">🙈 Ukryj testowe</span>
|
||||
<span class="show-label" style="display:none;">👁 Pokaż testowe</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="classifieds-grid">
|
||||
@ -287,7 +265,7 @@
|
||||
{% for classified in classifieds %}
|
||||
<div class="classified-card {{ classified.listing_type }} {% if classified.is_test %}test-item{% endif %}">
|
||||
<div class="classified-header">
|
||||
<span class="classified-type {{ classified.listing_type }}">{{ 'Szukam' if classified.listing_type == 'szukam' else 'Oferuje' }}</span>
|
||||
<span class="classified-type {{ classified.listing_type }}">{{ 'Szukam' if classified.listing_type == 'szukam' else 'Oferuję' }}</span>
|
||||
<span class="classified-category category-{{ classified.category }}">{{ classified.category|replace('uslugi', 'Usługi')|replace('produkty', 'Produkty')|replace('wspolpraca', 'Współpraca')|replace('praca', 'Praca')|replace('inne', 'Inne')|replace('nieruchomosci', 'Nieruchomości') }}</span>
|
||||
{% if classified.is_test %}<span class="test-badge">Testowe</span>{% endif %}
|
||||
</div>
|
||||
@ -335,36 +313,4 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block extra_js %}
|
||||
function setTestItemsVisibility(hidden) {
|
||||
const btn = document.getElementById('toggleTestBtn');
|
||||
const hideLabel = btn.querySelector('.hide-label');
|
||||
const showLabel = btn.querySelector('.show-label');
|
||||
const testItems = document.querySelectorAll('.test-item');
|
||||
|
||||
if (hidden) {
|
||||
testItems.forEach(t => t.style.display = 'none');
|
||||
hideLabel.style.display = 'none';
|
||||
showLabel.style.display = '';
|
||||
btn.classList.add('active');
|
||||
} else {
|
||||
testItems.forEach(t => t.style.display = '');
|
||||
hideLabel.style.display = '';
|
||||
showLabel.style.display = 'none';
|
||||
btn.classList.remove('active');
|
||||
}
|
||||
localStorage.setItem('hideTestClassifieds', hidden ? 'true' : 'false');
|
||||
}
|
||||
|
||||
function toggleTestItems() {
|
||||
const isCurrentlyHidden = localStorage.getItem('hideTestClassifieds') === 'true';
|
||||
setTestItemsVisibility(!isCurrentlyHidden);
|
||||
}
|
||||
|
||||
// Apply saved preference on page load
|
||||
(function() {
|
||||
if (localStorage.getItem('hideTestClassifieds') === 'true') {
|
||||
setTestItemsVisibility(true);
|
||||
}
|
||||
})();
|
||||
{% endblock %}
|
||||
|
||||
@ -253,7 +253,7 @@
|
||||
<input type="radio" id="type_oferuje" name="listing_type" value="oferuje" required>
|
||||
<label for="type_oferuje">
|
||||
<span class="type-icon">✨</span>
|
||||
<strong>Oferuje</strong>
|
||||
<strong>Oferuję</strong>
|
||||
<span style="font-size: var(--font-size-xs); color: var(--text-secondary);">Mam do zaoferowania</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@ -678,7 +678,7 @@
|
||||
<div class="classified-card {{ classified.listing_type }}">
|
||||
<div class="classified-header">
|
||||
<div>
|
||||
<span class="classified-type {{ classified.listing_type }}">{{ 'Szukam' if classified.listing_type == 'szukam' else 'Oferuje' }}</span>
|
||||
<span class="classified-type {{ classified.listing_type }}">{{ 'Szukam' if classified.listing_type == 'szukam' else 'Oferuję' }}</span>
|
||||
<span class="classified-category category-{{ classified.category }}">{{ classified.category|replace('uslugi', 'Usługi')|replace('produkty', 'Produkty')|replace('wspolpraca', 'Współpraca')|replace('praca', 'Praca')|replace('inne', 'Inne')|replace('nieruchomosci', 'Nieruchomości') }}</span>
|
||||
{% if not classified.is_active %}
|
||||
<span class="inactive-badge">Nieaktywne</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user