1
0
mirror of https://github.com/fazo96/homework.git synced 2025-01-25 14:34:20 +01:00
homework/index.html

47 lines
1.3 KiB
HTML
Raw Normal View History

2014-05-25 12:01:38 +02:00
<body>
<div class="container">
<div class="page-header">
<h1>Homework <small>management for students</small></h1>
</div>
<div class="center-block" id="quicknotes">
2014-05-25 14:17:55 +02:00
{{> notes}} {{#if currentUser}}
<div align="center">
{{> adder}} {{> userInfo}}
</div>
{{/if}} {{#unless currentUser}} {{> auth}} {{/unless}}
2014-05-25 12:01:38 +02:00
</div>
</div>
</body>
<template name="notes">
<ul class="list-group">
{{#each notes}}
<li class="list-group-item">
{{content}}
<button type="button" class="btn btn-danger pull-right delete">
<i class="fa fa-trash-o"></i>
</button>
</li>
{{/each}}
</ul>
</template>
<template name="adder">
<input type="text" id="newNote" class="form-control" placeholder="Add new note">
</template>
2014-05-25 14:17:55 +02:00
<template name="auth">
<p align="center">
Register a new Account or login
</p>
<input type="text" id="mail" class="form-control login" placeholder="Email">
<input type="text" id="pass" class="form-control login" placeholder="Password">
<br>
<button type="button" id="register" class="btn btn-info">Register</button>
<button type="button" id="login" class="btn btn-info">Login</button>
</template>
<template name="userInfo">
<button type="button" id="logout" class="btn btn-danger">Logout</button>
</template>