Skip to main content

max / makenotwork

1.4 KB · 34 lines History Blame Raw
1 <div class="form-section">
2 <h2 class="subsection-title">SSH Keys</h2>
3 <p class="credentials-lead">
4 Manage SSH keys for git clone and push access. Clone URL: <code>git@makenot.work:{{ username }}/{repo}.git</code>
5 </p>
6
7 <div id="ssh-keys-list"
8 hx-get="/api/users/me/ssh-keys/list"
9 hx-trigger="load"
10 hx-swap="innerHTML">
11 <p class="credentials-loading">Loading...</p>
12 </div>
13
14 <form class="credentials-add-form"
15 hx-post="/api/users/me/ssh-keys"
16 hx-target="#ssh-keys-list"
17 hx-swap="innerHTML"
18 hx-on::after-request="if(event.detail.successful) this.reset()">
19 <div class="form-group">
20 <label for="ssh-public-key">Public Key</label>
21 <textarea id="ssh-public-key" name="public_key" placeholder="ssh-ed25519 AAAA... or ssh-rsa AAAA..." required
22 rows="3"></textarea>
23 <div class="hint">Paste the contents of your ~/.ssh/id_ed25519.pub or similar public key file</div>
24 </div>
25 <div class="credentials-add-row">
26 <div class="form-group">
27 <label for="ssh-key-label">Label</label>
28 <input type="text" id="ssh-key-label" name="label" placeholder="e.g., laptop, work" maxlength="128">
29 </div>
30 <button class="btn-secondary" type="submit">Add SSH Key</button>
31 </div>
32 </form>
33 </div>
34