24 lines
1007 B
HTML
24 lines
1007 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
{% if current_user.is_authenticated %}
|
|
<div class="jumbotron">
|
|
<h1 class="display-3">File Upload</h1>
|
|
<div>
|
|
<form method="POST" action="" enctype="multipart/form-data">
|
|
<div class="form-group">
|
|
<label for="caffTitle">Title: </label>
|
|
<input id="caffTitle" name="title" placeholder="My awesome animation!"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="fileChooser">CAFF File: </label>
|
|
<input id="fileChooser" type="file" name="file" accept=".caff">
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Upload!</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<p><a href="{{ url_for_security('login') }}">Log in</a> to upload an animation.</p>
|
|
{% endif %}
|
|
{% endblock %} |