Skip to content

Instantly share code, notes, and snippets.

@justinfay
Created August 30, 2014 18:17
Show Gist options
  • Save justinfay/a9abb4b30d174a7edcad to your computer and use it in GitHub Desktop.
Save justinfay/a9abb4b30d174a7edcad to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
</h1>{{ config['COIN_NAME'] }} Faucet</h1>
{% if sent %}
<h2>your coins have been queued for sending</h2>
{% endif %}
{% if error %}
<h3>{{ error }}</h3>
{% endif %}
<form action="{{ url_for('index') }}" method="post">
{{ form.csrf_token }}
{{ form.address.label }}
{{ form.address }}
{% if form.address.errors %}
<ul class="errors">
{% for error in form.address.errors %}
<li>{{ error }}</li>
{% endfor %}</ul>
{% endif %}
<input type="submit" value="Submit">
</form>
<h3>Queued for sending</h3>
<ul>
{% for address in send_list._addresses %}
<li>{{ address }}</li>
{% endfor %}
</ul>
<p>Coins will be sent when send list reaches {{ send_list._max_size }}</p>
<h3>Faucet Balance:<strong>{{ balance|float }}</strong></h3>
<h3>Donate:<strong>{{ address }}</strong></h3>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment