ENH: Collections (update) (#40)

Fixes #36
This commit is contained in:
Matthew Ryan Dillon 2017-10-07 17:37:24 -07:00 committed by GitHub
parent e1abc5e4cb
commit f41f4caccd
17 changed files with 221 additions and 77 deletions

View file

@ -0,0 +1,16 @@
import {
validatePresence,
validateNumber,
} from 'ember-changeset-validations/validators';
export default {
project: validatePresence(true),
studyLocation: validatePresence(true),
collectionMethod: validatePresence(true),
collectionType: validatePresence(true),
numberOfTraps: validateNumber({ allowBlank: true, integer: true, positive: true }),
collectionStartDate: validatePresence(true),
collectionEndDate: validatePresence(true),
// TODO: Fix time formats
}