Upgraded to Meteor 1.6.0.1 and NodeJS 8.9.3. Added weekly/daily property to venues to support graphing and tracking of actual income from farmers markets (they don't usually match with expected income). Added workers objects to help illustrate who did what work (who was at the market on a specific week for example, or who prep'd and who canned a batch of jam). Fixed some bugs in the venue page. Re-design of the menu to allow for more menu options.
This commit is contained in:
@@ -1,16 +1,24 @@
|
||||
import { AccountsTemplates } from 'meteor/useraccounts:core';
|
||||
|
||||
AccountsTemplates.configure({
|
||||
forbidClientAccountCreation: true,
|
||||
forbidClientAccountCreation: true, //Turn off client side account creation. The app is expected to have a feature that will do this.
|
||||
showForgotPasswordLink: true,
|
||||
defaultTemplate: 'atForm',
|
||||
defaultLayout: 'Full',
|
||||
defaultContentRegion: 'content',
|
||||
defaultLayoutRegions: {}
|
||||
// defaultTemplate: 'Auth_page',
|
||||
defaultTemplate: 'OverrideAtForm',
|
||||
//defaultTemplate: 'AuthorizationPage', //The template for all the forms related to logging in or out.
|
||||
defaultLayout: 'Login', //What page template to place the defaultTemplate in.
|
||||
defaultContentRegion: 'content', //The content region of the page template to place the defaultTemplate in.
|
||||
defaultLayoutRegions: {},
|
||||
// defaultLayout: 'Body',
|
||||
// defaultContentRegion: 'content',
|
||||
// defaultLayoutRegions: {}
|
||||
texts: {
|
||||
title: {
|
||||
signIn: ""
|
||||
},
|
||||
button: {
|
||||
signIn: "Enter"
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// This removes the password field but returns it,
|
||||
@@ -29,6 +37,7 @@ AccountsTemplates.configure({
|
||||
// pwd
|
||||
// ]);
|
||||
let pwd = AccountsTemplates.removeField('password');
|
||||
|
||||
AccountsTemplates.removeField('email');
|
||||
AccountsTemplates.addFields([
|
||||
{
|
||||
@@ -46,6 +55,13 @@ AccountsTemplates.addFields([
|
||||
re: /.+@(.+){2,}\.(.+){2,}/,
|
||||
errStr: 'Invalid email',
|
||||
},
|
||||
{
|
||||
_id: 'username_and_email',
|
||||
type: 'text',
|
||||
required: true,
|
||||
displayName: "Login",
|
||||
placeholder: "Login / Email"
|
||||
},
|
||||
pwd
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user