Changeset 1be21ba in Klonkt for src/views/pages/account.ejs


Ignore:
Timestamp:
06/16/2026 06:46:59 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
682d504
Parents:
e9229f2
Message:

Account: owner can edit site name + tagline in account settings

New "Site" section on /account (owner / god only): edit site_title +
tagline via POST /account/site (ownership check). A quick place to change
the site name without navigating to Appearance.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/account.ejs

    re9229f2 r1be21ba  
    8686  </section>
    8787
     88  <%# ── SITE (eigenaar mag de naam van z'n site aanpassen) ── %>
     89  <% if (typeof editableSite !== 'undefined' && editableSite && canMutate) { %>
     90  <section class="ax-card">
     91    <div class="ax-card-title">Site</div>
     92    <form action="/account/site" method="post" class="ax-form">
     93      <label class="ax-field">
     94        <span>Site-naam <small>— getoond in de kop van je site</small></span>
     95        <input type="text" name="site_title" value="<%= editableSite.title || '' %>" maxlength="200" required>
     96      </label>
     97      <label class="ax-field">
     98        <span>Tagline <small>— korte oneliner (optioneel)</small></span>
     99        <input type="text" name="site_tagline" value="<%= editableSite.tagline || '' %>" maxlength="200">
     100      </label>
     101      <div class="ax-form-actions">
     102        <button type="submit" class="ax-btn ax-btn-primary">Site opslaan</button>
     103      </div>
     104    </form>
     105  </section>
     106  <% } %>
     107
    88108  <%# ── WACHTWOORD ────────────────────────────────────────── %>
    89109  <%# In kijker-modus geen wachtwoord-sectie (niets te wijzigen). %>
Note: See TracChangeset for help on using the changeset viewer.