Skip to content
Snippets Groups Projects
index.html 1.43 KiB
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Flask Template</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        
    </head>
    <body>
        <h1 id="title">Imperial PaaS - Python Flask Template</h1>
        <nav>
            <ul>
                <li><a href="{{ url('home.home') }}">HOME</a></li>
            </ul>
        </nav>

        <img src="{{ url('static', filename='img/python-logo.png') }}" width="100px" alt="python logo"/>

        <h2>What is Flask Template</h2>
        <p>
            Flask Template is a simple web app programmed in Python-3 using flask micro-framework. It is created for begginers to understand the basics of creating a flask web app and deploying it on the Heroku. It can also be used as a template to create your new flask web apps.
        </p><br>

        <h3>Example CRUD form - Create a record in the database:</h3>
        <form method="post" action="{{ url('persons.create_person') }}">
            Firstname:<br>
            <input type="text" name="firstname">
            <br>
            Surname:<br>
            <input type="text" name="surname">
            <br>
            Age:<br>
            <input type="number" name="age">
            <br>
            <button type="submit">Create Entry</button>
        </form>
        <br>
        <a href="{{ url('persons.display_all_persons') }}">View records</a>
    </body>
</html>