Voile.Schema.Catalog.Item (Voile v0.1.26)

Copy Markdown View Source

Summary

Functions

Get attachments for this item filtered by file type

Returns availability options suitable for form selects as {label, value} tuples. Labels are humanized (underscores replaced with spaces and words capitalized).

Returns condition options for form selects as {label, value} tuples.

Get primary attachment for this item

Returns status options for form selects as {label, value} tuples.

Functions

attachments_by_type(item, file_type)

Get attachments for this item filtered by file type

availability_options()

Returns availability options suitable for form selects as {label, value} tuples. Labels are humanized (underscores replaced with spaces and words capitalized).

condition_options()

Returns condition options for form selects as {label, value} tuples.

primary_attachment(item)

Get primary attachment for this item

status_options()

Returns status options for form selects as {label, value} tuples.