2014-08-04 15:49:40 +04:00
|
|
|
<header class="settings-content-header user-settings-header">
|
2014-06-23 17:50:30 +04:00
|
|
|
|
2014-07-06 19:56:29 +04:00
|
|
|
<h2 class="hidden">Your Profile</h2>
|
2014-06-23 17:50:30 +04:00
|
|
|
|
|
|
|
<div class="settings-header-inner">
|
2014-07-16 20:43:30 +04:00
|
|
|
{{#link-to 'settings' class='button-back button'}}Back{{/link-to}}
|
2014-07-06 19:56:29 +04:00
|
|
|
<section class="page-actions page-actions-alt">
|
2014-07-24 23:44:51 +04:00
|
|
|
{{#unless session.user.isAuthor}}
|
|
|
|
{{#link-to "settings.users" class="button has-icon users-back" tagName="button"}}<i class="icon-chevron-left"></i>Users{{/link-to}}
|
|
|
|
{{/unless}}
|
2014-07-06 19:56:29 +04:00
|
|
|
</section>
|
2014-06-23 17:50:30 +04:00
|
|
|
|
|
|
|
<section class="page-actions">
|
2014-07-13 08:01:26 +04:00
|
|
|
|
2014-07-31 11:23:42 +04:00
|
|
|
{{#if view.userActionsAreVisible}}
|
|
|
|
{{#gh-popover-button popoverName="user-actions-menu" tagName="a" classNames="button only-has-icon user-actions-cog" title="User Actions"}}
|
|
|
|
<i class="icon-settings"></i>
|
|
|
|
<span class="hidden">User Settings</span>
|
|
|
|
{{/gh-popover-button}}
|
|
|
|
{{#gh-popover name="user-actions-menu" classNames="user-actions-menu menu-drop-right"}}
|
2014-08-01 20:28:12 +04:00
|
|
|
{{render "user-actions-menu" model}}
|
2014-07-31 11:23:42 +04:00
|
|
|
{{/gh-popover}}
|
|
|
|
{{/if}}
|
2014-06-23 17:50:30 +04:00
|
|
|
|
|
|
|
<button class="button-save" {{action "save"}}>Save</button>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
|
2014-03-10 07:44:08 +04:00
|
|
|
</header>
|
|
|
|
|
2014-07-13 21:03:48 +04:00
|
|
|
<section class="content settings-user no-padding">
|
2014-03-10 07:44:08 +04:00
|
|
|
|
|
|
|
<header class="user-profile-header">
|
2014-03-23 06:31:45 +04:00
|
|
|
<img id="user-cover" class="cover-image" {{bind-attr src=cover title=coverTitle}} />
|
2014-07-22 07:27:28 +04:00
|
|
|
<button type="button" class="edit-cover-image js-modal-cover button" {{action "openModal" "upload" user "cover"}}>Change Cover</button>
|
2014-03-10 07:44:08 +04:00
|
|
|
</header>
|
|
|
|
|
2014-07-16 20:43:30 +04:00
|
|
|
<form class="user-profile" novalidate="novalidate" autocomplete="off">
|
2014-03-10 07:44:08 +04:00
|
|
|
|
2014-07-30 17:13:48 +04:00
|
|
|
{{!-- Horrible hack to prevent Chrome from incorrectly auto-filling inputs --}}
|
|
|
|
<input style="display:none;" type="text" name="fakeusernameremembered"/>
|
|
|
|
<input style="display:none;" type="password" name="fakepasswordremembered"/>
|
|
|
|
|
2014-03-10 07:44:08 +04:00
|
|
|
<fieldset class="user-details-top">
|
|
|
|
|
|
|
|
<figure class="user-image">
|
2014-06-02 00:29:25 +04:00
|
|
|
<div id="user-image" class="img" {{bind-attr style=image}} href="#"><span class="hidden">{{name}}"s Picture</span></div>
|
2014-07-22 07:27:28 +04:00
|
|
|
<button type="button" {{action "openModal" "upload" user "image"}} class="edit-user-image js-modal-image">Edit Picture</button>
|
2014-03-10 07:44:08 +04:00
|
|
|
</figure>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2014-06-23 17:50:30 +04:00
|
|
|
<label for="user-name">Full Name</label>
|
|
|
|
{{input value=user.name id="user-name" class="user-name" placeholder="Full Name" autocorrect="off"}}
|
2014-03-10 07:44:08 +04:00
|
|
|
<p>Use your real name so people can recognise you</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class="user-details-bottom">
|
|
|
|
|
2014-07-31 08:25:42 +04:00
|
|
|
<div class="form-group">
|
2014-06-23 17:50:30 +04:00
|
|
|
<label for="user-slug">Slug</label>
|
2014-07-31 08:25:42 +04:00
|
|
|
{{!-- {{input value=user.slug id="user-slug" placeholder="Slug" autocorrect="off"}} --}}
|
2014-08-11 14:13:21 +04:00
|
|
|
{{gh-blur-input class="user-name" id="user-slug" value=user.slug name="user" action="updateSlug" placeholder="Slug" selectOnClick="true" autocorrect="off"}}
|
|
|
|
<p>{{gh-blog-url}}/author/{{user.slug}}</p>
|
2014-07-31 08:25:42 +04:00
|
|
|
</div>
|
2014-06-23 17:50:30 +04:00
|
|
|
|
2014-03-10 07:44:08 +04:00
|
|
|
<div class="form-group">
|
2014-06-14 08:32:13 +04:00
|
|
|
<label for="user-email">Email</label>
|
2014-07-16 20:43:30 +04:00
|
|
|
{{input type="email" value=user.email id="user-email" placeholder="Email Address" autocapitalize="off" autocorrect="off" autocomplete="off"}}
|
2014-03-10 07:44:08 +04:00
|
|
|
<p>Used for notifications</p>
|
|
|
|
</div>
|
2014-07-30 04:11:02 +04:00
|
|
|
{{#if view.rolesDropdownIsVisible}}
|
|
|
|
<div class="form-group">
|
2014-06-23 17:50:30 +04:00
|
|
|
<label for="user-role">Role</label>
|
2014-07-30 04:11:02 +04:00
|
|
|
{{gh-role-selector
|
|
|
|
initialValue=role
|
|
|
|
onChange="changeRole"
|
|
|
|
selectId="user-role"}}
|
2014-06-23 17:50:30 +04:00
|
|
|
<p>What permissions should this user have?</p>
|
2014-07-30 04:11:02 +04:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2014-03-10 07:44:08 +04:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-location">Location</label>
|
2014-03-23 06:31:45 +04:00
|
|
|
{{input type="text" value=user.location id="user-location"}}
|
2014-03-10 07:44:08 +04:00
|
|
|
<p>Where in the world do you live?</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-website">Website</label>
|
2014-07-16 20:43:30 +04:00
|
|
|
{{input type="url" value=user.website id="user-website" autocapitalize="off" autocorrect="off" autocomplete="off"}}
|
2014-03-10 07:44:08 +04:00
|
|
|
<p>Have a website or blog other than this one? Link it!</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group bio-container">
|
|
|
|
<label for="user-bio">Bio</label>
|
2014-03-23 06:31:45 +04:00
|
|
|
{{textarea id="user-bio" value=user.bio}}
|
2014-03-10 07:44:08 +04:00
|
|
|
<p>
|
|
|
|
Write about you, in 200 characters or less.
|
2014-06-24 00:02:09 +04:00
|
|
|
{{gh-count-characters user.bio}}
|
2014-03-10 07:44:08 +04:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-password-old">Old Password</label>
|
2014-07-13 08:01:26 +04:00
|
|
|
{{input value=user.password type="password" id="user-password-old"}}
|
2014-03-10 07:44:08 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-password-new">New Password</label>
|
2014-07-13 08:01:26 +04:00
|
|
|
{{input value=user.newPassword type="password" id="user-password-new"}}
|
2014-03-10 07:44:08 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-new-password-verification">Verify Password</label>
|
2014-07-13 08:01:26 +04:00
|
|
|
{{input value=user.ne2Password type="password" id="user-new-password-verification"}}
|
2014-03-10 07:44:08 +04:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2014-06-02 00:29:25 +04:00
|
|
|
<button type="button" class="button-delete button-change-password" {{action "password"}}>Change Password</button>
|
2014-03-10 07:44:08 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</section>
|