fixed premium index error

This commit is contained in:
flash 2016-12-23 20:17:54 +01:00
parent 096bfab18a
commit 868e2e25a7

View file

@ -22,7 +22,7 @@
Our transactions are handled through PayPal. Our transactions are handled through PayPal.
</div> </div>
</div> </div>
{% if user.isActive and user.verified %} {% if user.isActive %}
<div class="slider"> <div class="slider">
<input class="input__range" type="range" min="1" max="{{ amountLimit }}" value="1" onchange="document.getElementById('monthsNo').value = this.value; document.getElementById('monthNoBtn').innerText = this.value; document.getElementById('monthsTrailingS').innerText = (this.value == 1 ? '' : 's'); document.getElementById('totalAmount').innerText = (this.value * {{ price }});"> <input class="input__range" type="range" min="1" max="{{ amountLimit }}" value="1" onchange="document.getElementById('monthsNo').value = this.value; document.getElementById('monthNoBtn').innerText = this.value; document.getElementById('monthsTrailingS').innerText = (this.value == 1 ? '' : 's'); document.getElementById('totalAmount').innerText = (this.value * {{ price }});">
</div> </div>
@ -41,7 +41,7 @@
<h1 style="text-align: center; margin: 1em auto;">You need to be logged in to get Tenshi!</h1> <h1 style="text-align: center; margin: 1em auto;">You need to be logged in to get Tenshi!</h1>
{% endif %} {% endif %}
</div> </div>
{% if user.isActive and user.verified %} {% if user.isActive %}
<form action="{{ route('premium.purchase') }}" method="post" id="purchaseForm" class="hidden"> <form action="{{ route('premium.purchase') }}" method="post" id="purchaseForm" class="hidden">
<input type="hidden" name="mode" value="purchase"> <input type="hidden" name="mode" value="purchase">
<input type="hidden" name="time" value="{{ date().timestamp }}"> <input type="hidden" name="time" value="{{ date().timestamp }}">