{% extends 'base.html' %}

{% block title %} Home {% endblock %}

{% block content %}
{% if user.is_authenticated %}
  Hi {{ user.username }}!<br>
      <form action="" method="POST">{% csrf_token %}
      <label for="choice">What are we gonna upload today?</label>
      <select name="choices" id="choices">
          <option value="image">Picture</option>
          <option value="video">Video</option>
      </select>

      <button type="submit"> Submit </button>

{% else %}
  <p>You are not logged in</p>
  <a href="{% url 'login' %}">Log In</a>
{% endif %}
{% endblock %}
