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

191 lines
6.7 KiB
HTML
Raw Normal View History

2014-05-30 10:33:32 +02:00
<!-- Homework UI Templates -->
2014-05-31 18:09:56 +02:00
2014-05-30 10:33:32 +02:00
<template name="layout">
2014-05-25 12:01:38 +02:00
<div class="container">
<div class="page-header">
2014-05-25 15:39:45 +02:00
<h1 id="title">Homework<br>
<small>management for students</small>
2014-05-25 15:38:34 +02:00
</h1>
2014-05-25 12:01:38 +02:00
</div>
<div class="center-block" id="ui-container">
2014-05-30 10:33:32 +02:00
{{> yield}}
2014-05-25 12:01:38 +02:00
</div>
<hr>
<div class="center-block" align="center">{{> footer}}</div>
2014-05-25 12:01:38 +02:00
</div>
2014-05-30 10:33:32 +02:00
{{> ribbon}}
</template>
2014-05-25 12:01:38 +02:00
<template name="menu">
2014-05-31 18:09:56 +02:00
<div align="center" class="menu-container">
<div class="btn-group">
<button type="button" class="btn btn-success go-archive">
<i class="fa fa-book fa-inverse"></i> Archive
</button>
<button type="button" class="btn btn-primary go-home">
<i class="fa fa-home fa-inverse"></i> Home
</button>
<button type="button" class="btn btn-warning go-account">
<i class="fa fa-user fa-inverse"></i> Account
</button>
</div></div>
2014-05-30 10:33:32 +02:00
</template>
2014-05-31 18:09:56 +02:00
<template name="notes">{{> error }} {{> notelist }} {{> menu}}</template>
<template name="note">{{> error }} {{> editor }} {{> notelist }} <hr> {{> menu}}</template>
2014-05-30 10:33:32 +02:00
<template name="noteadder">
<div align="center">
<input type="text" id="newNote" class="form-control" placeholder="Add new note">
</div>
</template>
<template name="notelist">
2014-05-30 12:18:04 +02:00
<div class="list-group">
2014-05-25 12:01:38 +02:00
{{#each notes}}
2014-05-30 12:18:04 +02:00
<a href="{{pathFor 'note'}}" class="note list-group-item">
2014-05-28 14:57:43 +02:00
<span class="note-content">
<button type="button" class="edit-note close">
<i class="fa fa-pencil-square-o"></i>
</button>
<b>{{title}}</b> <span class="note-desc">{{content}}</span>
</span>
2014-05-26 16:07:48 +02:00
<button type="button" class="close-note close">&times;</button>
2014-05-30 12:18:04 +02:00
</a>
2014-05-25 12:01:38 +02:00
{{/each}}
2014-05-30 12:18:04 +02:00
</div>
2014-05-30 10:33:32 +02:00
{{#if empty}}
<p align="center">You don't have any notes, try adding a new one</p>
{{/if}}
{{> noteadder }}
2014-05-25 12:01:38 +02:00
</template>
2014-05-31 18:09:56 +02:00
<template name="login">
2014-05-26 16:07:48 +02:00
<div align="center">
2014-05-31 18:09:56 +02:00
<h3 class="cool-header"><i class="fa fa-sign-in fa-2x"></i><br>Login</h3>
{{> error}}
2014-05-28 08:39:11 +02:00
{{#if loggingIn}}
{{> loading}}
2014-05-27 12:46:51 +02:00
{{else}}
2014-05-31 18:09:56 +02:00
<input type="text" id="l-mail" class="form-control login in-bt" placeholder="Email">
<input type="password" id="l-pass" class="form-control login in-bt" placeholder="Password">
2014-05-27 12:46:51 +02:00
{{/if}}
2014-05-30 10:33:32 +02:00
{{#unless loggingIn}}
2014-05-31 18:09:56 +02:00
<a role="button" href="{{pathFor 'register'}}" class="btn-fix btn btn-success">Register</a>
<a role="button" id="login-btn" class="btn-fix btn btn-primary">Login</a>
2014-05-27 12:46:51 +02:00
{{/unless}}
2014-05-26 16:07:48 +02:00
</div>
2014-05-25 14:17:55 +02:00
</template>
2014-05-31 18:09:56 +02:00
<template name="register">
<div align="center">
<h3 class="cool-header"><i class="fa fa-user fa-2x"></i><br>New Account</h3>
{{#if loggingIn}}
{{> loading}}
{{else}}
<p>Password must be at least 8 characters. You will need to confirm your email.</p>
{{> error}}
<input type="text" id="r-mail" class="form-control register in-bt" placeholder="Email">
<input type="password" id="r-pass" class="form-control register in-bt" placeholder="Password">
<input type="password" id="r-pass-2" class="form-control register pass-rep in-bt" placeholder="Repeat Password">
<button type="button" id="register-btn" class="btn-fix btn btn-primary">Create</button>
<a role="button" href="{{pathFor 'home'}}" class="btn-fix btn btn-success">Home</a>
{{/if}}
</div>
</template>
2014-05-30 10:33:32 +02:00
<template name="account">
2014-05-26 16:07:48 +02:00
<div align="center">
2014-05-31 18:09:56 +02:00
<h3 class="cool-header"><i class="fa fa-user fa-2x"></i><br>{{email}}</h3>
{{> menu}}
<div class="btn-group btns-account">
<button type="button" id="btn-logout" class="btn btn-warning">
<i class="fa fa-sign-out fa-inverse"></i> Logout
</button>
<button type="button" id="btn-delete-me" class="btn btn-danger">
<i class="fa fa-exclamation-circle fa-inverse"></i> Delete
</button>
</div>
2014-05-26 16:07:48 +02:00
</div>
2014-05-25 14:17:55 +02:00
</template>
2014-05-26 12:08:14 +02:00
2014-05-28 18:45:41 +02:00
<template name="verifyEmail">
<div align="center">
2014-05-30 11:40:15 +02:00
<p>Insert the token you received by email at the address {{email}} here, or click the link in the email we sent you.</p>
2014-05-31 18:09:56 +02:00
{{> error}}
2014-05-28 18:45:41 +02:00
<input type="text" id="token-field" class="form-control" placeholder="Token">
<div align="center" class="buttons">
<button type="button" class="btn btn-warning btn-ver" id="btn-resend">Resend Email</button>
<button type="button" class="btn btn-success btn-ver" id="btn-verify">Verify Email</button>
<button type="button" class="btn btn-danger btn-ver" id="btn-delete">Delete Account</button>
<br><button type="button" class="btn btn-primary btn-ver" id="btn-logout">Logout</button>
</div>
</div>
</template>
2014-05-26 16:07:48 +02:00
<template name="editor">
2014-05-30 10:33:32 +02:00
{{#if _id}}
2014-05-26 12:08:14 +02:00
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">
2014-05-26 19:36:59 +02:00
<div align="center">
2014-05-30 10:33:32 +02:00
<input type="text" class="form-control editor-title" value="{{title}}" placeholder="Title">
2014-05-28 14:57:43 +02:00
<button type="button" class="close close-editor">&times;</button>
</div>
2014-05-26 12:08:14 +02:00
</h3>
</div>
2014-05-26 19:36:59 +02:00
<div align="center" class="panel-body">
2014-05-30 12:18:04 +02:00
<textarea id="area" class="area form-control" rows="3" placeholder="...">{{content}}</textarea>
2014-05-26 19:36:59 +02:00
<button type="button" class="btn btn-info save-editor">Save</button>
2014-05-26 12:08:14 +02:00
</div>
</div>
{{/if}}
</template>
2014-05-26 16:07:48 +02:00
<template name="notifications">
2014-05-31 18:09:56 +02:00
{{#each notification}}
<div class="alert alert-{{type}} notification">
<p align="center">{{msg}}</p>
<button type="button" class="close close-notification">&times;</button>
</div>
{{/each}}
2014-05-26 16:07:48 +02:00
</template>
<template name="error">
2014-05-31 18:09:56 +02:00
{{#if error}}
<div align="center"><div class="alert alert-{{error.type}} error">
<p align="center">{{error.msg}}</p>
<button type="button" class="close close-error">&times;</button>
</div></div>
{{/if}}
</template>
<template name="ribbon">
2014-05-31 18:09:56 +02:00
<div class="github-fork-ribbon-wrapper right">
<div class="github-fork-ribbon">
<a href="http://github.com/fazo96/homework">Fork me on GitHub</a>
</div>
</div>
</template>
2014-05-28 08:39:11 +02:00
<template name="loading">
<div align="center" class="spinning-cog">
<i class="fa fa-cog fa-spin fa-3x"></i>
</div>
</template>
2014-05-28 10:19:06 +02:00
<template name="footer">
<p>This app is <a href="https://en.wikipedia.org/wiki/Free_software">Free Software</a>, under the <a href="http://opensource.org/licenses/MIT">MIT License</a></p>
<p>Built by Enrico Fasoli as a prototype.<br><u>Not ready for daily usage yet!</u></p>
<a class="custom-link" href="http://www.linkedin.com/profile/view?id=292450419"><i class="fa fa-linkedin fa-2x"></i></a>
<a href="http://twitter.com/fazo96"><i class="fa fa-twitter fa-2x footer-center-icon"></i></a>
<a class="custom-link" href="http://github.com/fazo96"><i class="fa fa-github fa-2x"></i></a>
</template>
<template name="404">
<div align="center">
2014-05-31 18:09:56 +02:00
<h2><i class="fa fa-exclamation-triangle fa-2x"></i><br>
Acciderbolina!<br><small>Page not found</small></h2>
</div>
</template>