<form class="connect-button" name="login" method="post" action="{% url socialregistration:linkedin:redirect %}">
{% csrf_token %}
{% if next %}
    <input type="hidden" name="next" value="{{ next }}" />
{% endif %}
<input type="image" onclick="this.form.submit();" src="{% if button %}{{ button }}{% else %}http://developer.linkedin.com/sites/default/files/linkedin-small.png{% endif %}" />
</form>
