Refresh Git cache and apply .gitignore
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user