-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a84f256
Showing
37 changed files
with
583 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.build* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10.29" | ||
before_install: | ||
- "curl -L http://git.io/ejPSng | /bin/sh" | ||
env: | ||
- TEST_COMMAND=meteor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 splendido | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[![Build Status](https://travis-ci.org/splendido/accounts-templates-bootstrap.svg?branch=master)](https://travis-ci.org/splendido/accounts-templates-bootstrap) | ||
accounts-templates-bootstrap | ||
============================ | ||
|
||
Meteor sign up and sign in templates (and much more!) styled for twitter Bootstrap | ||
|
||
This package depends on [accounts-templates-core](https://atmospherejs.com/package/accounts-templates-core) | ||
|
||
Learn more [here](http://accounts-templates.meteor.com) or have a look at a [live demo application](http://accounts-templates-bootstrap.meteor.com). | ||
|
||
|
||
## Warning! | ||
|
||
Adding this package with `mrt add accounts-templates-bootstrap` does not add any other packages providing Bootstrap. This is to let you choose the flavour you prefer, being it compiled, less, sass, or from CDN! | ||
|
||
At the moment it is up to date with Bootstrap 3.2.0. | ||
|
||
|
||
## Contributing | ||
|
||
Anyone is welcome to contribute. Fork, make your changes, and then submit a pull request. | ||
|
||
Thanks to all those who have contributed code changes to [this package](https://github.com/splendido/accounts-templates-bootstrap/graphs/contributors) as well as to the [core package](https://github.com/splendido/accounts-templates-core/graphs/contributors) and all who have helped by submitting bug reports and feature ideas. | ||
|
||
[![Support via Gittip](https://rawgithub.com/twolfson/gittip-badge/0.2.0/dist/gittip.png)](https://www.gittip.com/splendido/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template name="atError"> | ||
<div class="at-error"> | ||
{{#each error}} | ||
<p>{{errorText}}</p> | ||
{{/each}} | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atError.helpers(AccountsTemplates.atErrorHelpers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template name="atForm"> | ||
{{#unless hide}} | ||
<div class="at-form"> | ||
{{#if showTitle}} | ||
{{> atTitle}} | ||
{{/if}} | ||
{{#if showSignInLink}} | ||
{{> atSigninLink}} | ||
{{/if}} | ||
{{#if showOauthServices}} | ||
{{> atOauth}} | ||
{{/if}} | ||
{{#if showServicesSeparator}} | ||
{{> atSep}} | ||
{{/if}} | ||
{{#if showError}} | ||
{{> atError}} | ||
{{/if}} | ||
{{#if showResult}} | ||
{{> atResult}} | ||
{{/if}} | ||
{{#if showPwdForm}} | ||
{{> atPwdForm}} | ||
{{/if}} | ||
{{#if showSignUpLink}} | ||
{{> atSignupLink}} | ||
{{/if}} | ||
{{#if showTermsLink}} | ||
{{> atTermsLink}} | ||
{{/if}} | ||
</div> | ||
{{/unless}} | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atForm.helpers(AccountsTemplates.atFormHelpers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template name='atInput'> | ||
<div class="{{#if hasError}}has-error{{/if}} {{#if hasSuccess}}has-success{{/if}} {{#if feedback}}has-feedback{{/if}}"> | ||
{{#if showLabels}} | ||
<label for="AT_field_{{_id}}"> | ||
{{displayName}} {{#unless required}}{{optionalText}}{{/unless}} | ||
</label> | ||
{{/if}} | ||
<input type="{{type}}" id="AT_field_{{_id}}" name="AT_field_{{_id}}" placeholder="{{placeholder}}" autocapitalize="none" autocorrect="off"> | ||
{{#if negativeFeedback}} | ||
{{#if hasHerror}} | ||
<span class="glyphicon glyphicon-remove"></span> | ||
{{/if}} | ||
{{/if}} | ||
{{#if positiveFeedback}} | ||
{{#if hasSuccess}} | ||
<span class="glyphicon glyphicon-ok"></span> | ||
{{/if}} | ||
{{/if}} | ||
{{#if hasHerror}} | ||
<span>{{errorText}}</span> | ||
{{/if}} | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atInput.helpers(AccountsTemplates.atInputHelpers); | ||
|
||
// Simply 'inherites' events from AccountsTemplates | ||
Template.atInput.events(AccountsTemplates.atInputEvents); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template name="atOauth"> | ||
<div class="at-oauth"> | ||
{{#each oauthService}} | ||
{{> atSocial}} | ||
{{/each}} | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atOauth.helpers(AccountsTemplates.atOauthHelpers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template name="atPwdForm"> | ||
<div class="at-pwd-form"> | ||
<form role="form" id="at-pwd-form" class="{{disabled}}" novalidate> | ||
{{#each fields}} | ||
{{> atInput}} | ||
{{/each}} | ||
{{#if showForgotPasswordLink}} | ||
{{> atPwdLink}} | ||
{{/if}} | ||
{{> atPwdFormBtn}} | ||
</form> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atPwdForm.helpers(AccountsTemplates.atPwdFormHelpers); | ||
|
||
// Simply 'inherites' events from AccountsTemplates | ||
Template.atPwdForm.events(AccountsTemplates.atPwdFormEvents); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template name="atPwdFormBtn"> | ||
<button type="submit" class="submit {{submitDisabled}}" id="at-btn"> | ||
{{buttonText}} | ||
</button> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atPwdFormBtn.helpers(AccountsTemplates.atPwdFormBtnHelpers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template name="atPwdLink"> | ||
<div class="at-pwd-link"> | ||
<p> | ||
<a href="{{forgotPwdLink}}" id="at-forgotPwd" class="at-link {{disabled}}">{{linkText}}</a> | ||
</p> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atPwdLink.helpers(AccountsTemplates.atPwdLinkHelpers); | ||
|
||
// Simply 'inherites' events from AccountsTemplates | ||
Template.atPwdLink.events(AccountsTemplates.atPwdLinkEvents); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template name="atResult"> | ||
<div class="at-result"> | ||
{{result}} | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atResult.helpers(AccountsTemplates.atResultHelpers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template name="atSep"> | ||
<div class="at-sep"> | ||
<strong>{{sepText}}</strong> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atSep.helpers(AccountsTemplates.atSepHelpers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<template name="atSigninLink"> | ||
<div class="at-signin-link"> | ||
<p> | ||
{{text}} | ||
<a href="{{signInLink}}" id="at-signIn" class="at-link {{disabled}}">{{linkText}}</a> | ||
</p> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atSigninLink.helpers(AccountsTemplates.atSigninLinkHelpers); | ||
|
||
// Simply 'inherites' events from AccountsTemplates | ||
Template.atSigninLink.events(AccountsTemplates.atSigninLinkEvents); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<template name="atSignupLink"> | ||
<div class="at-signup-link"> | ||
<p> | ||
{{text}} | ||
<a href="{{signUpLink}}" id="at-signUp" class="at-link {{disabled}}">{{linkText}}</a> | ||
</p> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atSignupLink.helpers(AccountsTemplates.atSignupLinkHelpers); | ||
|
||
// Simply 'inherites' events from AccountsTemplates | ||
Template.atSignupLink.events(AccountsTemplates.atSignupLinkEvents); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template name='atSocial'> | ||
<button class="at-social-btn {{disabled}}" id="at-{{name}}" name="{{name}}"> | ||
<i class="{{iconClass}}"></i> {{buttonText}} | ||
</button> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atSocial.helpers(AccountsTemplates.atSocialHelpers); | ||
|
||
// Simply 'inherites' events from AccountsTemplates | ||
Template.atSocial.events(AccountsTemplates.atSocialEvents); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<template name="atTermsLink"> | ||
<div class="at-terms-link"> | ||
<p> | ||
{{text}} | ||
{{#if privacyUrl}} | ||
<a href="{{privacyUrl}}" class="{{disabled}}">{{privacyLinkText}}</a> | ||
{{/if}} | ||
{{#if showTermsAnd}} | ||
{{and}} | ||
{{/if}} | ||
{{#if termsUrl}} | ||
<a href="{{termsUrl}}" class="{{disabled}}">{{termsLinkText}}</a> | ||
{{/if}} | ||
</p> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atTermsLink.helpers(AccountsTemplates.atTermsLinkHelpers); | ||
|
||
// Simply 'inherites' events from AccountsTemplates | ||
Template.atTermsLink.events(AccountsTemplates.atTermsLinkEvents); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template name="atTitle"> | ||
<div class="at-title"> | ||
<h3>{{title}}</h3> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atTitle.helpers(AccountsTemplates.atTitleHelpers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
button.at-social-btn#at-facebook { | ||
background: #3B5998; | ||
color: #fff; | ||
} | ||
button.at-social-btn#at-facebook.disabled { | ||
color: #ddd; | ||
background: #666666; | ||
} | ||
button.at-social-btn#at-facebook:hover { | ||
background: #2C4780; | ||
} | ||
button.at-social-btn#at-linkedin { | ||
background: #338AB0; | ||
color: #fff; | ||
} | ||
button.at-social-btn#at-linkedin.disabled { | ||
color: #ddd; | ||
background: #666666; | ||
} | ||
button.at-social-btn#at-linkedin:hover { | ||
background: #0571A6; | ||
} | ||
button.at-social-btn#at-twitter { | ||
background: #4099FF; | ||
color: #fff; | ||
} | ||
button.at-social-btn#at-twitter.disabled { | ||
color: #ddd; | ||
background: #666666; | ||
} | ||
button.at-social-btn#at-twitter:hover { | ||
background: #3288EB; | ||
} | ||
button.at-social-btn#at-google { | ||
background: #db5a3c; | ||
color: #fff; | ||
} | ||
button.at-social-btn#at-google.disabled { | ||
color: #ddd; | ||
background: #666666; | ||
} | ||
button.at-social-btn#at-google:hover { | ||
background: #CA4C2E; | ||
} | ||
button.at-social-btn#at-github { | ||
background: #666; | ||
color: #fff; | ||
} | ||
button.at-social-btn#at-github.disabled { | ||
color: #ddd; | ||
background: #666666; | ||
} | ||
button.at-social-btn#at-github:hover { | ||
background: #555; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template name="fullPageAtForm"> | ||
{{> atForm}} | ||
</template> |
Oops, something went wrong.