{% extends "base.html" %} {% block title %}Katalog firm - Norda Biznes Hub{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Katalog firm Norda Biznes

{{ total_companies }} firm członkowskich • {{ total_categories }} branż

{% if categories %}
{% for category in categories %} {% set count = companies|selectattr('category_id', 'equalto', category.id)|list|length %} {% if count > 0 %} {% endif %} {% endfor %}
{% endif %} {% if companies %}
{% for company in companies %}
{% if company.category %} {{ company.category.name }} {% endif %} {{ company.name }}
{{ company.description_short|truncate(150) if company.description_short else 'Brak opisu' }}
{% if company.website %} {% endif %} {% if company.phone %} {% endif %} {% if company.address_city %}
{{ company.address_city }}
{% endif %}
{% endfor %}
{% else %}

Brak firm w katalogu

Nie znaleziono żadnych firm w systemie.

{% endif %} {% endblock %} {% block extra_js %} // Category filter function filterCategory(slug) { const cards = document.querySelectorAll('.company-card'); const badges = document.querySelectorAll('.category-badge'); // Update active badge badges.forEach(badge => { badge.classList.remove('active'); if (badge.textContent.toLowerCase().includes(slug) || (slug === 'all' && badge.textContent.includes('Wszystkie'))) { badge.classList.add('active'); } }); // Filter cards cards.forEach(card => { if (slug === 'all') { card.style.display = 'flex'; } else { const cardCategory = card.getAttribute('data-category'); card.style.display = cardCategory === slug ? 'flex' : 'none'; } }); } // Smooth scroll to companies on search const urlParams = new URLSearchParams(window.location.search); if (urlParams.get('q')) { document.getElementById('companiesGrid')?.scrollIntoView({ behavior: 'smooth' }); } {% endblock %}