ENH: Collection Edit (parity with reading) (#48)
This commit is contained in:
parent
bfae4422f4
commit
cb3bc081a6
19 changed files with 337 additions and 121 deletions
12
app/validations/collection-species.js
Normal file
12
app/validations/collection-species.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import {
|
||||
validatePresence,
|
||||
validateNumber,
|
||||
} from 'ember-changeset-validations/validators';
|
||||
|
||||
export default {
|
||||
sex: validatePresence(true),
|
||||
count: validateNumber({ allowBlank: true, integer: true, positive: true }),
|
||||
countEstimated: validatePresence(true),
|
||||
species: validatePresence(true),
|
||||
collection: validatePresence(true),
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue