Add table querying via form

This commit is contained in:
2020-01-09 19:13:24 +01:00
parent 6caca22472
commit 1aac68473d
12 changed files with 141 additions and 42 deletions

View File

@@ -1,7 +1,16 @@
{% extends "base.html" %}
{% block content %}
<h1>Hey, {{ current_user.username }}!</h1>
Do you want to nuke the database?
<li><a href="{{ url_for('nuke') }}">Yes, I want to burn down the world</a></li>
<h1 class="text-center">Hey, {{ current_user.username }}!</h1>
<p class="text-center">Do you want to nuke the database?</p>
<li>
<p class="text-center">
<a href="{{ url_for('nuke') }}"><b>Yes</b>, I want to burn down the world</a>
</p>
</li>
<li>
<p class="text-center">
Nah, show me some cool <a href="{{ url_for('data') }}">data</a>
</p>
</li>
{% endblock %}

View File

@@ -1,7 +1,7 @@
{% extends 'bootstrap/base.html' %}
{% block title %}
IGDB
{% if title %}{{ title }} - IGDB{% else %}IGDB{% endif %}
{% endblock %}
{% block styles %}

View File

@@ -1,8 +1,15 @@
{% extends "base.html" %}
{% block content %}
<h1>Hey, {{ current_user.username }}!</h1>
Wanna check out some cool data?
<li><a href="{{ url_for('tables') }}"></a></li>
<li><a href="{{ url_for('plots') }}"></a></li>
<h1 class="text-center">What do you want to check out?</h1>
<li>
<p class="text-center">
<a href="{{ url_for('table_selection') }}">Tables</a>
</p>
</li>
<li>
<p class="text-center">
<a href="{{ url_for('plots') }}">Plots</a>
</p>
</li>
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% extends "base.html" %}
{% import 'bootstrap/wtf.html' as wtf %}
{% block app_content %}
<h1>Table</h1>
{{ table|safe }}
{% endblock %}

View File

@@ -0,0 +1,12 @@
{% extends "base.html" %}
{% import 'bootstrap/wtf.html' as wtf %}
{% block app_content %}
<h1>Table selection</h1>
<div class="row">
<div class="col-md-4">
{{ wtf.quick_form(form) }}
</div>
</div>
<br>
{% endblock %}