2016-08-04 04:42:46 +02:00
|
|
|
<form ng-submit="updateAccount()" class="pfm-form account-settings-form thin">
|
|
|
|
<div layout="row" class="button-bar">
|
|
|
|
<md-button class="md-raised md-primary" type="submit" ng-class="{disabled: !isDirty || isSaving, 'btn-primary': isDirty}">
|
|
|
|
Save Changes
|
|
|
|
</button>
|
|
|
|
</div>
|
2016-06-06 05:05:51 +02:00
|
|
|
|
2016-08-04 04:42:46 +02:00
|
|
|
<div layout="row" layout-xs="column">
|
|
|
|
<md-input-container flex-gt-sm>
|
|
|
|
<label>Display Name</label>
|
|
|
|
<input type="text" ng-disabled="isSaving" ng-change="touchModel()" id="display_name" ng-model="settings.display_name" />
|
|
|
|
</md-input-container>
|
2016-06-06 05:05:51 +02:00
|
|
|
|
2016-08-04 04:42:46 +02:00
|
|
|
<md-input-container flex-gt-sm>
|
|
|
|
<label>Profile URL</label>
|
|
|
|
<input type="text" ng-disabled="isSaving" ng-change="touchModel()" id="slug" ng-model="settings.slug" />
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
2016-06-06 05:05:51 +02:00
|
|
|
|
2016-08-04 04:42:46 +02:00
|
|
|
<div layout="row" layout-xs="column">
|
|
|
|
<md-input-container class="md-block" flex-gt-sm>
|
|
|
|
<label>Bio</label>
|
|
|
|
<textarea id="bio" ng-model="settings.bio" ng-disabled="isLoading" ng-change="touchModel()"></textarea>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
2016-06-06 05:05:51 +02:00
|
|
|
|
2016-08-04 04:42:46 +02:00
|
|
|
<div layout="row" layout-xs="column">
|
|
|
|
<md-input-container flex-gt-sm>
|
|
|
|
<md-checkbox ng-disabled="isLoading" ng-model="settings.can_see_explicit_content"> Can See Explicit Content</md-checkbox>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div layout="row" layout-xs="column">
|
|
|
|
<md-input-container flex-gt-sm>
|
|
|
|
<md-checkbox ng-change="touchModel()" ng-disabled="isLoading" id="uses_gravatar" type="checkbox" ng-model="settings.uses_gravatar">Use Gravatar</md-checkbox>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<div layout="row" layout-xs="column" ng-show="settings.uses_gravatar">
|
|
|
|
<md-input-container flex-gt-sm>
|
|
|
|
<label>Gravatar email</label>
|
|
|
|
<input type="text" ng-disabled="isSaving" ng-model="settings.gravatar" />
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<div layout="row" layout-xs="column" ng-show="!settings.uses_gravatar">
|
|
|
|
<md-input-container flex-gt-sm>
|
|
|
|
<pfm-image-upload set-image="setAvatar" image="settings.avatar_url" user-id="settings.id"></pfm-image-upload>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
2013-08-31 03:46:35 +02:00
|
|
|
</form>
|