2012-10-16 06:03:29 +02:00
|
|
|
{# Settings tab of the app. #}
|
|
|
|
|
2012-10-05 17:46:07 +02:00
|
|
|
<div class="row-fluid">
|
2013-02-21 17:45:40 +01:00
|
|
|
<div id="current_settings" class="span7">
|
2012-10-04 22:59:18 +02:00
|
|
|
<h1>Settings</h1>
|
2012-10-17 22:26:59 +02:00
|
|
|
<div id="API">
|
|
|
|
<label>API Key</label>
|
|
|
|
<div id="api_key_button_box">
|
2012-11-16 16:45:39 +01:00
|
|
|
<a href="#api-settings" id="api_key_button" onclick="ui.show_api_key_box();">(show)</a>
|
2012-10-17 22:26:59 +02:00
|
|
|
<br />
|
|
|
|
</div>
|
|
|
|
<div id="get_api_key_box">
|
|
|
|
<form action="/json/fetch_api_key" method="post" class="settings">{% csrf_token %}
|
2012-11-02 17:52:18 +01:00
|
|
|
<label for="password">Enter your password to get your API key</label>
|
2012-10-17 22:26:59 +02:00
|
|
|
<input type="password" autocomplete="off" name="password" id="get_api_key_password" value="" /><br />
|
|
|
|
<input type="submit" name="view_api_key" value="Get API Key" class="btn" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="show_api_key_box">
|
|
|
|
<b><span id="api_key_value"></span></b>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
</div>
|
2012-09-21 19:32:01 +02:00
|
|
|
<div id="Photo">
|
|
|
|
<label>Photo</label>
|
2012-11-05 23:51:27 +01:00
|
|
|
<img class="img-rounded gravatar-profile" src="https://secure.gravatar.com/avatar/{{ email_hash }}?d=identicon&s=80"/>
|
2012-11-16 16:45:39 +01:00
|
|
|
<a href="https://en.gravatar.com/emails" target="_blank" onclick="ui.wait_for_gravatar();">(change at Gravatar.com)</a>
|
2012-09-21 19:32:01 +02:00
|
|
|
<br />
|
|
|
|
</div>
|
|
|
|
<br /><br />
|
2012-10-17 22:26:59 +02:00
|
|
|
<div id="settings-change-box">
|
2012-11-09 18:42:03 +01:00
|
|
|
<form action="/json/settings/change" method="post"
|
2012-10-17 23:09:41 +02:00
|
|
|
class="settings">{% csrf_token %}
|
|
|
|
<table>
|
|
|
|
<tr>
|
2012-11-02 17:52:18 +01:00
|
|
|
<td><label for="full_name">Full name: </label></td>
|
2012-10-17 23:09:41 +02:00
|
|
|
<td>
|
|
|
|
<input type="text" name="full_name" id="full_name"
|
|
|
|
value="{{ user_profile.full_name }}" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-11-02 17:52:18 +01:00
|
|
|
<td><label for="old_password">Old password: </label></td>
|
2012-10-17 23:09:41 +02:00
|
|
|
<td>
|
|
|
|
<input type="password" autocomplete="off"
|
|
|
|
name="old_password" id="old_password" value="" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-11-02 17:52:18 +01:00
|
|
|
<td><label for="new_password">New password: </label></td>
|
2012-10-17 23:09:41 +02:00
|
|
|
<td>
|
|
|
|
<input type="password" autocomplete="off"
|
|
|
|
name="new_password" id="new_password" value="" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-11-02 17:52:18 +01:00
|
|
|
<td><label for="confirm_password">Confirm password: </label></td>
|
2012-10-17 23:09:41 +02:00
|
|
|
<td><input type="password" autocomplete="off"
|
|
|
|
name="confirm_password" id="confirm_password"
|
|
|
|
value="" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2012-11-23 21:23:41 +01:00
|
|
|
<table>
|
|
|
|
<tr>
|
2012-11-29 16:52:44 +01:00
|
|
|
<td><label for="enable_desktop_notifications">Enable desktop notifications (Chrome only): </label></td>
|
2012-11-23 21:23:41 +01:00
|
|
|
<td><input type="checkbox" name="enable_desktop_notifications" id="enable_desktop_notifications"
|
|
|
|
{% if user_profile.enable_desktop_notifications %}
|
|
|
|
checked="yes"
|
|
|
|
{% endif %}
|
|
|
|
/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2012-09-21 19:32:01 +02:00
|
|
|
<input type="submit" name="change_settings" value="Save changes" class="btn" />
|
|
|
|
</form>
|
2012-10-17 22:26:59 +02:00
|
|
|
</div>
|
2012-09-21 19:32:01 +02:00
|
|
|
<div class="alert" id="settings-status"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|