aboutsummaryrefslogtreecommitdiffstats
path: root/templates/login.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/login.html')
-rw-r--r--templates/login.html75
1 files changed, 75 insertions, 0 deletions
diff --git a/templates/login.html b/templates/login.html
new file mode 100644
index 0000000..757aac0
--- /dev/null
+++ b/templates/login.html
@@ -0,0 +1,75 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>Login</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
+ <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
+ <link href="{{url_for('static', filename='wedding.css')}}" rel="stylesheet">
+ </head>
+ <body>
+ <div class="row">
+ <img class="center-block" src="{{url_for('static', filename='banner1.jpg')}}" alt="banner">
+ </div>
+ <div id="login" class="row">
+ <form id = "connection" action="/login/" role="form"
+ class="form-horizontal" method="post">
+ <div class="form-group">
+ <label id="lab-lang" class="col-md-4 control-label">Language:</label>
+ <div class="col-md-8">
+ <label class="radio-inline">
+ <input type="radio" value="en" name="language" checked>
+ English
+ </label>
+ <label class="radio-inline">
+ <input type="radio" value="fr" name="language">
+ Français
+ </label>
+ <label class="radio-inline">
+ <input type="radio" value="sr" name="language">
+ Naši</label>
+ </div>
+ <br/>
+ </div>
+ <div class="form-group">
+ <label for="name" class="col-md-4 control-label">Name:</label>
+ <div class="col-md-5">
+ <input type="text" id="name" class="form-control"
+ name="username" placeholder="{{_('Name')}}"/>
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="password" class="col-md-4 control-label">
+ Password:</label>
+ <div class="col-md-5">
+ <input type="password" id="password" class="form-control"
+ 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">
+ Login
+ </button>
+ </div>
+ </div>
+ </form>
+
+ </div>
+ </div>
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
+ <script type="text/javascript" src="{{url_for('static', filename='wedding.js')}}"></script>
+ </body>
+</html>