{% load django_cap %} CAP Widget Demo - Using Template Tags {% cap_widget_script %}

CAP Widget Demo

Basic Widget

{% cap_widget %}
Template Code:
{% verbatim %} {% cap_widget %} {% endverbatim %}

Custom Widget ID

{% cap_widget widget_id="custom-cap" api_endpoint="/cap/v1/" %}
Template Code:
{% verbatim %} {% cap_widget widget_id="custom-cap" api_endpoint="/cap/v1/" %} {% endverbatim %}

Widget with Custom Handler

{% cap_widget widget_id="cap-custom-handler" handler_function="myCustomCapHandler" %}
Template Code:
{% verbatim %} {% cap_widget widget_id="cap-custom-handler" handler_function="myCustomCapHandler" %} {% endverbatim %}

Real-life Example

See the CAP widget in action with a real contact form:

View Contact Form Example