Advertisement
bakernine

Untitled

Nov 22nd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.84 KB | None | 0 0
  1. from flask import Flask
  2. app = Flask(__name__)
  3.  
  4. @app.route('/')
  5. def index():
  6.     return """<!DOCTYPE html>
  7.            <html lang="en">
  8.                <head>
  9.                    <title>Projekt Ciachego</title>
  10.                    <meta charset="utf-8">
  11.                    <meta name="viewport" content="width=device-width, initial-scale=1.0">
  12.                    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
  13.                </head>
  14.            <body>
  15.            <div class="container">
  16.                <div style="color: rgb(185, 31, 199); text-align:center">
  17.                    <h1><i>Shopping list</i></h1>
  18.                </div>
  19.                <div class="form-group">
  20.                    <label style="color: rgb(13, 139, 20)"; class="control-label col-sm-10" for="pwd"><h5>Type the name of product...</h5></label>
  21.                    <div class="col-sm-12">  
  22.                        <input type="text" class="form-control" placeholder="...to buy:" name="to_buy">
  23.                    </div>
  24.                </div>
  25.                <div class="form-group">
  26.                    <div class="col-sm-10">        
  27.                        <input type="button" class="btn btn-success" value="Add to list">
  28.                    </div>
  29.                </div>
  30.                <div class="form-group">  
  31.                    <div class="col-sm-10">
  32.                        <div class="checkbox">
  33.                            <label><input type="checkbox" value="">Tutaj ma się wyświetlać tekst dodany</label>
  34.                        </div>
  35.                    </div>
  36.                </div>
  37.            </div>
  38.            </html>"""
  39. if __name__ == "__main__":
  40.     app.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement