forked from blockcypher/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Flaxman
committed
Apr 9, 2015
1 parent
243571c
commit 63d7b78
Showing
5 changed files
with
116 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,10 @@ class NewUserAddressSubscriptionForm(KnownUserAddressSubscriptionForm): | |
max_length=100, | ||
widget=forms.TextInput(attrs={'placeholder': '[email protected]', 'class': 'input-lg'}), | ||
) | ||
|
||
|
||
class AddressSearchForm(KnownUserAddressSubscriptionForm): | ||
|
||
def __init__(self, *args, **kwargs): | ||
super(AddressSearchForm, self).__init__(*args, **kwargs) | ||
self.fields['coin_address'].label = "Address" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load i18n %} | ||
{% load humanize %} | ||
{% load btc_formats %} | ||
{% load static %} | ||
|
||
{% block title %} | ||
Embeddable Address Widgets | ||
{% endblock title %} | ||
|
||
{% block page_header %} | ||
<h1> | ||
<i class="fa fa-send"></i> | ||
See Embeddable Address Widgets | ||
</h1> | ||
{% endblock page_header %} | ||
|
||
{% block content %} | ||
|
||
<div class="section"> | ||
<div class="container"> | ||
<form role="form" method="post" action="{% url 'search_widgets' coin_symbol %}"> | ||
{% load crispy_forms_tags %} | ||
{{ form|crispy }} | ||
{% csrf_token %} | ||
<p class="text-center"> | ||
<button type="submit" class="btn btn-primary btn-lg">{% trans "See Widgets" %} </button> | ||
</p> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
{% endblock content %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load i18n %} | ||
{% load humanize %} | ||
{% load btc_formats %} | ||
{% load static %} | ||
|
||
{% block title %} | ||
Embeddable Address Widgets | ||
{% endblock title %} | ||
|
||
{% block page_header %} | ||
<h1> | ||
<i class="fa fa-send"></i> | ||
Embeddable Address Widgets | ||
</h1> | ||
{% endblock page_header %} | ||
|
||
{% block content %} | ||
|
||
<div class="section"> | ||
<div class="container"> | ||
<p>Put widgets here</p> | ||
</div> | ||
</div> | ||
|
||
{% endblock content %} |