-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a yahrzeit calendar search by email feature
- Loading branch information
Showing
7 changed files
with
144 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,17 @@ calendar feed to Apple, Google, Outlook, and more.</p> | |
<li><a href="/yahrzeit/edit/<%=cal.id%>"><%=cal.title%></a> | ||
<% }); -%> | ||
</ol> | ||
<p class="lead">Or, search for an existing calendar by email address</p> | ||
<form action="/yahrzeit/search" method="post" class="row row-cols-lg-auto g-3 align-items-center mb-3"> | ||
<div class="col"> | ||
<label class="visually-hidden" for="em">Email address</label> | ||
<input class="form-control" type="email" name="em" id="em" placeholder="[email protected]" value="" required> | ||
</div> | ||
<div class="col"> | ||
<button type="submit" class="btn btn-primary">Search</button> | ||
</div> | ||
</form> | ||
|
||
<p class="lead">Or, create a new personal calendar</p> | ||
<p><a class="btn btn-primary" href="/yahrzeit/new">New calendar »</a></p> | ||
<p>Yahrzeit refers to the anniversary, according to the Hebrew calendar, of the | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<%- await include('partials/header-and-navbar.ejs', { | ||
title: 'Yahrzeit + Anniversary Calendar Subscription Search - Hebcal', | ||
}) -%> | ||
<div class="row mt-2"> | ||
<div class="col"> | ||
<div class="float-start"> | ||
<svg width="64" height="64" class="me-3 mb-2"><use xlink:href="<%=cspriteHref%>#couple"></use></svg> | ||
</div> | ||
<p class="clearfix lead">Search for an existing Yahrzeit + Anniversary Calendar by email address.</p> | ||
<div class="alert alert-success" role="alert"> | ||
<svg class="icon me-2"><use xlink:href="<%=spriteHref%>#bs-check-large"></use></svg> | ||
<strong>Success!</strong> An email message has been sent to | ||
<strong><%= q.em %></strong> containing <%= results.length %> personal calendar link(s). | ||
<br>Click the link(s) within that message to view your personal calendars. | ||
</div><!-- .alert --> | ||
</div><!-- .col --> | ||
</div><!-- .row --> | ||
<%- await include('partials/footer.ejs') -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<%- await include('partials/header-and-navbar.ejs', { | ||
title: 'Yahrzeit + Anniversary Calendar Subscription Search - Hebcal', | ||
}) -%> | ||
<div class="row mt-2"> | ||
<div class="col"> | ||
<div class="float-start"> | ||
<svg width="64" height="64" class="me-3 mb-2"><use xlink:href="<%=cspriteHref%>#couple"></use></svg> | ||
</div> | ||
<p class="clearfix lead">Search for an existing Yahrzeit + Anniversary Calendar by email address.</p> | ||
<div class="alert alert-warning" role="alert"> | ||
Sorry, the email address <strong><%= q.em %></strong> is not | ||
subscribed to Yahrzeit + Anniversary Calendar annual email reminders. | ||
</div><!-- .alert --> | ||
<p class="mt-3">Try searching again for a different email address</p> | ||
<form action="/yahrzeit/search" method="post" class="row row-cols-lg-auto g-3 align-items-center mb-3"> | ||
<div class="col"> | ||
<label class="visually-hidden" for="em">Email address</label> | ||
<input class="form-control" type="email" name="em" id="em" placeholder="[email protected]" value="" required> | ||
</div> | ||
<div class="col"> | ||
<button type="submit" class="btn btn-primary">Search</button> | ||
</div> | ||
</form> | ||
</div><!-- .col --> | ||
</div><!-- .row --> | ||
<%- await include('partials/footer.ejs') -%> |