regluit/frontend/templates/kindle_config.html

73 lines
3.5 KiB
HTML
Raw Normal View History

2015-04-28 03:24:02 +00:00
{% extends 'email_change/base.html' %}
{% load url from future %}
2013-05-31 19:19:58 +00:00
{% block title %}Add or change your Kindle email{% endblock %}
{% block extra_js %}
{{ block.super }}
<script>
var $j = jQuery.noConflict();
$j(document).ready(function() {
var work_id = {{ work.id }};
if(work_id) {
$j.post('/send_to_kindle/' + work_id + '/1/', function(data) {
$j('#replace_me').html(data);
return false;
});
}
});
</script>
{% endblock %}
2013-05-31 19:19:58 +00:00
{% block ce_content %}
{% with request.user.profile.kindle_email as kindle_email %}
<h2>Add or change your Kindle email</h2>
<div id="content-main">
{% if kindle_email %}
{% if work %}
<p>
2015-04-28 03:24:02 +00:00
Welcome back, {{ user.username }}! We're sending <I><a href="{% url 'work' work.id %}">{{ work.title }}</a></I> to {{ kindle_email }}.
</p>
<span id="replace_me"><img src="{{ STATIC_URL }}images/loading.gif"></span>
<p>
(If you'd like to change your Kindle email, you can do so below. You'll need to download the book again.)
</p>
{% else %}
<p>You already have a Kindle email on file with Unglue.it: {{ kindle_email }} .
{% if not ok_email %}<span class="yikes">That's probably not the right email; most Kindles use an @kindle.com email address.</span> {% endif %}</p>
<p>You can change it below.</p>
2013-06-24 18:52:03 +00:00
<p>
2013-06-24 19:42:51 +00:00
If you emailed yourself an Unglue.it ebook and got a message from Amazon that the sender is not in your approved email list, add <b>notices@gluejar.com</b> to your <a href="http://www.amazon.com/myk#pdocSettings">Approved Personal Document Email List</a> under Personal Document Settings.
2013-06-24 18:52:03 +00:00
</p>
{% endif %}
2013-05-31 19:19:58 +00:00
{% else %}
2013-06-24 18:52:03 +00:00
<p>
2013-06-24 19:42:51 +00:00
Before your device or app can receive emails from Unglue.it, you'll have to add <b>notices@gluejar.com</b> to your <a href="http://www.amazon.com/myk#pdocSettings">Approved Personal Document Email List</a> under Personal Document Settings.
2013-06-24 18:52:03 +00:00
</p>
<p>Then, enter your Kindle email address below (most Kindles use an @kindle.com email address.):</p>
2013-05-31 19:19:58 +00:00
{% endif %}
{% if work %}
2015-04-28 03:24:02 +00:00
<form method="post" action="{% url 'kindle_config_download' work.id %}">{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% if kindle_email %}Change{% else %}Add{% endif %}" />
</form>
{% else %}
2015-04-28 03:24:02 +00:00
<form method="post" action="{% url 'kindle_config' %}">{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% if kindle_email %}Change{% else %}Add{% endif %}" />
</form>
{% endif %}
2013-05-31 19:19:58 +00:00
<script type="text/javascript">
document.getElementById('id_kindle_email').focus()
</script>
</div>
https://www.amazon.com/gp/digital/fiona/manage#manageDevices
2013-05-31 19:19:58 +00:00
<div>
<p>Don't know the email address for your device or reading app? <a href="https://www.amazon.com/myk#manageDevices">Find it here</a>. (If you're not logged in to Amazon, you need to click "Manage Your Devices" in the "Your Kindle Account" section on the lower left side of the page.)</p>
2013-06-24 18:52:03 +00:00
2013-05-31 19:19:58 +00:00
<p>Once we have your Kindle email, you'll be able to send unglued ebooks to your Kindle device or app with one click from any Unglue.it download page.</p>
</div>
{% endwith %}
{% endblock %}