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 >
2014-05-30 15:20:27 +02:00
< small > management for students< / small >
2014-05-25 15:38:34 +02:00
< / h1 >
2014-05-25 12:01:38 +02:00
< / div >
2014-06-01 15:42:02 +02:00
{{> yield region='outside'}}
2014-05-27 15:33:50 +02:00
< 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 >
2014-05-30 15:20:27 +02:00
< hr >
2014-05-27 15:33:50 +02:00
< 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
2014-05-30 15:20:27 +02:00
< template name = "menu" >
2014-05-31 18:09:56 +02:00
< div align = "center" class = "menu-container" >
< div class = "btn-group" >
2014-06-03 15:40:59 +02:00
< button type = "button" class = "btn btn-success go-archive" >
2014-05-31 18:09:56 +02:00
< 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-30 15:20:27 +02:00
2014-06-03 15:40:59 +02:00
< template name = "notes" > {{> error }} {{> editor }} {{> notelist }} {{> menu}}< / template >
< template name = "archive" > {{> error}} {{> archivedlist }} {{> 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-06-03 14:34:06 +02:00
{{#each notelist}}
2014-06-03 15:40:59 +02:00
< a href = "{{pathFor 'notes'}}" class = "note list-group-item" >
2014-05-28 14:57:43 +02:00
< span class = "note-content" >
2014-06-01 11:47:27 +02:00
{{#if active}}< a role = "button" href = "{{pathFor 'notes'}}" class = "edit-note close" >
2014-05-28 14:57:43 +02:00
< i class = "fa fa-pencil-square-o" > < / i >
2014-06-01 11:47:27 +02:00
< / a > {{/if}}
2014-05-28 14:57:43 +02:00
< b > {{title}}< / b > < span class = "note-desc" > {{content}}< / span >
2014-06-01 11:47:27 +02:00
< span class = "note-date label label-{{getDate.color}}" > {{getDate.msg}}< / span >
2014-05-28 14:57:43 +02:00
< / span >
2014-05-26 16:07:48 +02:00
< button type = "button" class = "close-note close" > × < / 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}}
2014-06-03 15:40:59 +02:00
< p class = "lead" align = "center" > You don't have any notes, try adding a new one!< / p >
2014-05-30 10:33:32 +02:00
{{/if}}
{{> noteadder }}
2014-05-25 12:01:38 +02:00
< / template >
2014-06-03 15:40:59 +02:00
< template name = "archivedlist" >
{{#unless empty}}
< p align = "center" class = "lead" > This is your archive.< / p >
< p align = "center" > Click on a note to bring it back to the homepage.< / p >
{{/unless}}
< div class = "list-group" >
{{#each archived}}
< a href = "{{pathFor 'archive'}}" class = "note list-group-item" >
< span class = "note-content" >
< b > {{title}}< / b > < span class = "note-desc" > {{content}}< / span >
<!-- <span class="note - date label label - {{getDate.color}}">{{getDate.msg}}</span> -->
< / span >
< button type = "button" class = "close-note close" >
< i class = "fa fa-trash-o" > < / i > < / button >
< / a >
{{/each}}
< / div >
{{#if empty}}
< p class = "lead" align = "center" > Your archive is empty< / p >
{{else}}
< div align = "center" class = "in-bt" > < button class = "btn btn-danger clear" >
< i class = "fa fa-trash-o" > < / i > Clear< / button >
< / div >
{{/if}}
< / template >
2014-06-01 11:47:27 +02:00
< template name = "editor" >
{{#if _id}}
< div class = "panel panel-info" >
< div class = "panel-heading" >
< h3 class = "panel-title" >
< div align = "center" >
< input type = "text" class = "form-control editor-title" value = "{{title}}" placeholder = "Title" >
< button type = "button" class = "close close-editor" > × < / button >
< / div >
< / h3 >
< / div >
< div align = "center" class = "panel-body" >
< textarea id = "area" class = "area form-control in-bt" rows = "3" placeholder = "..." > {{content}}< / textarea >
< input class = "form-control date" value = "{{date}}" placeholder = "Due Date" >
< button type = "button" class = "btn btn-info save-editor" > Save< / button >
< / div >
< / div >
{{/if}}
< / template >
2014-05-31 18:09:56 +02:00
< template name = "login" >
2014-05-26 16:07:48 +02:00
< div align = "center" >
2014-06-01 15:42:02 +02:00
< h3 class = "cool-header" > < i class = "fa fa-sign-in fa-2x" > < / i > < br > Sign In< / h3 >
2014-05-31 18:09:56 +02:00
{{> 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-06-01 15:42:02 +02:00
< a role = "button" href = "{{pathFor 'register'}}" class = "btn-fix btn btn-success" >
< i class = "fa fa-user" > < / i > Sign Up< / a >
< a role = "button" id = "login-btn" class = "btn-fix btn btn-primary" >
Log In< / a >
< a role = "button" href = "{{pathFor 'home'}}" class = "btn-fix btn btn-warning" >
< i class = "fa fa-home" > < / i > Home< / 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" >
2014-06-01 15:42:02 +02:00
< button type = "button" id = "register-btn" class = "btn-fix btn btn-primary" >
< i class = "fa fa-user" > < / i > Sign Up< / button >
< a role = "button" href = "{{pathFor 'home'}}" class = "btn-fix btn btn-success" >
< i class = "fa fa-home" > < / i > Home< / a >
2014-05-31 18:09:56 +02:00
{{/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" >
2014-06-01 15:42:02 +02:00
< i class = "fa fa-sign-out fa-inverse" > < / i > Sign Out
2014-05-31 18:09:56 +02:00
< / 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-31 19:31:56 +02:00
< h3 class = "cool-header" > < i class = "fa fa-envelope fa-2x" > < / i > < br >
Please verify your Email Address< br > < small > {{email}}< / small > < / h3 >
< p > Click the link inside the email we sent you or paste it here:< / 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" >
2014-06-03 14:34:06 +02:00
< button type = "button" class = "btn btn-warning btn-ver" id = "btn-resend" >
< i class = "fa fa-refresh" > < / i > Resend< / button >
< button type = "button" class = "btn btn-success btn-ver" id = "btn-verify" >
< i class = "fa fa-check" > < / i > Verify Token< / button >
< button type = "button" class = "btn btn-danger btn-ver" id = "btn-delete" >
< i class = "fa fa-trash-o" > < / i > Delete Account< / button >
< br > < button type = "button" class = "btn btn-primary btn-ver" id = "btn-logout" >
< i class = "fa fa-sign-out" > < / i > Sign Out< / button >
2014-05-28 18:45:41 +02:00
< / div >
< / div >
< / 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" > × < / button >
< / div >
{{/each}}
2014-05-26 16:07:48 +02:00
< / template >
2014-05-27 15:33:50 +02:00
2014-05-28 12:50:30 +02:00
< 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" > × < / button >
< / div > < / div >
{{/if}}
2014-05-28 12:50:30 +02:00
< / template >
2014-05-27 15:33:50 +02:00
< 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 >
2014-05-27 15:33:50 +02:00
< / 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 >
2014-06-01 15:42:02 +02:00
< p > Built by Enrico Fasoli< / p >
2014-05-28 10:19:06 +02:00
< 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 >
2014-05-30 15:20:27 +02:00
< template name = "404" >
< div align = "center" >
2014-06-01 15:42:02 +02:00
< h1 > < i class = "fa fa-exclamation-triangle fa-2x" > < / i > < br >
404< br > < small > Page not found< / small > < / h1 >
< a style = "margin-top:15px" role = "button" class = "btn btn-success" href = "{{pathFor 'home'}}" >
< i class = "fa fa-home" > < / i > Home
< / a >
< / div >
< / template >
< template name = "homepage" >
< div align = "center" > < i class = "fa fa-book fa-5x" > < / i > < / div >
< p align = "center" style = "margin-top: 20px" class = "lead" > A fast, free, organized way to manage your school tasks.< / p >
{{#if loggingIn}}{{> loading}} {{/if}}
< div class = "row" align = "center" >
< div class = "col-sm-4" >
< h2 > < i class = "fa fa-code-fork" > < / i > Free.
< small > This app is not only < u > free of charge and ads< / u > , it's also < b > Free Software< / b > .
Anyone can < a href = "http://github.com/fazo96/homework" > see the code< / a > and contribute.
< / small > < / h2 >
< / div >
< div class = "col-sm-4" >
< h2 > < i class = "fa fa-check" > < / i > Simple.
< small > Just what you need: a homework list organized by date. Nothing more, nothing less.< / small > < / h2 >
< / div >
< div class = "col-sm-4" >
< h2 > < i class = "fa fa-bolt" > < / i > Modern.
< small > Works on all modern < u > Mobile< / u > and < u > Desktop< / u > browsers.
Your password is safe and < u > not< / u > stored online.< / small > < / h2 > < / div >
< / div >
{{#unless loggingIn}}
< div align = "center" style = "margin-top:20px;" >
< a href = "{{pathFor 'login'}}" role = "button" class = "btn btn-primary" >
< i class = "fa fa-sign-in" > < / i > Sign In
< / a >
< a href = "{{pathFor 'register'}}" role = "button" class = "btn btn-success" >
< i class = "fa fa-user" > < / i > Sign Up
< / a >
2014-05-30 15:20:27 +02:00
< / div >
2014-06-01 15:42:02 +02:00
{{/unless}}
2014-05-30 15:20:27 +02:00
< / template >