set ldap auth
This commit is contained in:
80
templates/login.tmpl
Normal file
80
templates/login.tmpl
Normal file
@ -0,0 +1,80 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Foodoles written in Go</title>
|
||||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.13/semantic.min.css">
|
||||
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.13/semantic.min.js"></script>
|
||||
<style type="text/css"> h2 { margin: 2em 0em; } .ui.container { padding-top: 5em; padding-bottom: 5em; } </style>
|
||||
|
||||
<style type="text/css">
|
||||
body > .grid {
|
||||
height: 100%;
|
||||
}
|
||||
.image {
|
||||
margin-top: -100px;
|
||||
}
|
||||
.column {
|
||||
max-width: 450px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(document)
|
||||
.ready(function() {
|
||||
$('.ui.form')
|
||||
.form({
|
||||
fields: {
|
||||
password: {
|
||||
identifier : 'password',
|
||||
rules: [
|
||||
{
|
||||
type : 'empty',
|
||||
prompt : 'Please enter your password'
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
})
|
||||
;
|
||||
})
|
||||
;
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="ui middle aligned center aligned grid">
|
||||
<div class="column">
|
||||
<h2 class="ui blue image header">
|
||||
<div class="content">
|
||||
Log-in
|
||||
</div>
|
||||
</h2>
|
||||
<form class="ui large form" action="/" method="POST">
|
||||
<div class="ui stacked segment">
|
||||
<div class="field">
|
||||
<div class="ui left icon input">
|
||||
<i class="user icon"></i>
|
||||
<input type="text" name="user" placeholder="User Name">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="ui left icon input">
|
||||
<i class="lock icon"></i>
|
||||
<input type="password" name="password" placeholder="Password">
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui fluid large blue submit button">Login</div>
|
||||
</div>
|
||||
|
||||
<div class="ui error message"></div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -5,25 +5,20 @@
|
||||
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.13/semantic.min.js"></script>
|
||||
<style type="text/css"> h2 { margin: 2em 0em; } .ui.container { padding-top: 5em; padding-bottom: 5em; } </style>
|
||||
<script src="https://js.pusher.com/4.1/pusher.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/canvasjs/1.7.0/canvasjs.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
{{ range .Foods }}
|
||||
<div>
|
||||
<div class="ui massive label"> {{ .Icon }}</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="ui container">
|
||||
<h2 class="ui header">TV Show - Poll Results</h2><br/>
|
||||
<h2 class="ui header">Foodoles - Results</h2><br/>
|
||||
<div class="ui one column grid link cards">
|
||||
<div class="card">
|
||||
<div id="canvas" style="height: 500px; width: 100%;"></div>
|
||||
{{ range .Votes }}
|
||||
{{.}}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="color:#fff" id="key">{{.Key}}</div>
|
||||
<div style="color:#fff" id="cluster">{{.Cluster}}</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user