Files
@ 7538e2881ec2
Branch filter:
Location: website/www/conservancy/templates/frontpage.html
7538e2881ec2
5.2 KiB
text/html
Update Monthly Donation form to fix PayPal problem
On a monthly subscription box, PayPal silently fails to allow the user
to select any option but the first one (despite selecting another value
from the form) if you name the values the same.
It's somewhat obvious when you review the form code that PayPal gives
you that all the value="" fields were the same, and thus the incorrect
behavior is somewhat unsurprising.
I fixed this by modifying the buttons to include the amount in words.
On a monthly subscription box, PayPal silently fails to allow the user
to select any option but the first one (despite selecting another value
from the form) if you name the values the same.
It's somewhat obvious when you review the form code that PayPal gives
you that all the value="" fields were the same, and thus the incorrect
behavior is somewhat unsurprising.
I fixed this by modifying the buttons to include the amount in words.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | {% extends "base_conservancy.html" %}
{% load date_within %}
{% block head %}
<link rel="alternate" type="application/rss+xml" title="Software Freedom Conservancy Complete Feed" href="/feeds/omnibus/" />
<link rel="alternate" type="application/rss+xml" title="Software Freedom Conservancy News" href="/feeds/news/" />
<link rel="alternate" type="application/rss+xml" title="Software Freedom Conservancy Blogs" href="/feeds/blog/" />
{% endblock %}
{% block content %}
<div class="singleColumn">
<h1>Software Freedom Conservancy</h1>
<p>Software Freedom Conservancy is a not-for-profit organization that
helps promote, improve, develop, and defend Free, Libre, and Open Source
Software (FLOSS) projects. Conservancy provides a non-profit home and
infrastructure for FLOSS projects. This allows FLOSS developers to
focus on what they do best — writing and improving FLOSS for the
general public — while Conservancy takes care of the projects' needs that
do not relate directly to software development and documentation.</p>
</div>
<div class="columns">
<div class="column column-small column-left">
<h2>Learn More about Conservancy</h2>
<p>
<span class="continued"><a href="/overview/">An Overview of Conservancy…</a></span>
<span class="continued"><a href="/members/current/">Conservancy's current member projects…</a></span>
<span class="continued"><a href="/members/services/">Services that Conservancy provides to its member projects…</a></span>
</p>
<h2>Follow Conservancy RSS Feeds, Microblogs, and mailing list</h2>
<p>There is a <a href="/feeds/omnibus/">full site feed available</a>, as
well as separate feeds for the <a href="/feeds/news/">news items</a> and
<a href="/feeds/blog/">blog posts</a>.</p>
<p>You can also follow Conservancy
on <a href="https://identi.ca/conservancy">identi.ca</a>
and <a href="https://twitter.com/conservancy">twitter</a>.</p>
<p>
<span id="subbox">
<form method="post" action="https://lists.sfconservancy.org/mailman/subscribe/announce">
You can also subscribe to Conservancy's low-traffic email announce list <br/><input name="email" placeholder="joe@example.org"/><input type="submit" name="email-button" value="Subscribe"/>
</form>
</span></p>
<h2>Support Conservancy</h2>
<p>As a 501(c)(3) non-profit organization, Conservancy relies on
charitable donations for its operations.
Please <a href="/donate/">donate generously</a> to help our work!
</p>
</div>
<div class="column column-large">
{% if press_releases.0 %}
{% if press_releases.0.pub_date|date_within_past_days:60 %}
<div class="shaded">
<h2><a href="/feeds/news/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> <a href="/news/">Recent News</a></h2>
<p class="date">{{ press_releases.0.pub_date|date:"F j, Y" }}</p>
<h3><a href="{{ press_releases.0.get_absolute_url }}">{{ press_releases.0.headline|safe }}</a></h3>
{{ press_releases.0.summary|safe }}
{% if press_releases.0.body %}<p><span class="continued"><a href="{{ press_releases.0.get_absolute_url }}">Read More...</a></span></p>{% endif %}
{% if press_releases.1 %}
{% if press_releases.1.pub_date|date_within_past_days:30 %}
<hr/>
<p class="date">{{ press_releases.1.pub_date|date:"F j, Y" }}</p>
<h3><a href="{{ press_releases.1.get_absolute_url }}">{{ press_releases.1.headline|safe }}</a></h3>
{{ press_releases.1.summary|safe }}
{% if press_releases.1.body %}<p><span class="continued"><a href="{{ press_releases.1.get_absolute_url }}">Read More...</a></span></p>{% endif %}
{% endif %}
{% endif %}
{% if press_releases.2 %}
{% if press_releases.2.pub_date|date_within_past_days:25 %}
<hr/>
<p class="date">{{ press_releases.2.pub_date|date:"F j, Y" }}</p>
<h3><a href="{{ press_releases.2.get_absolute_url }}">{{ press_releases.2.headline|safe }}</a></h3>
{{ press_releases.2.summary|safe }}
{% if press_releases.2.body %}<p><span class="continued"><a href="{{ press_releases.2.get_absolute_url }}">Read More...</a></span></p>{% endif %}
{% endif %}
{% endif %}
</div>
{% endif %}
{% endif %}
<p><span class="continued"><a href="/news/">Conservancy News Archive…</a></span></p>
{% if blog.0.is_recent %}
<h2><a href="/feeds/blog/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> <a href="/blog/">Conservancy Blog</a></h2>
<div class="shaded">
<h3><a href="{{ blog.0.get_absolute_url }}">{{ blog.0.headline|safe }}</a></h3>
<p class="date">Posted by {{ blog.0.author.formal_name }}
on {{ blog.0.pub_date|date:"F j, Y" }}</p>
{{ blog.0.summary|safe }}
<p><span class="continued"><a href="{{ blog.0.get_absolute_url }}">Read More
from {{ blog.0.author.casual_name }} on this…</a></span></p>
</div>
{% endif %}
{% if blog.1.is_recent %}
<div class="shaded">
<hr/>
<h3><a href="{{ blog.1.get_absolute_url }}">{{ blog.1.headline|safe }}</a></h3>
<p class="date">Posted by {{ blog.1.author.formal_name }}
on {{ blog.1.pub_date|date:"F j, Y" }}</p>
{{ blog.1.summary|safe }}
<p><span class="continued"><a href="{{ blog.0.get_absolute_url }}">Read More
from {{ blog.1.author.casual_name }} on this…</a></span></p>
</div>
{% endif %}
<p><span class="continued"><a href="/blog/">Conservancy Blog Archive…</a></span></p>
</div>
</div>
{% endblock %}
|