upload.html 1.21 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
{% extends "dashboard/base.html" %}
{% load i18n %}

{% block title-page %}{% trans "Upload" %} | {% trans "Store" %}{% endblock %}

{% block content %}

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
        <a class="btn btn-default pull-right btn-xs" 
          href="{% url "dashboard.views.store-list" %}">Back</a>
        <h3 class="no-margin">
15
          <i class="fa fa-cloud-upload"></i>
16 17 18 19 20 21
          {% trans "File upload" %}
        </h3>
      </div>
      <div class="panel-body">
        <div style="text-align: center; margin: 0 0 20px 0;">
          <div class="label label-info" style="padding: 5px;">
22
            {% trans "Currently uploading to" %}: {{ directory }}
23 24 25 26 27
          </div>
        </div>
        <form method="POST" action="{{ action }}" enctype="multipart/form-data">
          <input type="hidden" name="next" value="{{ next_url }}"/>
          <div>
28 29 30
            <input class="btn btn-default btn-sm pull-right" 
            type="submit" value="{% trans "Upload" %}"/>
            <input type="file" name="data" style="padding-top: 5px;" required/>
31 32 33 34 35 36 37 38
          </div>
        </form>
      </div>
    </div>
  </div>
</div>

{% endblock %}