-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of ssh://github.com/meteor-useraccounts/semanti…
…c-ui Conflicts: lib/at_semantic-ui.css
- Loading branch information
Showing
13 changed files
with
91 additions
and
68 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
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<template name="atError"> | ||
<div class="at-error ui icon error message"> | ||
<div class="at-error ui large icon error message"> | ||
<i class="warning icon"></i> | ||
<div class="content"> | ||
{{#if singleError}} | ||
{{#each error}} | ||
<p>{{errorText}}</p> | ||
<p><strong>{{errorText}}</strong></p> | ||
{{/each}} | ||
{{else}} | ||
<ul class="list"> | ||
{{#each error}} | ||
<li>{{errorText}}</li> | ||
<li><strong>{{errorText}}</strong></li> | ||
{{/each}} | ||
</ul> | ||
{{/if}} | ||
{{/if}} | ||
</div> | ||
</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 |
---|---|---|
@@ -1,39 +1,44 @@ | ||
<template name="atForm"> | ||
{{#unless hide}} | ||
<div class="at-form ui large fluid {{#if showError}} error {{/if}} {{#if showResult}} success {{/if}} form segment"> | ||
{{#if showTitle}} | ||
{{> atTitle}} | ||
{{/if}} | ||
{{#if showTitle}} | ||
{{> atTitle}} | ||
{{#if showOauthServices}} | ||
{{> atOauth}} | ||
{{/if}} | ||
{{#if showServicesSeparator}} | ||
{{> atSep}} | ||
{{/if}} | ||
{{#if showError}} | ||
{{> atError}} | ||
{{/if}} | ||
{{#if showResult}} | ||
{{> atResult}} | ||
{{/if}} | ||
{{#if showMessage}} | ||
{{> atMessage}} | ||
{{/if}} | ||
{{#if showPwdForm}} | ||
{{> atPwdForm}} | ||
{{/if}} | ||
{{#if showTermsLink}} | ||
{{> atTermsLink}} | ||
{{/if}} | ||
{{#if showSignInLink}} | ||
{{> atSigninLink}} | ||
{{/if}} | ||
{{#if showSignUpLink}} | ||
{{> atSignupLink}} | ||
{{/if}} | ||
{{#if showResendVerificationEmailLink}} | ||
{{> atResendVerificationEmailLink}} | ||
{{/if}} | ||
</div> | ||
<div class="ui divider"></div> | ||
{{/if}} | ||
{{/if}} | ||
{{#if showOauthServices}} | ||
{{> atOauth}} | ||
{{/if}} | ||
{{#if showServicesSeparator}} | ||
{{> atSep}} | ||
{{/if}} | ||
{{#if showPwdForm}} | ||
{{> atPwdForm}} | ||
{{/if}} | ||
{{#if showError}} | ||
{{> atError}} | ||
{{/if}} | ||
{{#if showResult}} | ||
{{> atResult}} | ||
{{/if}} | ||
{{#if showMessage}} | ||
{{> atMessage}} | ||
{{/if}} | ||
{{#if any showTermsLink showSignInLink showSignUpLink showResendVerificationEmailLink}} | ||
<div class="ui large message"> | ||
{{#if showTermsLink}} | ||
{{> atTermsLink}} | ||
{{/if}} | ||
{{#if showSignInLink}} | ||
{{> atSigninLink}} | ||
{{/if}} | ||
{{#if showSignUpLink}} | ||
{{> atSignupLink}} | ||
{{/if}} | ||
{{#if showResendVerificationEmailLink}} | ||
{{> atResendVerificationEmailLink}} | ||
{{/if}} | ||
</div> | ||
{{/if}} | ||
{{/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 |
---|---|---|
@@ -1,2 +1,10 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atForm.helpers(AccountsTemplates.atFormHelpers); | ||
|
||
// Helper for checking if you should hide message div under atPwdForm | ||
// if there is nothing to display in it | ||
Template.atForm.helpers({ | ||
any: function (a, b, c) { | ||
return a || b || c ? true : false; | ||
} | ||
}); |
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
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
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
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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
<template name="atPwdForm"> | ||
<div class="at-pwd-form"> | ||
<form id="at-pwd-form" action="#" method="POST" novalidate> | ||
{{#each fields}} | ||
{{> atInput}} | ||
{{/each}} | ||
{{#if showReCaptcha}} | ||
{{> atReCaptcha}} | ||
{{/if}} | ||
{{#if showForgotPasswordLink}} | ||
{{> atPwdLink}} | ||
{{/if}} | ||
{{> atPwdFormBtn}} | ||
<form id="at-pwd-form" action="#" method="POST" novalidate class="ui large form"> | ||
<div class="ui stacked segment"> | ||
{{#each fields}} | ||
{{> atInput}} | ||
{{/each}} | ||
{{#if showReCaptcha}} | ||
{{> atReCaptcha}} | ||
{{/if}} | ||
{{#if showForgotPasswordLink}} | ||
{{> atPwdLink}} | ||
{{/if}} | ||
{{> atPwdFormBtn}} | ||
</div> | ||
</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
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
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
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
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