Copied starter Meteor App files.
Cut and paste of the BasicMeteorApp.
This commit is contained in:
58
imports/ui/accounts/accounts.html
Normal file
58
imports/ui/accounts/accounts.html
Normal file
@@ -0,0 +1,58 @@
|
||||
<template name="OverrideAtForm">
|
||||
{{#unless hide}}
|
||||
<div class="at-form">
|
||||
<!--{{#if showTitle}}-->
|
||||
<!--{{> atTitle}}-->
|
||||
<!--{{/if}}-->
|
||||
{{#if showOauthServices}}
|
||||
{{> atOauth}}
|
||||
{{/if}}
|
||||
{{#if showServicesSeparator}}
|
||||
{{> atSep}}
|
||||
{{/if}}
|
||||
{{#if showError}}
|
||||
{{> atError}}
|
||||
{{/if}}
|
||||
{{#if showResult}}
|
||||
{{> atResult}}
|
||||
{{/if}}
|
||||
{{#if showMessage}}
|
||||
{{> atMessage}}
|
||||
{{/if}}
|
||||
{{#if showPwdForm}}
|
||||
{{> OverrideAtPwdForm}}
|
||||
{{/if}}
|
||||
{{#if showTermsLink}}
|
||||
{{> atTermsLink}}
|
||||
{{/if}}
|
||||
{{#if showSignInLink}}
|
||||
{{> atSigninLink}}
|
||||
{{/if}}
|
||||
{{#if showSignUpLink}}
|
||||
{{> atSignupLink}}
|
||||
{{/if}}
|
||||
{{#if showResendVerificationEmailLink}}
|
||||
{{> atResendVerificationEmailLink}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/unless}}
|
||||
</template>
|
||||
|
||||
<template name="OverrideAtPwdForm">
|
||||
<div class="at-pwd-form">
|
||||
<form role="form" id="at-pwd-form" novalidate action="#" method="POST">
|
||||
<fieldset {{disabled}}>
|
||||
{{#each fields}}
|
||||
{{> atInput}}
|
||||
{{/each}}
|
||||
{{#if showReCaptcha}}
|
||||
{{> atReCaptcha}}
|
||||
{{/if}}
|
||||
{{> atPwdFormBtn}}
|
||||
{{#if showForgotPasswordLink}}
|
||||
{{> atPwdLink}}
|
||||
{{/if}}
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</template>
|
||||
18
imports/ui/accounts/accounts.js
Normal file
18
imports/ui/accounts/accounts.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Template } from 'meteor/templating';
|
||||
|
||||
import './accounts.html';
|
||||
|
||||
// Simply 'inherits' helpers from AccountsTemplates
|
||||
Template.OverrideAtForm.helpers(AccountsTemplates.atFormHelpers);
|
||||
|
||||
// Simply 'inherits' helpers and events from AccountsTemplates
|
||||
Template.OverrideAtPwdForm.helpers(AccountsTemplates.atPwdFormHelpers);
|
||||
Template.OverrideAtPwdForm.events(AccountsTemplates.atPwdFormEvents);
|
||||
|
||||
// We identified the templates that need to be overridden by looking at the available templates
|
||||
// here: https://github.com/meteor-useraccounts/unstyled/tree/master/lib
|
||||
// Template['override-atPwdFormBtn'].replaces('atPwdFormBtn');
|
||||
// Template['override-atPwdForm'].replaces('atPwdForm');
|
||||
// Template['override-atTextInput'].replaces('atTextInput');
|
||||
// Template['override-atTitle'].replaces('atTitle');
|
||||
// Template['override-atError'].replaces('atError');
|
||||
Reference in New Issue
Block a user