We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f739c37 commit a793771Copy full SHA for a793771
src/commands/members/add-email-form.ts
@@ -10,15 +10,17 @@ import {failureWithStatus} from '../../types/failure-with-status';
10
import {StatusCodes} from 'http-status-codes';
11
12
type ViewModel = {
13
- user: User;
14
- memberNumber: number;
+ user: User; // The user logged in
+ memberNumber: number; // The user we are updating the email for.
15
+
16
+ // TODO - Show the emails already registered for this user.
17
};
18
19
const renderForm = (viewModel: ViewModel) =>
20
pipe(
21
html`
22
<h1>Add email</h1>
- <form action="?next=/me" method="post">
23
+ <form action="?next=/member/${viewModel.memberNumber}" method="post">
24
<label for="email">Email address</label>
25
<input type="email" name="email" id="email" />
26
<input
0 commit comments