remove test page
This commit is contained in:
parent
1d313233a6
commit
cf4b642461
3 changed files with 0 additions and 24 deletions
|
|
@ -13,7 +13,6 @@
|
||||||
<body>
|
<body>
|
||||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||||
<a href="{{url_for('main.homepage')}}" style="text-decoration: none; margin-right: 10px;"><p>Pilzno</p></a>
|
<a href="{{url_for('main.homepage')}}" style="text-decoration: none; margin-right: 10px;"><p>Pilzno</p></a>
|
||||||
<a href="{{url_for('users.testing_route')}}" style="text-decoration: none; margin-right: 10px;"><p>Test</p></a>
|
|
||||||
{% if current_user.is_authenticated %}
|
{% if current_user.is_authenticated %}
|
||||||
<a href="{{url_for('users.user_page', user_id=current_user.id)}}" style="text-decoration: none;"><span class="navbar-brand">User Page</span></a>
|
<a href="{{url_for('users.user_page', user_id=current_user.id)}}" style="text-decoration: none;"><span class="navbar-brand">User Page</span></a>
|
||||||
{% if current_user.user_type == 'Admin' %}
|
{% if current_user.user_type == 'Admin' %}
|
||||||
|
|
|
||||||
|
|
@ -69,16 +69,3 @@ def register_user():
|
||||||
flash('Succesfully Registered!')
|
flash('Succesfully Registered!')
|
||||||
return redirect(url_for('main.homepage'))
|
return redirect(url_for('main.homepage'))
|
||||||
return render_template('register_user.html', form=form)
|
return render_template('register_user.html', form=form)
|
||||||
|
|
||||||
@users.route('/test')
|
|
||||||
def testing_route():
|
|
||||||
user = User.query.filter_by(id=1).first()
|
|
||||||
donation = Donation.query.filter_by(id=1).first()
|
|
||||||
campaign = Campaign.query.filter_by(id=1).first()
|
|
||||||
|
|
||||||
print(campaign)
|
|
||||||
|
|
||||||
return render_template('test.html',
|
|
||||||
user=user,
|
|
||||||
donation=donation,
|
|
||||||
campaign=campaign)
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
{% extends 'base.html' %}
|
|
||||||
{% block title %}User Access{% endblock title %}
|
|
||||||
{% block content %}
|
|
||||||
{{user.first_name}}<br/>
|
|
||||||
{{donation.amount}}<br/>
|
|
||||||
|
|
||||||
{% for c in campaign.donations %}
|
|
||||||
{{c}}
|
|
||||||
{% endfor %}
|
|
||||||
{% endblock %}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue