Permalink
Browse files

Inherit email signup form from main Apps page

  • Loading branch information...
1 parent 8cd5705 commit 7fe9049d229e80be55a6ff0e88de7852deb5e6ce @sgarrity committed Apr 26, 2012
@@ -68,7 +68,9 @@
</video>
</div>
</section>
+{% endblock %}
+{% block email_form %}
{% if not success %}
<form class="container" id="apps-email-form" action="#apps-email-form" method="post">
{{ csrf() }}
@@ -81,12 +83,11 @@
{% endfor %}
{% endif %}
- <h3>Email signup</h3>
<div class="row">
- <p class="span3">Sign up for more news about the Mozilla Marketplace.</p>
+ <h4 class="span4">Sign up for more news about the Mozilla Marketplace.</h4>
- <div class="span5">
+ <div class="span4">
<div class="{% if form.email.errors %}field-error{% endif %}">
{{ field_with_attrs(form.email, placeholder='YOUR EMAIL HERE')|safe }}
</div>
@@ -120,5 +121,5 @@
<h3>Thank you for signing up!</h3>
</div>
{% endif %}
-
{% endblock %}
+
@@ -1,4 +1,4 @@
-{% extends "sand.html" %}
+{% extends "marketplace/marketplace.html" %}
{% block page_title_prefix %}{% endblock %}
{% block page_title %}Mozilla Marketplace Partners{% endblock %}
@@ -135,59 +135,4 @@
</div>
</section>
-
-
-
-{% if not success %}
-<form class="container" id="apps-email-form" action="#apps-email-form" method="post">
-{{ csrf() }}
-
-{% if form.errors %}
- {{ form.non_field_errors() }}
-
- {% for field in form %}
- {{ field.errors }}
- {% endfor %}
-{% endif %}
-
- <h3>Email signup</h3>
- <div class="row">
-
- <p class="span3">Sign up for more news about the Mozilla Marketplace.</p>
-
- <div class="span5">
- <div class="{% if form.email.errors %}field-error{% endif %}">
- {{ field_with_attrs(form.email, placeholder='YOUR EMAIL HERE')|safe }}
- </div>
-
- <!-- <select name="interest" id="apps-interest"> -->
- <!-- <option disabled="disabled">AREA OF INTEREST</option> -->
- <!-- <option>developing apps</option> -->
- <!-- <option>hosting or selling apps</option> -->
- <!-- <option>discovering and buying apps</option> -->
- <!-- <option>partnership opportunities</option> -->
- <!-- </select> -->
-
- <div>
- {{ form.fmt|safe }}
- </div>
-
- <div class="{% if form.privacy.errors%}field-error{% endif %}">
- {{ form.privacy|safe }}
- </div>
- </div>
-
-
- <div class="span2">
- <input type="submit" value="Sign up »" class="button-blue">
- </div>
-
- </div>
-</form>
-{% else %}
-<div class="container thank">
- <h3>Thank you for signing up!</h3>
-</div>
-{% endif %}
-
{% endblock %}

0 comments on commit 7fe9049

Please sign in to comment.