add purchase template

This commit is contained in:
Torma Kristóf 2020-11-28 02:57:49 +01:00
parent 30a4686092
commit e9b7d369d1
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
3 changed files with 18 additions and 3 deletions

View File

@ -0,0 +1,15 @@
{% extends 'base.html' %}
{% block content %}
{% if current_user.is_authenticated %}
<div class="jumbotron">
<h1 class="display-3">File Upload</h1>
<br>
<form method="POST" action="">
<p><input type="submit" value="buy" class="btn btn-primary"></p>
</form>
</div>
{% else %}
<p><a href="{{ url_for_security('login') }}">Log in</a> to upload an animation.</p>
{% endif %}
{% endblock %}

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3
from flask import render_template
from flask_classful import FlaskView
"""
@ -15,4 +15,4 @@ __version__text__ = "1"
class ProfileView(FlaskView):
def index(self):
pass
return render_template('profile.html')