-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
e460cdb
commit 6e43e11
Showing
136 changed files
with
317 additions
and
310 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ | |
node_modules | ||
_site | ||
.env | ||
|
||
# Local Netlify folder | ||
.netlify |
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
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,58 @@ | ||
{% if previewMode %} | ||
{% extends 'layouts/preview.njk' %} | ||
{% else %} | ||
{% extends 'layouts/base.njk' %} | ||
{% endif %} | ||
|
||
{% set pageTitle = page.title %} | ||
|
||
{% block content %} | ||
<article class="event-page"> | ||
<h1>{{ title | safe }}</h1> | ||
{% if coverImageUrl %} | ||
<img class="event-cover-image" src="{{ coverImageUrl | safe }}" alt="{{ coverImageAltText }}"> | ||
{% endif %} | ||
|
||
<div class="description">{{ content | safe }}</div> | ||
|
||
<form id="comment-form"> | ||
<h3>Comments</h3> | ||
<div class="form-field"> | ||
<span>*</span><p class="asterisk-def"> Indicates required field</p> | ||
</div> | ||
|
||
<div class="form-field"> | ||
<span>*</span><h4><label for="name">Name</label></h4><span class="required-name">Required</span> | ||
<input id="name" type="text" name="name" placeholder="" aria-label="Enter your name"> | ||
</div> | ||
|
||
<div class="form-field"> | ||
<span>*</span><h4><label for="comment">Post a comment or question</label></h4><span class="required-comment">Required</span> | ||
<textarea id="comment" name="comment" placeholder="" aria-label="Enter your comment"></textarea> | ||
<input type="hidden" name="initiativeId" id="initiativeId" value="{{ id }}"> | ||
<button id="post-comment" type="submit">Post a comment</button> | ||
</div> | ||
</form> | ||
|
||
<div class="submit-success-message" role="status"> | ||
<span>Thank you for submitting your comment. It will be posted on the page once it is approved</span> | ||
</div> | ||
|
||
<div class="submit-failure-message" role="alert"> | ||
<span>There was an error submitting your comment. Please try again</span> | ||
</div> | ||
|
||
<div class="comments"> | ||
{% for comment in collections.comments %} | ||
{% if comment.initiativeId === id %} | ||
{% include 'components/comment.njk' %} | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</article> | ||
{% endblock %} | ||
|
||
{% block footerScripts %} | ||
<script src="/assets/scripts/utils.js"></script> | ||
<script src="/assets/scripts/event-comments.js"></script> | ||
{% endblock %} |
Oops, something went wrong.