diff --git a/service/user/form/form_validator.go b/service/user/form/form_validator.go index 63f85917..afdfe00d 100644 --- a/service/user/form/form_validator.go +++ b/service/user/form/form_validator.go @@ -67,6 +67,7 @@ type UserForm struct { Password string `form:"password" len_min:"6" len_max:"72" equalInput:"ConfirmPassword"` ConfirmPassword string `form:"password_confirmation" omit:"true"` Status int `form:"status" default:"0"` + Theme string `form:"theme"` } // UserSettingsForm is used when updating a user. diff --git a/templates/_profile_edit.html b/templates/_profile_edit.html index 5c4536e0..0705befb 100644 --- a/templates/_profile_edit.html +++ b/templates/_profile_edit.html @@ -45,6 +45,16 @@

{{ . }}

{{end}}

{{ call $.T "preferences"}}

+
+
+ {{ range (index $.FormErrors "theme")}} +

{{ . }}

+ {{end}} {{ with .Settings }} {{ if DefaultUserSettings "new_torrent"}}
diff --git a/templates/public_settings.html b/templates/public_settings.html index 8aba19d4..cf275711 100644 --- a/templates/public_settings.html +++ b/templates/public_settings.html @@ -13,10 +13,10 @@

{{call $.T "theme"}}