{% extends 'NMR/index.html' %} {% load static %} {% load extras %} {% block content %}

{{ spectrum.name }}

{% csrf_token %} {% for peak in spectrum.peak_set.all %} {% if forloop.counter0|divisibleby:4 %} {% if peak.id != Null %} {% endif %} {% with peak=spectrum.peak_set.all|next:forloop.counter0 %} {% if peak.id != Null %} {% endif %} {% endwith %} {% with peak=spectrum.peak_set.all|two:forloop.counter0 %} {% if peak.id != Null %} {% endif %} {% endwith %} {% with peak=spectrum.peak_set.all|three:forloop.counter0 %} {% if peak.id != Null %} {% endif %} {% endwith %} {% endif %} {% endfor %}
{{ peak.pid }} {{ peak.id }}{{ peak.pid }} {{ peak.id }}{{ peak.pid }} {{ peak.id }}{{ peak.pid }} {{ peak.id }}
{% endblock %}