website/pkg/config/enum.go
Noah e42cebe4b8 Contact Us, Feedback, and Reporting
* Add the Contact page where users can contact the site admins for feedback or
  to report a problematic user, photo or message.
* Reports go into the admin Feedback table.
* Admin nav bar indicates number of unread feedbacks.
* Add "Report" button to profile pages, photo cards, and the top of Direct
  Message threads.

Misc changes:

* Send emails out asynchronously for more responsive page loads.
2022-08-21 14:05:08 -07:00

101 lines
1.8 KiB
Go

package config
// Various hard-coded enums such as choice of gender, sexuality, relationship status etc.
var (
MaritalStatus = []string{
"Single",
"Married",
"In a relationship",
"It's complicated",
"Divorced",
"Widowed",
"Widower",
}
RelationshipType = []string{
"Monogamous",
"Open",
}
Gender = []string{
"Man",
"Woman",
"Non-binary",
"Trans",
"Trans (FTM)",
"Trans (MTF)",
"Other",
}
Orientation = []string{
"Straight",
"Gay",
"Bisexual",
"Bicurious",
}
HereFor = []string{
"Dating",
"Relationship",
"Platonic friends",
"Networking",
"Casual acquaintances",
}
// Enums all wrapped up for template use.
ProfileEnums = map[string][]string{
"MaritalStatus": MaritalStatus,
"RelationshipType": RelationshipType,
"Gender": Gender,
"Orientation": Orientation,
"HereFor": HereFor,
}
// Input field names for profile fields.
ProfileFields = []string{
"gender",
"pronouns",
"city",
"job",
"orientation",
"marital_status",
"relationship_type",
"about_me",
"interests",
"music_movies",
}
// Choices for the Contact Us subject
ContactUsChoices = []ContactUs{
{
Header: "Website Feedback",
Options: []Option{
{"feedback", "Website feedback"},
{"feature", "Make a feature request"},
{"bug", "Report a bug or broken feature"},
{"other", "General/miscellaneous/other"},
},
},
{
Header: "Report a Problem",
Options: []Option{
{"report.user", "Report a problematic user"},
{"report.photo", "Report a problematic photo"},
{"report.message", "Report a direct message conversation"},
},
},
}
)
// ContactUs choices for the subject drop-down.
type ContactUs struct {
Header string
Options []Option
}
// Option for select boxes.
type Option struct {
Value string
Label string
}