Commit 50ae222e authored by Barthelet Thibault's avatar Barthelet Thibault
Browse files

UI changes

parent b043066f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@
                    <span>Historical Data</span>
                </a>
                <a class="navbar-item" href="{{ url_for('predict') }}">
                    <span class="icon"><i class="fas fa-crystal-ball"></i></span>
                    <span class="icon"><i class="fas fa-cubes"></i></span>
                    <span>Make Predictions</span>
                </a>
            </div>
+0 −35
Original line number Diff line number Diff line
@@ -14,41 +14,6 @@

<section class="section">
    <div class="container">
        <!-- Reference Data -->
        <div class="box">
            <h3 class="title is-4">Reference: Year 10 Monthly Demand</h3>
            <p class="subtitle is-6">Use this recent data to inform your predictions</p>

            <div class="table-container">
                <table class="table is-fullwidth is-striped">
                    <thead>
                        <tr>
                            <th>Month</th>
                            {% for watch in watches %}
                            <th class="has-text-right">{{ watch.name }}</th>
                            {% endfor %}
                        </tr>
                    </thead>
                    <tbody>
                        {% for month in last_year %}
                        <tr>
                            <td><strong>{{ month.date }}</strong></td>
                            {% for watch_data in month.watches %}
                            <td class="has-text-right">{{ watch_data.demand }} units</td>
                            {% endfor %}
                        </tr>
                        {% endfor %}
                        <tr class="has-background-light">
                            <td><strong>Average</strong></td>
                            {% for watch in watches %}
                            <td class="has-text-right"><strong>{{ year10_averages[watch.id] }} units</strong></td>
                            {% endfor %}
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <!-- Prediction Form -->
        <form method="POST" action="{{ url_for('predict') }}" id="predictionForm">
            <div class="box">