1
0
mirror of https://github.com/fazo96/homework.git synced 2025-01-10 12:14:22 +01:00
homework/index.html

58 lines
1.8 KiB
HTML
Raw Normal View History

2014-05-25 15:38:34 +02:00
<head>
<title>Homework</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>
2014-05-25 12:01:38 +02:00
<body>
<div class="container">
<div class="page-header">
2014-05-25 15:39:45 +02:00
<h1 id="title">Homework<br>
2014-05-25 15:38:34 +02:00
<small id="small">management for students</small>
</h1>
2014-05-25 12:01:38 +02:00
</div>
<div class="center-block" id="quicknotes">
2014-05-25 14:17:55 +02:00
{{> notes}} {{#if currentUser}}
2014-05-25 19:49:32 +02:00
<div align="center"> {{> userInfo}} </div>
{{/if}}
{{#unless currentUser}} <div align="center">{{> auth}}</div>{{/unless}}
2014-05-25 12:01:38 +02:00
</div>
</div>
</body>
<template name="notes">
<ul class="list-group">
{{#each notes}}
2014-05-25 19:49:32 +02:00
<li class="note list-group-item">
2014-05-25 12:01:38 +02:00
{{content}}
2014-05-25 19:49:32 +02:00
<!--<button type="button" class="btn btn-danger pull-right delete">
2014-05-25 12:01:38 +02:00
<i class="fa fa-trash-o"></i>
2014-05-25 19:49:32 +02:00
</button>-->
<button type="button" class="delete close">&times;</button>
2014-05-25 12:01:38 +02:00
</li>
{{/each}}
</ul>
</template>
2014-05-25 14:17:55 +02:00
<template name="auth">
<p align="center">
Register a new Account or login
</p>
2014-05-25 19:49:32 +02:00
{{#each alerts}}
<div class="alert alert-warning">
{{msg}}
<button type="button" class="delete close">&times;</button>
</div>
{{/each}}
2014-05-25 14:17:55 +02:00
<input type="text" id="mail" class="form-control login" placeholder="Email">
2014-05-25 19:49:32 +02:00
<input type="password" id="pass" class="form-control login" placeholder="Password">
2014-05-25 14:17:55 +02:00
<br>
2014-05-25 19:49:32 +02:00
<p>Password must be at least 8 characters. Email must be a valid email</p>
<button type="button" id="register" class="btn-login btn btn-info">Register</button>
<button type="button" id="login" class="btn-login btn btn-info">Login</button>
2014-05-25 14:17:55 +02:00
</template>
<template name="userInfo">
2014-05-25 19:49:32 +02:00
<input type="text" id="newNote" class="form-control" placeholder="Add new note">
<p>Logged in as {{in}}</p>
2014-05-25 14:17:55 +02:00
<button type="button" id="logout" class="btn btn-danger">Logout</button>
</template>