2012-09-19 09:03:25 +09:00
|
|
|
<template name="user_edit">
|
|
|
|
<div class="grid-small grid-block dialog user-edit">
|
|
|
|
{{#with user}}
|
2012-10-01 12:11:08 +10:00
|
|
|
{{#if profileIncomplete}}
|
|
|
|
<div>
|
|
|
|
Please complete your profile below before continuing.
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2012-09-19 09:03:25 +09:00
|
|
|
<form>
|
|
|
|
<h2>Account</h2>
|
|
|
|
<div class="control-group">
|
|
|
|
<label>Username</label>
|
2012-10-01 13:57:52 +09:00
|
|
|
<div class="controls">
|
2013-10-24 14:24:03 +09:00
|
|
|
<input id="username" name="username" disabled="disabled" type="text" value="{{userName}}" />
|
2012-10-01 13:57:52 +09:00
|
|
|
</div>
|
2013-10-24 14:24:03 +09:00
|
|
|
<p class="note">Profile URL: {{profileUrl}}</p>
|
2012-09-19 09:03:25 +09:00
|
|
|
</div>
|
2012-10-01 13:57:52 +09:00
|
|
|
<!-- <div class="control-group">
|
2012-09-19 09:03:25 +09:00
|
|
|
<label>Email</label>
|
2012-10-01 13:57:52 +09:00
|
|
|
<div class="controls">
|
|
|
|
<input id="email" name="email" disabled="disabled" type="text" value="{{email}}" />
|
|
|
|
</div>
|
|
|
|
</div> -->
|
|
|
|
<div class="control-group">
|
2012-10-01 13:08:46 +10:00
|
|
|
<label>Display Name</label>
|
2012-10-01 13:57:52 +09:00
|
|
|
<div class="controls">
|
|
|
|
<input name="name" type="text" value="{{profile.name}}" />
|
|
|
|
</div>
|
2012-09-19 09:03:25 +09:00
|
|
|
</div>
|
2012-10-01 14:18:30 +10:00
|
|
|
<div class="control-group">
|
2012-10-01 13:57:52 +09:00
|
|
|
<label>Email</label>
|
|
|
|
<div class="controls">
|
2013-02-22 15:41:15 +09:00
|
|
|
<input name="email" type="text" value="{{userEmail}}" />
|
2012-10-01 13:57:52 +09:00
|
|
|
</div>
|
2012-09-19 09:03:25 +09:00
|
|
|
</div>
|
2012-09-24 14:29:54 +09:00
|
|
|
<div class="control-group">
|
|
|
|
<label>Bio</label>
|
2012-10-01 13:08:46 +10:00
|
|
|
<div class="controls"><textarea name="bio" type="text">{{profile.bio}}</textarea></div>
|
2012-09-24 14:29:54 +09:00
|
|
|
</div>
|
2013-11-07 09:57:57 +09:00
|
|
|
<div class="control-group">
|
|
|
|
<label>Twitter Username</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input name="twitter" type="text" value="{{getTwitter}}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label>GitHub Username</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input name="github" type="text" value="{{getGitHub}}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label>Site</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input name="site" type="text" value="{{profile.site}}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-09-19 09:03:25 +09:00
|
|
|
<h3>Change Password?</h3>
|
|
|
|
<div class="control-group">
|
|
|
|
<label>Old Password</label>
|
2013-10-21 19:01:52 +08:00
|
|
|
<div class="controls"><input name="old_password" type="password" value="" /></div>
|
2012-09-19 09:03:25 +09:00
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label>New Password</label>
|
2013-10-21 19:01:52 +08:00
|
|
|
<div class="controls"><input name="new_password" type="password" value="" /></div>
|
2012-09-19 09:03:25 +09:00
|
|
|
</div>
|
2013-10-23 19:43:42 +09:00
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">Email Notifications</label>
|
|
|
|
<div class="controls">
|
|
|
|
<label class="checkbox">
|
|
|
|
<input id="notifications_posts" type="checkbox" name="notifications_posts" {{hasNotificationsPosts}} /> New Posts
|
|
|
|
</label>
|
|
|
|
<label class="checkbox">
|
|
|
|
<input id="notifications_comments" type="checkbox" name="notifications_comments" {{hasNotificationsComments}} /> Comments on my posts
|
|
|
|
</label>
|
|
|
|
<label class="checkbox">
|
|
|
|
<input id="notifications_replies" type="checkbox" name="notifications_replies" {{hasNotificationsReplies}} /> Replies to my comments
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{#if isAdmin}}
|
|
|
|
<div class="control-group">
|
|
|
|
<h3>Invites</h3>
|
|
|
|
<label>Invites</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input name="invitesCount" type="text" value="{{invitesCount}}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2012-09-19 09:03:25 +09:00
|
|
|
<div class="form-actions">
|
|
|
|
<a href="/forgot_password">Forgot password?</a>
|
|
|
|
<input type="submit" class="button" value="Submit" />
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{/with}}
|
|
|
|
</div>
|
|
|
|
</template>
|