{% extends "dform/base.html" %} {% load staticfiles %} {% block title %}{{title}}{% endblock title %} {% block contents %}
The following is a link for users to answer the latest version of the "{{version.survey.name}}" survey:
<a href="{{survey_latest_url}}">{{version.survey.name}}</a>
To insert the latest version of "{{version.survey.name}}" onto an existing web page, use the pym.js library and a IFRAME. Copy the code below into the area where you wish to insert the survey and pym.js will take care of the rest for you.
<div id="dform1"></div> <script type="text/javascript" src="{{pym_url}}"></script> <script> var p = new pym.Parent('dform1', '{{embedded_survey_latest_url}}'); </script>
The following is a link for users to answer version #{{version.version_num}} of the "{{version.survey.name}}" survey:
<a href="{{survey_url}}">{{version.survey.name}}</a>
To insert the version #{{version.version_num}} of "{{version.survey.name}}" onto an existing web page, use the pym.js library and a IFRAME. Copy the code below into the area where you wish to insert the survey and pym.js will take care of the rest for you.
<div id="dform1"></div> <script type="text/javascript" src="{{pym_url}}"></script> <script> var p = new pym.Parent('dform1', '{{embedded_survey_url}}'); </script>