Add table querying via form
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends 'bootstrap/base.html' %}
|
||||
|
||||
{% block title %}
|
||||
IGDB
|
||||
{% if title %}{{ title }} - IGDB{% else %}IGDB{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block styles %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
7
code/app/templates/table.html
Normal file
7
code/app/templates/table.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
{% import 'bootstrap/wtf.html' as wtf %}
|
||||
|
||||
{% block app_content %}
|
||||
<h1>Table</h1>
|
||||
{{ table|safe }}
|
||||
{% endblock %}
|
||||
12
code/app/templates/table_selection.html
Normal file
12
code/app/templates/table_selection.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user