           {% else %}
                        <option value="{{ scale }}">{{ scale }}</option>
                    {% endif %}
                {% endfor %}
            </select>
        </li>

        <li>
            <label for="mode_select">Mode</label>
            <select id="mode_select" onchange="Fourier_changeMode(this.value)">
                {% for mod in mode_list %}
                    {% if mod==mode %}
                        <option value="{{ mod }}" selected="selected">{{ mod }}</option>
     