summaryrefslogtreecommitdiff
path: root/views/partials/eventForm.handlebars
diff options
context:
space:
mode:
Diffstat (limited to 'views/partials/eventForm.handlebars')
-rwxr-xr-xviews/partials/eventForm.handlebars8
1 files changed, 6 insertions, 2 deletions
diff --git a/views/partials/eventForm.handlebars b/views/partials/eventForm.handlebars
index 852a3a3..97e25af 100755
--- a/views/partials/eventForm.handlebars
+++ b/views/partials/eventForm.handlebars
@@ -95,8 +95,12 @@
</select>
</div>
<a class="card shadow-sm card--group-preview mb-3" x-show="showGroupPreview()" x-bind:href="groupPreview().url" target="_blank">
- <img :src="'/events/' + groupPreview().image" x-show="groupPreview().image"/>
- <img src="/images/seigaiha-single.png" x-show="!groupPreview().image"/>
+ <template x-if="groupPreview().image">
+ <img :src="'/events/' + groupPreview().image"/>
+ </template>
+ <template x-if="!groupPreview().image">
+ <img src="/images/seigaiha-single.png"/>
+ </template>
<div class="card--group-preview__text">
<strong x-text="groupPreview().name"></strong>
<p x-text="groupPreview().description"></p>