simple_upload.html 488 Bytes
Newer Older
Bruno Meyer's avatar
Bruno Meyer committed
1
2
3
4
5
6
7
{% extends 'base.html' %}

{% load static %}

{% block content %}
  <form method="post" enctype="multipart/form-data">
    {% csrf_token %}
8
9
    <input type="file" name="historico">
    <input type="file" name="matricula">
Bruno Meyer's avatar
Bruno Meyer committed
10
11
12
13
14
15
16
    <button type="submit">Upload</button>
  </form>

  {% if uploaded_file_url %}
    <p>File uploaded at: <a href="{{ uploaded_file_url }}">{{ uploaded_file_url }}</a></p>
  {% endif %}

Jomaro Rodrigues's avatar
Jomaro Rodrigues committed
17
  <p><a href="{% url 'uploads:home' %}">Return to home</a></p>
18
{% endblock %}