aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2015-03-21 18:33:17 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2015-03-21 18:33:21 -0400
commit2d9b1654749a61c05796c73e049e8e1c6bb1722c (patch)
tree1df7f6c03c0b5492b1812ac800bc3ff749425927 /templates
parent9d00ec877be9f5635b0f8a6f46016519d67a2251 (diff)
downloadwedding-website-2d9b1654749a61c05796c73e049e8e1c6bb1722c.tar.gz
handle wrong login/password and improve translations
Diffstat (limited to 'templates')
-rw-r--r--templates/login.htm24
1 files changed, 18 insertions, 6 deletions
diff --git a/templates/login.htm b/templates/login.htm
index df43728..ded1b10 100644
--- a/templates/login.htm
+++ b/templates/login.htm
@@ -18,17 +18,17 @@
<div class="form-group">
<label id="lab-lang" class="col-md-4 control-label">Language:</label>
<div class="col-md-8">
- <label id="lang-en" class="radio-inline">
+ <label class="radio-inline">
<input type="radio" value="en" name="language" checked>
English
</label>
- <label id="lang-fr" class="radio-inline">
- <input id="lang-fr" type="radio" value="fr" name="language">
+ <label class="radio-inline">
+ <input type="radio" value="fr" name="language">
Francais
</label>
- <label for="lang-sr" class="radio-inline">
- <input id="lang-sr" type="radio" value="sr" name="language">
- Nasi</label>
+ <label class="radio-inline">
+ <input type="radio" value="sr" name="language">
+ Naši</label>
</div>
<br/>
</div>
@@ -47,6 +47,17 @@
name="password" placeholder="Password"/>
</div>
</div>
+ {% with messages = get_flashed_messages() %}
+ {% if messages %}
+ {% for message in messages %}
+ <div class="alert alert-danger col-md-offset-2 col-md-7" role="alert">
+ <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true">
+ </span>
+ {{message}}
+ </div>
+ {% endfor %}
+ {% endif %}
+ {% endwith %}
<div class="form-group">
<div class="col-md-offset-4 col-md-8">
<button type="submit" class="btn btn-primary" name="login">
@@ -55,6 +66,7 @@
</div>
</div>
</form>
+
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>