parent
e1abc5e4cb
commit
f41f4caccd
17 changed files with 221 additions and 77 deletions
16
app/validations/collection.js
Normal file
16
app/validations/collection.js
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue