Source

django-petition / petition / templates / petition / petition_form.html

Full commit
              <form action="{% url sign %}" method="post" name="form1">{% csrf_token %}
                {% for field in petition_form %}
                {{field.errors}}
                {% if field.label == 'Country' %}
                {{field}}
                {% else %}
                <input type="text" name="{{field.html_name}}" value="{{field.value|default:field.label}}" size="32" onfocus="this.style.color='white'; if(this.value=='{{field.value|default:field.label}}')this.value='';" onblur="if(this.value.replace(/\s/g,'')==''){this.style.color='gray';this.value='{{field.value|default:field.label}}';}" />
                {% endif %}
                {% endfor %}
                <input id="submit" type="submit" value="SIGN PETITION" />
              </form>