diff options
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html index 1dce9c4..0576890 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,13 +5,22 @@ <link rel="stylesheet" href="/static/index.css" </head> <body> + {% with messages = get_flashed_messages() %} + {% if messages %} + <ul class="error"> + {% for message in messages %} + <li>{{ message }}</li> + {% endfor %} + </ul> + {% endif %} + {% endwith %} <form method="post" action="/" enctype="multipart/form-data"> <input name="file" type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" /> - <input type="submit" /> + <input value="上传" type="submit" /> </form> </body> </html> |