Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

der login view zeigt manchmal keine form

  • Loading branch information...
commit 0186496393d0f78793a083422f8a8f1bca2eb42a 1 parent 6d79575
Stephan authored
Showing with 84 additions and 2 deletions.
  1. +1 −1  server.js
  2. +83 −1 views/login.ejs
View
2  server.js
@@ -121,7 +121,7 @@ app.listen( port );
/////// ADD ALL YOUR ROUTES HERE /////////
-app.get('/', indexRequest);
+app.get('/', ensureAuthenticated, indexRequest);
app.get('/index', indexRequest);
app.get('/edit', indexRequest);
app.get('/overview', indexRequest);
View
84 views/login.ejs
@@ -1,4 +1,54 @@
-<% if (message) { %>
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+<link rel="stylesheet" href="app/styles/bootstrap.min.css">
+<!-- Generic page styles -->
+<link rel="stylesheet" href="app/styles/style.css">
+<!-- Bootstrap styles for responsive website layout, supporting different screen sizes -->
+<link rel="stylesheet" href="app/styles/bootstrap-responsive.min.css">
+<!-- Bootstrap CSS fixes for IE6 -->
+<!--[if lt IE 7]><link rel="stylesheet" href="http://blueimp.github.com/cdn/css/bootstrap-ie6.min.css"><![endif]-->
+<!-- Bootstrap Image Gallery styles -->
+<link rel="stylesheet" href="app/styles/bootstrap-image-gallery.min.css">
+<!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
+<link rel="stylesheet" href="app/styles/jquery.fileupload-ui.css">
+
+ <title>DFF Locale Editor</title>
+
+ <!-- Application styles. -->
+
+ <!--(if target release)>
+ <link rel="stylesheet" href="release.css">
+ <!(endif)-->
+
+ <!--(if target debug)>
+ <link rel="stylesheet" href="debug.css">
+ <!(endif)-->
+
+ <!--(if target dummy)><!-->
+ <link rel="stylesheet" href="/app/styles/index.css">
+ <!--<!(endif)-->
+</head>
+
+<body>
+ <!-- Main container. -->
+<header>
+ <div class="pull-left">
+ <img src="/assets/img/logo.png">
+ </div>
+ <div id="loadIndicator" class="pull-right loading" style="display:none;">
+ <img src="/assets/img/loading.gif">
+ </div>
+<div class="clearfix">
+ </div>
+<hr>
+</header>
+
+ <div role="main" id="stage">
+
<div class="container">
<div class="row">
<div class="alert alert-error">
@@ -24,7 +74,39 @@
<input type="submit" value="Submit"/>
</div>
</form>
+ <form action="/login" method="post">
+ <div>
+ <label>Username:</label>
+ <input type="text" name="username"/><br/>
+ </div>
+ <div>
+ <label>Password:</label>
+ <input type="password" name="password"/>
+ </div>
+ <div>
+ <input type="submit" value="Submit"/>
+ </div>
+ </form>
+
</div>
</div>
</div>
+
+ </div>
+
+ <!-- Application source. -->
+
+ <!--(if target release)>
+ <script data-main="/app/config" src="source.min.js"></script>
+ <!(endif)-->
+
+ <!--(if target debug)>
+ <script data-main="/app/config" src="source.js"></script>
+ <!(endif)-->
+
+ <!--(if target dummy)><!-->
+ <script data-main="/app/config" src="/vendor/js/libs/require.js"></script>
+ <!--<!(endif)-->
+</body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.