{% endfor %}
+{% with extra_info=book.get_extra_info_json %}
{% if extra_info.source_url %}
<div class="white-box">
<a href="{{ extra_info.source_url }}">{% trans "Source" %}</a> {% trans "of the book" %}
<div class="white-box">
<a href="{% url 'poem_from_book' book.slug %}">{% trans "Mix this book" %}</a>
</div>
+{% endwith %}
{% endblock %}
</li>
</ul>
{% else %}
- <p class="book-box-tools">{% trans "For now this work is only available for our subscribers." %}
+ <p class="book-box-tools book-box-tools-warn">{% trans "For now this work is only available for our subscribers." %}
<a href="/towarzystwo/">Dołącz do Towarzystwa Przyjaciół Wolnych Lektur</a>
</p>
{% endif %}
}
update_methods();
$("#payment-form .plan").change(update_methods);
-
+
+
+ $("#payment-form").submit(function() {
+ _paq.push(['trackGoal', 12, $("#id_amount").val()]);
+ });
});
{% block body %}
<style>
+
+.methods {
+ color: #888;
+line-height: 30px;
+}
+.methods .method {
+ border: 1px solid #888;
+ border-radius: 5px;
+display: inline-block;
+padding: 0 5px;
+}
+.methods img {
+height: 30px;
+margin-right: 10px;
+vertical-align: middle;
+}
.payment-method.disabled {
opacity: .5;
filter: grayscale(100%);
<span class="button">inna kwota</span>
<input type="number" min="{{ club.min_amount }}">
</span>
+<div class="methods">{% include 'club/payment/payu.html' %}</div>
</div>
<span class="button">inna kwota</span>
<input type="number" min="{{ club.min_amount }}">
</span>
+<div class="methods">{% include 'club/payment/payu-re.html' %}</div>
</div>
<h3>
<p>
{{ form.email }}</p>
- <button class="submit" type='submit'>Dołącz</button>
+ <button class="submit" type='submit'>Wpłać</button>
</form>
<div class="club-form-info">
<img src="{% static 'club/payu/payu.png' %}">
<img src="{% static 'club/visa-100.png' %}">
<img src="{% static 'club/mastercard.png' %}">
-+<br>Płatność cykliczna, odnawiana automatycznie.
<img src="{% static 'club/visa-100.png' %}">
<img src="{% static 'club/mastercard.png' %}">
<span class="method">przelew</span>
-<br>Płatność jednorazowa
@include size(margin-left, 139px + 15px);
}
+ &.book-box-tools-warn {
+ font-size: 1rem;
+ margin-bottom: 1em;
+ max-width: 32em;
+ border: 1px solid #888;
+ padding: 1em;
+ }
+
+
li {
@include mono;
margin-top: 0;
background-image:linear-gradient(to right,rgba(255,255,255,0),#ffffff 50%)
}
}
-}
\ No newline at end of file
+}