{% extends "base.html" %}
{% block base_body %}
     <section class="row fullvh">
        <div>
            <h1>{{ questionnaire.survey }}</h1>
            <h2>{{ questionnaire.title }}</h2>
            <p>{{ questionnaire.overview }}</p>
            <p></p>
            {%  for question in questionnaire.question_set.all %}
                <li>{{ question.title }}</li>
            {% endfor %}
           <li>
                <a href="{%  url 'survey:create-question' questionnaire.questionnaire_id %}">Add new question</a>
          </li>
          <li>
            {% if survey_runner_url %}
              <a href="{{survey_runner_url}}questionnaire/{{questionnaire.id}}">Preview</a>
            {% endif %}
          </li>
        </div>
    </section>
{% endblock base_body%}

{% extends "base.html" %}
{% block base_body %}
     <section class="row fullvh">
        <div>
            <h1>{{ questionnaire.survey }}</h1>
            <h2>{{ questionnaire.title }}</h2>
            <p>{{ questionnaire.overview }}</p>
            <p></p>
            {%  for question in questionnaire.question_set.all %}
                <li>{{ question.title }}</li>
            {% endfor %}
           <li>
                <a href="{%  url 'survey:create-question' questionnaire.questionnaire_id %}">Add new question</a>
          </li>
          <li>
            {% if survey_runner_url %}
              <a href="{{survey_runner_url}}questionnaire/{{questionnaire.id}}?preview=True">Preview</a>
            {% endif %}
          </li>
        </div>
    </section>
{% endblock base_body%}

Add preview flag for viewing the questionnaire.
Add preview flag for viewing the questionnaire.
