{% extends "base.html" %}

{% block title %}Dodaj obraz{% endblock %}

{% block content %}
  <h1>Dodaj obraz</h1>
  <img src="{{ request.GET.url }}" class="image-preview">
  <form action="." method="post">
    {{ form.as_p }}
    {% csrf_token %}
    <input type="submit" value="Dodaj!">
  </form>
{% endblock %}
