diff options
author | Raphael Kabo <raphaelkabo@gmail.com> | 2022-01-14 18:16:12 +0000 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@gmail.com> | 2022-01-14 18:16:12 +0000 |
commit | 3c7ae7c4075b5adb1fa3030985a915388bc8700a (patch) | |
tree | 3d3e5b53c8b3c8182c31577abdef4400ba4b8033 | |
parent | a1afa2a3f63b0ad8ec00580739f33a468a8b9cd1 (diff) |
Remove unused code
-rwxr-xr-x | views/newevent.handlebars | 42 |
1 files changed, 6 insertions, 36 deletions
diff --git a/views/newevent.handlebars b/views/newevent.handlebars index dccfbcc..9d10f2d 100755 --- a/views/newevent.handlebars +++ b/views/newevent.handlebars @@ -1,31 +1,8 @@ -{{#if isPublic}} - <h2>New public event</h2> - <hr> - <div class="alert alert-info mb-4 text-center" role="alert"> - <i class="fas fa-exclamation-circle"></i> A public event is visible to anyone who knows the link. - </div> -{{else if isPrivate}} - <h2>New private event</h2> - <hr> - <p>A private event is only visible to those who know the <strong>event password</strong>.</p> - <hr> -{{else if isOrganisation}} - <h2>New organisation event</h2> - <p>An organisation event is linked to an existing <strong>organisation</strong>. It can be made public, in which case it is visible to anyone who has the link, or private, in which case it is only visible to those who know the <strong>event password</strong>. </p> - <hr> -{{else if isUnknownType}} - <h2>New event</h2> - <hr> - <div class="alert alert-warning" role="alert"> - Event creation error: unknown event type. Please select an event type from the sidebar. - </div> -{{else}} - <h2>New event</h2> - <hr> - <div class="alert alert-warning" role="alert"> - Event creation error: unknown event type. Please select an event type from the sidebar. - </div> -{{/if}} +<h2>New event</h2> +<hr> +<div class="alert alert-info mb-4 text-center" role="alert"> + <i class="fas fa-exclamation-circle"></i> Events are visible to anyone who knows the link. +</div> {{#each errors}} @@ -47,14 +24,7 @@ </div> <div id="newEventFormContainer"> - {{#if isPublic}} - {{>neweventform}} - {{else if isPrivate}} - {{>neweventform}} - {{else if isOrganisation}} - {{>neweventform}} - {{else}} - {{/if}} + {{>neweventform}} </div> <div id="importEventFormContainer"> |