2015-01-28 19:43:55 +03:00
|
|
|
<header class="settings-subview-header clearfix">
|
2014-08-16 20:40:35 +04:00
|
|
|
{{#unless session.user.isAuthor}}
|
2014-09-03 01:24:01 +04:00
|
|
|
{{#link-to "settings.users" class="btn btn-default btn-back" tagName="button"}}<i class="icon-chevron-left"></i>Users{{/link-to}}
|
2014-08-16 20:40:35 +04:00
|
|
|
{{/unless}}
|
|
|
|
<h2 class="page-title">{{user.name}}</h2>
|
|
|
|
<section class="page-actions">
|
|
|
|
{{#if view.userActionsAreVisible}}
|
|
|
|
<span class="dropdown">
|
2014-09-28 19:39:25 +04:00
|
|
|
{{#gh-dropdown-button dropdownName="user-actions-menu" classNames="btn btn-default only-has-icon user-actions-cog" title="User Actions"}}
|
2014-08-16 20:40:35 +04:00
|
|
|
<i class="icon-settings"></i>
|
|
|
|
<span class="hidden">User Settings</span>
|
2014-09-28 19:39:25 +04:00
|
|
|
{{/gh-dropdown-button}}
|
|
|
|
{{#gh-dropdown name="user-actions-menu" tagName="ul" classNames="user-actions-menu dropdown-menu dropdown-triangle-top-right"}}
|
2014-09-03 01:24:01 +04:00
|
|
|
{{partial "user-actions-menu"}}
|
2014-09-28 19:39:25 +04:00
|
|
|
{{/gh-dropdown}}
|
2014-08-16 20:40:35 +04:00
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<button class="btn btn-blue" {{action "save"}}>Save</button>
|
|
|
|
</section>
|
2014-03-10 07:44:08 +04:00
|
|
|
</header>
|
|
|
|
|
2014-09-26 15:56:14 +04:00
|
|
|
<div class="content settings-user">
|
|
|
|
|
2015-04-01 19:01:38 +03:00
|
|
|
<figure class="user-cover" style={{coverImageBackground}}>
|
2014-09-26 15:56:14 +04:00
|
|
|
<button class="btn btn-default user-cover-edit js-modal-cover" {{action "openModal" "upload" user "cover"}}>Change Cover</button>
|
|
|
|
</figure>
|
|
|
|
|
|
|
|
<form class="user-profile" novalidate="novalidate" autocomplete="off">
|
|
|
|
|
|
|
|
{{!-- 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"/>
|
|
|
|
|
|
|
|
<fieldset class="user-details-top">
|
|
|
|
|
|
|
|
<figure class="user-image">
|
2015-04-01 19:01:38 +03:00
|
|
|
<div id="user-image" class="img" style={{userImageBackground}}><span class="hidden">{{user.name}}"s Picture</span></div>
|
2014-09-26 15:56:14 +04:00
|
|
|
<button type="button" {{action "openModal" "upload" user "image"}} class="edit-user-image js-modal-image">Edit Picture</button>
|
|
|
|
</figure>
|
|
|
|
|
2014-11-22 04:06:18 +03:00
|
|
|
<div class="form-group first-form-group">
|
2014-09-26 15:56:14 +04:00
|
|
|
<label for="user-name">Full Name</label>
|
|
|
|
{{input value=user.name id="user-name" class="user-name" placeholder="Full Name" autocorrect="off"}}
|
|
|
|
<p>Use your real name so people can recognise you</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class="user-details-bottom">
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-slug">Slug</label>
|
|
|
|
{{gh-input class="user-name" id="user-slug" value=slugValue name="user" focus-out="updateSlug" placeholder="Slug" selectOnClick="true" autocorrect="off"}}
|
|
|
|
<p>{{gh-blog-url}}/author/{{slugValue}}</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-email">Email</label>
|
|
|
|
{{input type="email" value=user.email id="user-email" placeholder="Email Address" autocapitalize="off" autocorrect="off" autocomplete="off"}}
|
|
|
|
<p>Used for notifications</p>
|
|
|
|
</div>
|
|
|
|
{{#if view.rolesDropdownIsVisible}}
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-role">Role</label>
|
|
|
|
{{gh-role-selector
|
2015-01-14 02:58:15 +03:00
|
|
|
initialValue=user.role
|
2014-09-26 15:56:14 +04:00
|
|
|
onChange="changeRole"
|
|
|
|
selectId="user-role"}}
|
|
|
|
<p>What permissions should this user have?</p>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-location">Location</label>
|
|
|
|
{{input type="text" value=user.location id="user-location"}}
|
|
|
|
<p>Where in the world do you live?</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-website">Website</label>
|
|
|
|
{{input type="url" value=user.website id="user-website" autocapitalize="off" autocorrect="off" autocomplete="off"}}
|
|
|
|
<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>
|
|
|
|
{{textarea id="user-bio" value=user.bio}}
|
|
|
|
<p>
|
|
|
|
Write about you, in 200 characters or less.
|
|
|
|
{{gh-count-characters user.bio}}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset>
|
2014-12-11 23:23:07 +03:00
|
|
|
{{#unless view.isNotOwnProfile}}
|
2014-09-26 15:56:14 +04:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-password-old">Old Password</label>
|
|
|
|
{{input value=user.password type="password" id="user-password-old"}}
|
|
|
|
</div>
|
2014-12-11 23:23:07 +03:00
|
|
|
{{/unless}}
|
2014-09-26 15:56:14 +04:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-password-new">New Password</label>
|
|
|
|
{{input value=user.newPassword type="password" id="user-password-new"}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="user-new-password-verification">Verify Password</label>
|
|
|
|
{{input value=user.ne2Password type="password" id="user-new-password-verification"}}
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<button type="button" class="btn btn-red button-change-password" {{action "password"}}>Change Password</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
2014-12-30 05:11:24 +03:00
|
|
|
</div>
|