Update
This commit is contained in:
parent
221bc6c5ff
commit
2b14e193e7
3 changed files with 59 additions and 10 deletions
|
|
@ -6,6 +6,24 @@
|
|||
<title>Flask App</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Welcome to Flask</h1>
|
||||
<div class="meteoAPI">
|
||||
<h1>WebServices : MétéoAPI</h1>
|
||||
<form method="POST">
|
||||
<label>Rechercher une ville : </label><input name="search"> <input type="submit" value="Search"></p>
|
||||
</form>
|
||||
<div class="response">
|
||||
<br><br>
|
||||
{% if response %}
|
||||
<h2>Results</h2>
|
||||
<ul>
|
||||
{% for city in response %}
|
||||
<ul>
|
||||
<li>{{city}}</li>
|
||||
</ul>
|
||||
{%endfor%}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue