Adds more info to indicate required metadata on item submission settings..
This commit is contained in:
parent
52caa430e0
commit
93f4027dd6
|
@ -378,10 +378,10 @@ registerBlockType('tainacan/item-submission-form', {
|
|||
return (
|
||||
<li>
|
||||
<CheckboxControl
|
||||
label={ collectionMetadata[index].name }
|
||||
label={ collectionMetadata[index].name + (collectionMetadata[index].required == 'yes' ? ' *' : '') }
|
||||
disabled={ collectionMetadata[index].required == 'yes' }
|
||||
checked={ isMetadatumEnabled ? true : false }
|
||||
help={ collectionMetadata[index].metadata_type_object.name + (collectionMetadata[index].collection_id != collectionId ? (' (' + __('Inherited', 'tainacan') + ')' ) : '') }
|
||||
help={ collectionMetadata[index].metadata_type_object.name + (collectionMetadata[index].required == 'yes' ? (', ' + __('Required', 'tainacan')) : '' ) + (collectionMetadata[index].collection_id != collectionId ? (' (' + __('Inherited', 'tainacan') + ')' ) : '') }
|
||||
onChange={ (isEnabled) => toggleIsEnabledMetadatum(isEnabled, index) }
|
||||
/>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue