2013-08-31 03:46:35 +02:00
< form ng-submit = "updateAccount()" class = "pfm-form account-settings-form" >
2015-10-25 03:35:37 +01:00
< ul class = "toolbar" >
< li >
2016-05-20 01:08:57 +02:00
< button type = "submit" class = "btn btn-default" ng-class = "{disabled: !isDirty || isSaving, 'btn-primary': isDirty}" >
2015-10-25 03:35:37 +01:00
Save Changes
2016-05-20 17:46:44 +02:00
< i ng-show = "isSaving" class = "fa fa-cog fa-spin fa-lg" > < / i >
2015-10-25 03:35:37 +01:00
< / button >
< / li >
< / ul >
2016-12-25 03:11:42 +01:00
< div class = "stretch-to-bottom row" >
< div class = "col-md-4" >
< div class = "form-row" ng-class = "{'has-error': errors.display_name != null}" >
< label class = "strong" for = "display_name" > Display Name< / label >
< input type = "text" ng-disabled = "isSaving" ng-change = "touchModel()" placeholder = "Display Name" id = "display_name" ng-model = "settings.display_name" / >
< div class = "error" > {{errors.display_name}}< / div >
< / div >
2016-06-06 05:05:51 +02:00
2016-12-25 03:11:42 +01:00
< div class = "form-row" ng-class = "{'has-error': errors.slug != null}" >
< label class = "strong" for = "slug" > Slug (your profile URL: https://pony.fm/{{settings.slug}})< / label >
< input type = "text" ng-disabled = "isSaving" ng-change = "touchModel()" placeholder = "slug" id = "slug" ng-model = "settings.slug" / >
< div class = "error" > {{errors.slug}}< / div >
< / div >
2016-06-06 05:05:51 +02:00
2016-12-25 03:11:42 +01:00
< div class = "form-row" >
< label for = "can_see_explicit_content" class = "strong" > < input ng-change = "touchModel()" ng-disabled = "isLoading" id = "can_see_explicit_content" type = "checkbox" ng-model = "settings.can_see_explicit_content" / > Can See Explicit Content< / label >
< / div >
2016-06-06 05:05:51 +02:00
2016-12-25 03:11:42 +01:00
< div class = "form-row" ng-class = "{'has-error': errors.bio != null}" >
< label class = "strong" for = "bio" > Bio< / label >
< textarea id = "bio" placeholder = "bio (optional)" ng-model = "settings.bio" ng-disabled = "isLoading" ng-change = "touchModel()" > < / textarea >
< div class = "error" > {{errors.description}}< / div >
< / div >
2016-06-06 05:05:51 +02:00
2016-12-25 03:11:42 +01:00
< div class = "form-row" ng-class = "{'has-error': errors.avatar != null || errors.gravatar != null}" >
< label for = "uses_gravatar" class = "strong" >
< input ng-change = "touchModel()" ng-disabled = "isLoading" id = "uses_gravatar" type = "checkbox" ng-model = "settings.uses_gravatar" / > Use Gravatar
< / label >
< div ng-show = "!settings.uses_gravatar" >
< pfm-image-upload set-image = "setAvatar" image = "settings.avatar_url" user-id = "settings.id" > < / pfm-image-upload >
< / div >
< input type = "text" ng-disabled = "isSaving" ng-change = "touchModel()" ng-show = "settings.uses_gravatar" placeholder = "Gravatar Email" ng-model = "settings.gravatar" / >
< div class = "error" ng-show = "errors.avatar != null" > {{errors.avatar}}< / div >
< div class = "error" ng-show = "errors.gravatar != null" > {{errors.gravatar}}< / div >
2015-10-25 03:35:37 +01:00
< / div >
< / div >
2016-12-30 20:22:44 +01:00
< div class = "col-md-8" >
2016-12-28 16:07:28 +01:00
< div class = "alert alert-warning" ng-if = "unsubscribeMessage" >
< p > {{ ::unsubscribeMessage }}< / p >
< / div >
2016-12-25 03:11:42 +01:00
< h3 > Notification settings< / h3 >
< p > On-site notifications are always on. That way, you can always see
what you' ve missed whenever you log on to Pony.fm!< / p >
2016-12-30 20:22:44 +01:00
< p > Email notifications will be sent to < strong > {{ ::settings.notification_email }}< / strong > .
You can change this address in your < a href = "https://poniverse.net/account" target = "_blank" > Poniverse account settings< / a > .< / p >
2016-12-25 03:11:42 +01:00
< table class = "table table-hover" >
< thead >
2016-12-30 20:22:44 +01:00
< th > When… < / th >
2016-12-25 03:11:42 +01:00
< th > Email me!< / th >
< th > Give me a push notification!< / th >
< / thead >
< tr ng-repeat = "notification in ::settings.notifications track by notification.activity_type" >
2016-12-30 20:22:44 +01:00
< td > < label > … {{ ::notification.description }}:< / label > < / td >
< td > < input title = "Email me when {{ ::notification.description }}" type = "checkbox" ng-change = "touchModel()" ng-model = "notification.receive_emails" / > < / td >
2016-12-25 03:11:42 +01:00
< td > Coming soon!< / td >
< / tr >
< / table >
< / div >
< / div >
2013-08-31 03:46:35 +02:00
< / form >