e
This commit is contained in:
21
website/templates/uploadChoice.html
Normal file
21
website/templates/uploadChoice.html
Normal file
@ -0,0 +1,21 @@
|
||||
{% 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 %}
|
17
website/templates/uploadImage.html
Normal file
17
website/templates/uploadImage.html
Normal file
@ -0,0 +1,17 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %} Home {% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if user.is_authenticated %}
|
||||
Hi {{ user.username }}!<br>
|
||||
<form action="" method="POST">{% csrf_token %}
|
||||
<input type="file" name="image" id="image">
|
||||
|
||||
<button type="submit"> Submit </button>
|
||||
|
||||
{% else %}
|
||||
<p>You are not logged in</p>
|
||||
<a href="{% url 'login' %}">Log In</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user