diff options
author | Raphael Kabo <raphaelkabo@hey.com> | 2024-02-25 21:34:33 +0000 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@hey.com> | 2024-02-26 00:11:03 +0000 |
commit | b3c9cba6478dc16d135313aa6d0adcc02d67ece6 (patch) | |
tree | 508ef236dc805b950fedeeca7f8dd3559d66a162 /views/partials | |
parent | afd9fc4477fff90e5db917f350d99c3d01fba2bd (diff) |
feat: optional public events/groups
Diffstat (limited to 'views/partials')
-rwxr-xr-x | views/partials/eventForm.handlebars | 8 | ||||
-rw-r--r-- | views/partials/eventGroupForm.handlebars | 11 | ||||
-rwxr-xr-x | views/partials/sidebar.handlebars | 12 |
3 files changed, 27 insertions, 4 deletions
diff --git a/views/partials/eventForm.handlebars b/views/partials/eventForm.handlebars index c2eebc3..9227300 100755 --- a/views/partials/eventForm.handlebars +++ b/views/partials/eventForm.handlebars @@ -73,6 +73,14 @@ <div class="form-group"> <label>Options</label> <div > + {{#if showPublicEventList}} + <div class="form-check"> + <input class="form-check-input" type="checkbox" id="publicEventCheckbox" name="publicCheckbox" x-model="data.publicCheckbox"> + <label class="form-check-label" for="publicEventCheckbox"> + Display this event on the public event list + </label> + </div> + {{/if}} <div class="form-check"> <input class="form-check-input" type="checkbox" id="eventGroupCheckbox" name="eventGroupCheckbox" x-model="data.eventGroupCheckbox"> <label class="form-check-label" for="eventGroupCheckbox"> diff --git a/views/partials/eventGroupForm.handlebars b/views/partials/eventGroupForm.handlebars index 258c321..284343f 100644 --- a/views/partials/eventGroupForm.handlebars +++ b/views/partials/eventGroupForm.handlebars @@ -31,6 +31,17 @@ </div> <small class="form-text">Recommended dimensions (w x h): 920px by 300px.</small> </div> +{{#if showPublicEventList}} + <div class="form-group"> + <label>Options</label> + <div class="form-check"> + <input class="form-check-input" type="checkbox" id="publicGroupCheckbox" name="publicCheckbox" x-model="data.publicCheckbox"> + <label class="form-check-label" for="publicGroupCheckbox"> + Display this group on the public group list + </label> + </div> + </div> +{{/if}} <div class="form-group"> <div class="col-12"> <div diff --git a/views/partials/sidebar.handlebars b/views/partials/sidebar.handlebars index 5d8e847..1882aef 100755 --- a/views/partials/sidebar.handlebars +++ b/views/partials/sidebar.handlebars @@ -1,7 +1,11 @@ <div id="fixedContainer" class="pt-3"> - <h1><a href="/">gath<span class="text-muted">io</span></a></h1> + <h1 class="mb-4"><a href="/">gathio</a></h1> - <p class="lead text-center mb-4">Nicer events</p> - - <a class="btn btn-success mb-2 btn-block" href="/new"><i class="far fa-calendar-plus"></i> New</a> + <ul id="sidebar__nav"> + <li><a class="btn btn-success" href="/new"><i class="far fa-calendar-plus"></i> New</a></li> + {{#if showPublicEventList}} + <li><a href="/events">View events</a></li> + <li><a href="/about">About</a></li> + {{/if}} + </ul> </div> |