fix: Add Polish diacritics to calendar templates
- event.html: Powrót, wziąć udział, zapisało się, Wezmę udział - index.html: Następny, Zarządzaj, wydarzeń, uczestników - admin.html: Zarządzanie wydarzeniami, wydarzeń
This commit is contained in:
parent
7340337ec5
commit
1a1e5f6cf1
@ -1,6 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Zarzadzanie wydarzeniami - Norda Biznes Hub{% endblock %}
|
||||
{% block title %}Zarządzanie wydarzeniami - Norda Biznes Hub{% endblock %}
|
||||
|
||||
{% block extra_css %}
|
||||
<style>
|
||||
@ -115,8 +115,8 @@
|
||||
{% block content %}
|
||||
<div class="admin-header">
|
||||
<div>
|
||||
<h1>Zarzadzanie wydarzeniami</h1>
|
||||
<p class="text-muted">Tworzenie i edycja wydarzen Norda Biznes</p>
|
||||
<h1>Zarządzanie wydarzeniami</h1>
|
||||
<p class="text-muted">Tworzenie i edycja wydarzeń Norda Biznes</p>
|
||||
</div>
|
||||
<a href="{{ url_for('admin_calendar_new') }}" class="btn btn-primary">Dodaj wydarzenie</a>
|
||||
</div>
|
||||
@ -167,7 +167,7 @@
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="empty-state">
|
||||
<p>Brak wydarzen. Dodaj pierwsze wydarzenie!</p>
|
||||
<p>Brak wydarzeń. Dodaj pierwsze wydarzenie!</p>
|
||||
<a href="{{ url_for('admin_calendar_new') }}" class="btn btn-primary mt-2">Dodaj wydarzenie</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
@ -120,7 +120,7 @@
|
||||
<svg width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
||||
<path d="M19 12H5M12 19l-7-7 7-7"/>
|
||||
</svg>
|
||||
Powrot do kalendarza
|
||||
Powrót do kalendarza
|
||||
</a>
|
||||
|
||||
<div class="event-header">
|
||||
@ -197,16 +197,16 @@
|
||||
{% if not event.is_past %}
|
||||
<div class="rsvp-section">
|
||||
<div>
|
||||
<strong>Chcesz wziac udzial?</strong>
|
||||
<p class="text-muted" style="margin: 0;">{{ event.attendee_count }} osob juz sie zapisalo{% if event.max_attendees %} (limit: {{ event.max_attendees }}){% endif %}</p>
|
||||
<strong>Chcesz wziąć udział?</strong>
|
||||
<p class="text-muted" style="margin: 0;">{{ event.attendee_count }} osób już się zapisało{% if event.max_attendees %} (limit: {{ event.max_attendees }}){% endif %}</p>
|
||||
</div>
|
||||
<button id="rsvp-btn" class="btn {% if user_attending %}btn-secondary attending{% else %}btn-primary{% endif %}" onclick="toggleRSVP()">
|
||||
{% if user_attending %}Wypisz sie{% else %}Wezme udzial{% endif %}
|
||||
{% if user_attending %}Wypisz się{% else %}Wezmę udział{% endif %}
|
||||
</button>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="rsvp-section" style="background: var(--border);">
|
||||
<p class="text-muted" style="margin: 0;">To wydarzenie juz sie odbilo. {{ event.attendee_count }} osob bralo udzial.</p>
|
||||
<p class="text-muted" style="margin: 0;">To wydarzenie już się odbyło. {{ event.attendee_count }} osób brało udział.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
@ -264,12 +264,12 @@ async function toggleRSVP() {
|
||||
const data = await response.json();
|
||||
if (data.success) {
|
||||
if (data.action === 'added') {
|
||||
btn.textContent = 'Wypisz sie';
|
||||
btn.textContent = 'Wypisz się';
|
||||
btn.classList.remove('btn-primary');
|
||||
btn.classList.add('btn-secondary', 'attending');
|
||||
showToast('Zapisano na wydarzenie!', 'success');
|
||||
} else {
|
||||
btn.textContent = 'Wezme udzial';
|
||||
btn.textContent = 'Wezmę udział';
|
||||
btn.classList.remove('btn-secondary', 'attending');
|
||||
btn.classList.add('btn-primary');
|
||||
showToast('Wypisano z wydarzenia', 'info');
|
||||
|
||||
@ -352,7 +352,7 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="calendar-header">
|
||||
<h1>Kalendarz wydarzen</h1>
|
||||
<h1>Kalendarz wydarzeń</h1>
|
||||
<p class="text-muted">Spotkania i wydarzenia Norda Biznes</p>
|
||||
</div>
|
||||
|
||||
@ -371,12 +371,12 @@
|
||||
<div class="month-nav">
|
||||
<a href="?view=grid&year={{ prev_year }}&month={{ prev_month }}">← Poprzedni</a>
|
||||
<span class="current-month">{{ month_name }} {{ year }}</span>
|
||||
<a href="?view=grid&year={{ next_year }}&month={{ next_month }}">Nastepny →</a>
|
||||
<a href="?view=grid&year={{ next_year }}&month={{ next_month }}">Następny →</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if current_user.is_admin %}
|
||||
<a href="{{ url_for('admin_calendar') }}" class="btn btn-secondary btn-sm">Zarzadzaj</a>
|
||||
<a href="{{ url_for('admin_calendar') }}" class="btn btn-secondary btn-sm">Zarządzaj</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@ -431,7 +431,7 @@
|
||||
|
||||
<!-- Nadchodzące wydarzenia -->
|
||||
<div class="events-section">
|
||||
<h2>Nadchodzace wydarzenia</h2>
|
||||
<h2>Nadchodzące wydarzenia</h2>
|
||||
|
||||
{% if upcoming_events %}
|
||||
{% for event in upcoming_events %}
|
||||
@ -461,14 +461,14 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="event-actions">
|
||||
<span class="attendee-count">{{ event.attendee_count }} uczestnikow</span>
|
||||
<span class="attendee-count">{{ event.attendee_count }} uczestników</span>
|
||||
<a href="{{ url_for('calendar_event', event_id=event.id) }}" class="btn btn-primary btn-sm">Szczegoly</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div class="empty-state">
|
||||
<p>Brak nadchodzacych wydarzen</p>
|
||||
<p>Brak nadchodzących wydarzeń</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
@ -496,7 +496,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="event-actions">
|
||||
<span class="attendee-count">{{ event.attendee_count }} uczestnikow</span>
|
||||
<span class="attendee-count">{{ event.attendee_count }} uczestników</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user