diff --git a/internal/templates/create_survey.templ b/internal/templates/create_survey.templ index c058594..d6cfa1c 100644 --- a/internal/templates/create_survey.templ +++ b/internal/templates/create_survey.templ @@ -60,7 +60,7 @@ templ CreateSurvey(user *oauth.User, profile *oauth.Profile, posthogKey string,
diff --git a/internal/templates/my_data.templ b/internal/templates/my_data.templ index 0be0c9c..5a7818e 100644 --- a/internal/templates/my_data.templ +++ b/internal/templates/my_data.templ @@ -59,7 +59,7 @@ templ MyDataCollectionPage(user *oauth.User, profile *oauth.Profile, collection - + RKey Record @@ -70,7 +70,7 @@ templ MyDataCollectionPage(user *oauth.User, profile *oauth.Profile, collection for _, record := range records { - + { record.RKey } diff --git a/internal/templates/share.templ b/internal/templates/share.templ index 88dc1a0..d58cb3c 100644 --- a/internal/templates/share.templ +++ b/internal/templates/share.templ @@ -15,12 +15,13 @@ templ ShareLinks(survey *models.Survey) { - + Link if survey.URI != nil && *survey.URI != "" { - + ATProto URI (for Bluesky apps) for i, question := range survey.Definition.Questions { - - { fmt.Sprintf("%d. %s", i+1, question.Text) } - if question.Required { - * - } - + if question.Type == models.QuestionTypeText { + + { fmt.Sprintf("%d. %s", i+1, question.Text) } + if question.Required { + * + } + + } else { + + { fmt.Sprintf("%d. %s", i+1, question.Text) } + if question.Required { + * + } + + } if question.Type == models.QuestionTypeSingle { for _, option := range question.Options { - + - +
{ record.RKey }
+ { fmt.Sprintf("%d. %s", i+1, question.Text) } + if question.Required { + * + } +