Skip to content

Commit 0a939c4

Browse files
committed
members: refine signup survey UI
1 parent e9999cd commit 0a939c4

4 files changed

Lines changed: 108 additions & 99 deletions

File tree

modules/admin/member.templ

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,12 @@ templ renderSingleMember(tabs []*navbarTab, member *member, events []*memberEven
213213
<input type="checkbox" class="form-check-input" id="bill_annually" name="bill_annually" checked?={ member.BillAnnually }/>
214214
<label class="form-check-label" for="bill_annually" style="margin-left: 5px;">Bill Annually</label>
215215
</div>
216-
<div class="form-floating mb-2">
217-
<input type="text" class="form-control" id="heard_about" name="heard_about" value={ member.HeardAbout } placeholder="How they heard about us"/>
218-
<label for="heard_about">Heard About Makerspace</label>
219-
</div>
216+
if member.HeardAbout != "" {
217+
<div class="form-floating mb-2">
218+
<input type="text" class="form-control" id="heard_about" name="heard_about" value={ member.HeardAbout } placeholder="How they heard about us"/>
219+
<label for="heard_about">Heard About Makerspace</label>
220+
</div>
221+
}
220222
<div class="form-floating mb-2">
221223
<textarea class="form-control" id="admin_notes" name="admin_notes" style="height: 100px">{ member.AdminNotes }</textarea>
222224
<label for="admin_notes" class="form-label">Admin Notes</label>

0 commit comments

Comments
 (0)