{% extends "algorithms.html" %}
{% load i18n %}
{% get_current_language as lang %}

{% block content %}
<div class="span8 offset3">
    <form action="." method="post" enctype="multipart/form-data">
        {% csrf_token %}
        <div>
            {{ form.as_p }}
        </div>
        <fieldset>
            <legend>Algorithm Parameter</legend>
            {{ parameter_form.management_form }}
            {{ parameter_form.non_form_errors }}
            {% for form in parameter_form %}
                {{ form.id }}
                <div class="inline"> 
                    {{ form.as_p}}
                </div>
            {% endfor %}
        </fieldset>
        <button class="btn" type='submit'>{% trans "Save" %}</button>
    </form>
</div>
{% endblock %}

{% block javascript %}
    {{ block.super }}
    <script src="/static/js/jquery.formset.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
                $('.inline').formset({
                    prefix: "{{ parameter_form.prefix }}",
                 });
        })
    </script>
{% endblock %}

{% extends "algorithms.html" %}
{% load i18n %}
{% get_current_language as lang %}

{% block content %}
<div class="tabbable"> <!-- Only required for left/right tabs -->
  <ul class="nav nav-tabs" id="myTab2">
      <li><a href="{% url 'algorithm-list' %}">{% trans "Algorithm list" %}</a></li>
      <li class="active"><a href="{% url 'algorithm-new' %}">{% trans "Upload algorithm" %}</a></li>
  </ul>
  <div class="tab-content">
    <div class="tab-pane active" id="data-list">
    <div class="span8 offset3">
    <form action="." method="post" enctype="multipart/form-data">
        {% csrf_token %}
        <div>
            {{ form.as_p }}
        </div>
        <fieldset>
            <legend>Algorithm Parameter</legend>
            {{ parameter_form.management_form }}
            {{ parameter_form.non_form_errors }}
            {% for form in parameter_form %}
                {{ form.id }}
                <div class="inline"> 
                    {{ form.as_p}}
                </div>
            {% endfor %}
        </fieldset>
        <button class="btn" type='submit'>{% trans "Save" %}</button>
    </form>
      </table>
    </div>
  </div>
</div>
{% endblock %}

{% block javascript %}
    {{ block.super }}
    <script src="/static/js/jquery.formset.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
                $('.inline').formset({
                    prefix: "{{ parameter_form.prefix }}",
                 });
        })
    </script>
{% endblock %}

Add tabs to algorithm-create page.
Add tabs to algorithm-create page.
