{% load bootstrap report_cal %}
<h3>
  <span class="red bold">REPORT</span> <span class="light">DATA</span>
</h3>
<div class="feature-box">
  <div class="row-fluid">
    {% report_cal %}
  </div>
</div>

<div class="feature-box">
  <div class="row-fluid">
    {% for variable in trial.variable_set.all %}
    <div class="span6">
      {% if forloop.first %}
        {% with variable.report_form as form %}
        <form id="usertrialreport_form" method="post"
              action="{% url 'trial-report' trial.pk %}">
          {% csrf_token %}
          {{ form.date|bootstrap }}
          {{ form.score|bootstrap }}
          <button class="btn btn-danger">
            report data
          </button>
        </form>
        {% endwith %}
      {% endif %}
    </div>
    <div class="span6">
      <h3>
        <i>
          {{ variable.question }}
        </i>
      </h3>
    </div>
    {% endfor %}
  </div>
</div>

<h3>
  <span class="light">TRIAL</span> <span class="red bold">DETAILS</span>
</h3>
<div class="feature-box">
  <div class="row-fluid">
      <!-- Main panel -->
      <div class="span9">
        <h3>Instructions</h3>
        <p>
          <i>
          {{ instructions }}
          </i>
        </p>
        <h3>Description</h3>
        <p>
          <i>
          {{ trial.description }}
          </i>
        </p>
        <p>
          <a href="{% url 'leave-trial' trial.pk %}" class="btn btn-warning">leave trial</a>
        </p>
      </div>
      {% include 'trials/trial_detail_sidebar.html' %}
    </div>
  </div> <!-- Row Fluid -->

{% load bootstrap report_cal %}
<h3>
  <span class="red bold">REPORT</span> <span class="light">DATA</span>
</h3>
<div class="feature-box">
  <div class="row-fluid">
    {% report_cal %}
  </div>
</div>

<h3>
  <span class="light">TRIAL</span> <span class="red bold">DETAILS</span>
</h3>
<div class="feature-box">
  <div class="row-fluid">
      <!-- Main panel -->
      <div class="span9">
        <h3>Instructions</h3>
        <p>
          <i>
          {{ instructions }}
          </i>
        </p>
        <h3>Description</h3>
        <p>
          <i>
          {{ trial.description }}
          </i>
        </p>
        <p>
          <a href="{% url 'leave-trial' trial.pk %}" class="btn btn-warning">leave trial</a>
        </p>
      </div>
      {% include 'trials/trial_detail_sidebar.html' %}
    </div>
  </div> <!-- Row Fluid -->

Kill pointless extra variable form.
Kill pointless extra variable form.
