diff options
-rwxr-xr-x | src/routes.js | 1 | ||||
-rwxr-xr-x | views/event.handlebars | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/routes.js b/src/routes.js index 475f5a0..ab12a3a 100755 --- a/src/routes.js +++ b/src/routes.js @@ -687,6 +687,7 @@ router.post("/attendevent/:eventID", async (req, res) => { "attendees.$.name": req.body.attendeeName, "attendees.$.email": req.body.attendeeEmail, "attendees.$.number": req.body.attendeeNumber, + "attendees.$.visibility": !!req.body.attendeeVisible ? "public" : "private", }, }, ) diff --git a/views/event.handlebars b/views/event.handlebars index 763aa22..4402578 100755 --- a/views/event.handlebars +++ b/views/event.handlebars @@ -199,6 +199,13 @@ <input type="email" class="form-control" id="attendeeEmail" name="attendeeEmail" placeholder="We won't spam you <3" data-validation="email" data-validation-optional="true"> </div> </div> + <div class="form-check"> + <input class="form-check-input" type="checkbox" id="attendeeVisible" name="attendeeVisible" checked> + <label class="form-check-label" for="attendeeVisible"> + Show my name in the public list of attendees + </label> + <p class="form-text small">If you choose to hide your name, only the event organiser will be able to see it.</p> + </div> <div class="form-group"> <label for="removalPassword">Deletion password</label> <p class="form-text small">You will need this password if you want to remove yourself from the list of event attendees. If you provided your email, you'll receive it by email. Otherwise, write it down now because it will <strong>not be shown again</strong>.</p> |