33 lines
768 B
HTML
33 lines
768 B
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
<h1>Report</h1>
|
|
<img src="{{ graph_image }}" alt="{{ graph_image }}">
|
|
|
|
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Google Stock Price</th>
|
|
<th>Apple Stock Price</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for index,row in table_data.iterrows() %}
|
|
<tr>
|
|
<td>{{ row['date'] }}</td>
|
|
<td>{{ row['GOOG'] }}</td>
|
|
<td>{{ row['AAPL'] }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<form method="POST" action="/submit">
|
|
<label for="data">Enter Data:</label>
|
|
<input type="text" id="data" name="data" />
|
|
<button type="submit">Submit</button>
|
|
</form>
|
|
{% endblock %}
|