This commit is contained in:
Yûki VACHOT 2021-10-18 10:11:59 +02:00
parent 221bc6c5ff
commit 2b14e193e7
3 changed files with 59 additions and 10 deletions

View file

@ -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>