Changeset bbf9d1a in Klonkt for src/views/pages/admin-shows.ejs
- Timestamp:
- 06/21/2026 02:32:39 PM (3 months ago)
- Branches:
- main
- Children:
- 4885eab
- Parents:
- 929d98d
- File:
-
- 1 edited
-
src/views/pages/admin-shows.ejs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/admin-shows.ejs
r929d98d rbbf9d1a 6 6 %> 7 7 <section class="ash"> 8 <p><a href="/admin" class="btn">← Beheer</a></p>9 <h1> Agenda</h1>8 <p><a href="/admin" class="btn">← <%= t('ashow.back_admin') %></a></p> 9 <h1><%= t('ashow.title') %></h1> 10 10 11 11 <% if (msg) { %><div class="ash-msg ash-<%= (typeof msgKind!=='undefined')?msgKind:'' %>"><%= msg %></div><% } %> … … 15 15 <label style="display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:600"> 16 16 <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> 18 18 </label> 19 <noscript><button type="submit" class="btn"> Opslaan</button></noscript>19 <noscript><button type="submit" class="btn"><%= t('ashow.save') %></button></noscript> 20 20 </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><% } %> 22 22 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> 25 25 26 26 <form method="POST" action="<%= siteUrlBase %>/admin/shows" class="ash-form"> 27 27 <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> 35 35 </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> 38 38 </form> 39 39 40 40 <% if (ss.length) { %> 41 <% var _delConfirm = t('ashow.del_confirm'); %> 41 42 <ul class="ash-list"> 42 43 <% ss.forEach(function(s){ %> … … 44 45 <span class="ash-when"><%= s.date %><% if (s.time) { %> <%= s.time %><% } %></span> 45 46 <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"> 47 48 <button type="submit" class="ash-del">🗑</button> 48 49 </form> … … 51 52 </ul> 52 53 <% } else { %> 53 <p class="ash-empty"> Nog geen evenementen.</p>54 <p class="ash-empty"><%= t('ashow.empty') %></p> 54 55 <% } %> 55 56 </section>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)