Refresh Git cache and apply .gitignore

This commit is contained in:
Mann Patel
2025-08-29 23:39:09 -06:00
parent 182be31cd1
commit 044580f02a
12 changed files with 16 additions and 11 deletions

View File

@@ -93,10 +93,11 @@ func PollHandler(w http.ResponseWriter, r *http.Request) {
// Parse boolean values
var question1VotedBefore *bool
if val := r.FormValue("question1_voted_before"); val != "" {
if val == "true" {
switch val {
case "true":
b := true
question1VotedBefore = &b
} else if val == "false" {
case "false":
b := false
question1VotedBefore = &b
}
@@ -104,10 +105,11 @@ func PollHandler(w http.ResponseWriter, r *http.Request) {
var question2VoteAgain *bool
if val := r.FormValue("question2_vote_again"); val != "" {
if val == "true" {
switch val {
case "true":
b := true
question2VoteAgain = &b
} else if val == "false" {
case "false":
b := false
question2VoteAgain = &b
}

View File

@@ -54,21 +54,23 @@
<!-- Form Body -->
<div class="flex-1 p-6 overflow-y-auto pb-6">
<form id="poll-form" method="POST" class="space-y-6">
<input type="hidden" name="poll_id" value="12345" />
<input type="hidden" name="poll_id" value="{{.PollID}}" />
<!-- Postal Code -->
<div>
<label
class="block text-sm font-medium text-gray-700 mb-2"
>
Respondent Postal Code *
Postal Code *
</label>
<input
type="text"
name="postal_code"
placeholder="T2P 1J9"
class="professional-input w-full px-3 py-2 border border-gray-300 bg-white text-gray-900 placeholder-gray-500 transition-all"
placeholder="T2P1J9 (no space)"
class="professional-input w-full px-3 py-2 border border-gray-300 bg-white text-gray-900 placeholder-gray-500 transition-all uppercase"
maxlength="6"
required
oninput="this.value = this.value.toUpperCase().replace(/\s+/g, '')"
/>
</div>