{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% if upload %}
<div id="upload" class="form" lang="{{ LANGUAGE_CODE }}">
    <h2>{{ upload.form.title }}</h2>
    <form action="" method="post" class="upload" id="uploadform" name="uploadform" enctype="multipart/form-data">
      {% csrf_token %}
      {{ form.non_field_errors }}
      {% for field in upload.form %}
      <p {% if field.help_text %}title="{{ field.help_text }}"{% endif %}>
        {{ field.label_tag }} {{ field }}
        {{ field.errors }}
      </p>
      {% endfor %}
      <p class="buttons">
          {{ upload.render_submits }}
      </p>
    </form>
</div>
{% endif %}
{% if update %}
<div id="update" class="form" lang="{{ LANGUAGE_CODE }}">
    <h2>{% trans "Update from Version Control" %}</h2>
    <p>{% trans "Use this option to update all the files in this area from version control." %}</p>
    <form action="" method="post" class="vcs-update" name="updateform" enctype="multipart/form-data">
    {% csrf_token %}
    {{ update.as_p }}
    </form>
</div>
{% endif %}
