Changeset bbf9d1a in Klonkt for src/views/pages/admin-shows.ejs


Ignore:
Timestamp:
06/21/2026 02:32:39 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
4885eab
Parents:
929d98d
Message:

feat(i18n phase 5): all admin sub-pages translated (NL/EN/DE)

settings, site-edit, seo, google, audio, stats, playlists, users, sites,
comments, circle, shows, newsletter, updates, epk, help. ~520 new keys
per language. Loop-shadowing of t() resolved by fetching before the loop. 709
view-keys cross-checked against the dictionary (0 missing).

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/admin-shows.ejs

    r929d98d rbbf9d1a  
    66%>
    77<section class="ash">
    8   <p><a href="/admin" class="btn">&larr; Beheer</a></p>
    9   <h1>Agenda</h1>
     8  <p><a href="/admin" class="btn">&larr; <%= t('ashow.back_admin') %></a></p>
     9  <h1><%= t('ashow.title') %></h1>
    1010
    1111  <% if (msg) { %><div class="ash-msg ash-<%= (typeof msgKind!=='undefined')?msgKind:'' %>"><%= msg %></div><% } %>
     
    1515    <label style="display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:600">
    1616      <input type="checkbox" name="enabled" value="1" <%= agOn ? 'checked' : '' %> onchange="this.form.submit()" style="width:18px;height:18px;accent-color:var(--accent)">
    17       <span>Agenda tonen op de site <small style="font-weight:400;opacity:.7">(Agenda-knop in de balk + de agendapagina)</small></span>
     17      <span><%= t('ashow.show_toggle') %> <small style="font-weight:400;opacity:.7"><%= t('ashow.show_toggle_hint') %></small></span>
    1818    </label>
    19     <noscript><button type="submit" class="btn">Opslaan</button></noscript>
     19    <noscript><button type="submit" class="btn"><%= t('ashow.save') %></button></noscript>
    2020  </form>
    21   <% if (!agOn) { %><div class="ash-msg">De agenda staat nu <strong>uit</strong> — bezoekers zien geen Agenda-knop en de agendapagina is niet bereikbaar. Zet 'm aan om je evenementen te tonen.</div><% } %>
     21  <% if (!agOn) { %><div class="ash-msg"><%= t('ashow.off_notice_1') %> <strong><%= t('ashow.off') %></strong> <%= t('ashow.off_notice_2') %></div><% } %>
    2222
    23   <p class="ash-note"><strong><%= nc %></strong> abonnee(s) voor evenement-aankondigingen.
    24     <% if (!smtp) { %><br>⚠ SMTP niet ingesteld — evenementen worden opgeslagen, maar notify-mails kunnen pas verstuurd worden zodra je SMTP invult.<% } %></p>
     23  <p class="ash-note"><strong><%= nc %></strong> <%= t('ashow.subscribers') %>
     24    <% if (!smtp) { %><br><%= t('ashow.smtp_warn') %><% } %></p>
    2525
    2626  <form method="POST" action="<%= siteUrlBase %>/admin/shows" class="ash-form">
    2727    <div class="ash-grid">
    28       <label>Datum<input type="date" name="date" required></label>
    29       <label>Tijd (optioneel)<input type="time" name="time"></label>
    30       <label>Plaats<input type="text" name="city" required placeholder="Amsterdam"></label>
    31       <label>Land (optioneel)<input type="text" name="country" placeholder="NL"></label>
    32       <label class="ash-wide">Locatie/zaal (optioneel)<input type="text" name="venue" placeholder="Paradiso"></label>
    33       <label class="ash-wide">Ticket-URL (optioneel)<input type="url" name="ticket_url" placeholder="https://..."></label>
    34       <label class="ash-wide">Notitie (optioneel)<input type="text" name="notes" placeholder="Support: ..."></label>
     28      <label><%= t('ashow.f_date') %><input type="date" name="date" required></label>
     29      <label><%= t('ashow.f_time') %><input type="time" name="time"></label>
     30      <label><%= t('ashow.f_city') %><input type="text" name="city" required placeholder="Amsterdam"></label>
     31      <label><%= t('ashow.f_country') %><input type="text" name="country" placeholder="NL"></label>
     32      <label class="ash-wide"><%= t('ashow.f_venue') %><input type="text" name="venue" placeholder="Paradiso"></label>
     33      <label class="ash-wide"><%= t('ashow.f_ticket') %><input type="url" name="ticket_url" placeholder="https://..."></label>
     34      <label class="ash-wide"><%= t('ashow.f_notes') %><input type="text" name="notes" placeholder="<%= t('ashow.f_notes_ph') %>"></label>
    3535    </div>
    36     <label class="ash-check"><input type="checkbox" name="notify" value="1" <%= smtp ? '' : 'disabled' %>> Abonnees per e-mail op de hoogte brengen<%= smtp ? '' : ' (SMTP vereist)' %></label>
    37     <button type="submit" class="ash-add">+ Evenement toevoegen</button>
     36    <label class="ash-check"><input type="checkbox" name="notify" value="1" <%= smtp ? '' : 'disabled' %>> <%= t('ashow.notify_label') %><%= smtp ? '' : ' ' + t('ashow.smtp_required') %></label>
     37    <button type="submit" class="ash-add"><%= t('ashow.add_event') %></button>
    3838  </form>
    3939
    4040  <% if (ss.length) { %>
     41    <% var _delConfirm = t('ashow.del_confirm'); %>
    4142    <ul class="ash-list">
    4243      <% ss.forEach(function(s){ %>
     
    4445          <span class="ash-when"><%= s.date %><% if (s.time) { %> <%= s.time %><% } %></span>
    4546          <span class="ash-where"><%= s.city %><% if (s.venue) { %> — <%= s.venue %><% } %></span>
    46           <form method="POST" action="<%= siteUrlBase %>/admin/shows/<%= s.id %>/delete" onsubmit="return confirm('Evenement verwijderen??')" style="margin:0">
     47          <form method="POST" action="<%= siteUrlBase %>/admin/shows/<%= s.id %>/delete" onsubmit="return confirm('<%= _delConfirm %>')" style="margin:0">
    4748            <button type="submit" class="ash-del">🗑</button>
    4849          </form>
     
    5152    </ul>
    5253  <% } else { %>
    53     <p class="ash-empty">Nog geen evenementen.</p>
     54    <p class="ash-empty"><%= t('ashow.empty') %></p>
    5455  <% } %>
    5556</section>
Note: See TracChangeset for help on using the changeset viewer.