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>
|
2013-11-06 01:01:56 +01:00
|
|
|
{{i18n "Please complete your profile below before continuing."}}
|
2012-10-01 12:11:08 +10:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2012-09-19 09:03:25 +09:00
|
|
|
<form>
|
2013-11-06 01:01:56 +01:00
|
|
|
<h2>{{i18n "Account"}}</h2>
|
2012-09-19 09:03:25 +09:00
|
|
|
<div class="control-group">
|
2013-11-06 01:01:56 +01:00
|
|
|
<label>{{i18n "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">
|
2013-11-06 01:01:56 +01:00
|
|
|
<label>{{i18n "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">
|
2013-11-06 01:01:56 +01:00
|
|
|
<label>{{i18n "Email"}}</label>
|
2012-10-01 13:57:52 +09:00
|
|
|
<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">
|
2013-11-06 01:01:56 +01:00
|
|
|
<label>{{i18n "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>
|
2013-11-06 01:01:56 +01:00
|
|
|
<h3>{{i18n "Change Password?"}}</h3>
|
2012-09-19 09:03:25 +09:00
|
|
|
<div class="control-group">
|
2013-11-09 02:02:05 +01:00
|
|
|
<label>{{i18n "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">
|
2013-11-06 01:01:56 +01:00
|
|
|
<label>{{i18n "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">
|
2013-11-09 02:02:05 +01:00
|
|
|
<label class="control-label">{{i18n "Email Notifications"}}</label>
|
2013-10-23 19:43:42 +09:00
|
|
|
<div class="controls">
|
|
|
|
<label class="checkbox">
|
2013-11-09 02:02:05 +01:00
|
|
|
<input id="notifications_posts" type="checkbox" name="notifications_posts" {{hasNotificationsPosts}} /> {{i18n "New Posts"}}
|
2013-10-23 19:43:42 +09:00
|
|
|
</label>
|
|
|
|
<label class="checkbox">
|
2013-11-09 02:02:05 +01:00
|
|
|
<input id="notifications_comments" type="checkbox" name="notifications_comments" {{hasNotificationsComments}} /> {{i18n "Comments on my posts"}}
|
2013-10-23 19:43:42 +09:00
|
|
|
</label>
|
|
|
|
<label class="checkbox">
|
2013-11-09 02:02:05 +01:00
|
|
|
<input id="notifications_replies" type="checkbox" name="notifications_replies" {{hasNotificationsReplies}} /> {{i18n "Replies to my comments"}}
|
2013-10-23 19:43:42 +09:00
|
|
|
</label>
|
|
|
|
</div>
|
2012-09-19 09:03:25 +09:00
|
|
|
</div>
|
2013-10-23 19:43:42 +09:00
|
|
|
{{#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">
|
2013-11-06 01:01:56 +01:00
|
|
|
<a href="/forgot_password">{{i18n "Forgot password?"}}</a>
|
|
|
|
<input type="submit" class="button" value="{{i18n "Submit"}}" />
|
2012-09-19 09:03:25 +09:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{/with}}
|
|
|
|
</div>
|
|
|
|
</template>
|