2018-11-06 09:28:50 +00:00
|
|
|
component SettingsInfo(user *arn.User)
|
|
|
|
SettingsTabs
|
|
|
|
|
|
|
|
h1.page-title Info settings
|
|
|
|
|
|
|
|
.settings
|
|
|
|
.widget.mountable(data-api="/api/user/" + user.ID)
|
|
|
|
h3.widget-title
|
2018-11-06 10:57:26 +00:00
|
|
|
Icon("info-circle")
|
2018-11-06 09:28:50 +00:00
|
|
|
span Info
|
|
|
|
|
|
|
|
InputSelection("Gender", user.Gender, "Gender", "Your gender", arn.DataLists["genders"])
|
2019-08-31 07:52:42 +00:00
|
|
|
InputText("BirthDay", user.BirthDay, "Birthday", "YYYY-MM-DD", len("YYYY-MM-DD"))
|
|
|
|
InputText("Website", user.Website, "Website", "Your homepage", 100)
|
2018-11-06 09:28:50 +00:00
|
|
|
|
|
|
|
.widget.mountable(data-api="/api/settings/" + user.ID)
|
|
|
|
h3.widget-title
|
|
|
|
Icon("user-secret")
|
|
|
|
span Privacy
|
|
|
|
|
|
|
|
InputBool("Privacy.ShowGender", user.Settings().Privacy.ShowGender, "Show gender", "Shows your gender on the profile page")
|
|
|
|
InputBool("Privacy.ShowAge", user.Settings().Privacy.ShowAge, "Show age", "Shows your age on the profile page")
|
|
|
|
InputBool("Privacy.ShowLocation", user.Settings().Privacy.ShowLocation, "Show location", "Shows your location on the profile page")
|
|
|
|
|
|
|
|
.footer
|
|
|
|
p Can only be made visible to logged in members.
|
|
|
|
|