package templates templ CollectionRules(user User, collection CollectionData) { Collection Rules - { collection.Name } - Bookhoard @Header(user, "/collections")
{ collection.Icon }

{ collection.Name }

Auto-Assign Rules

Existing Rules

@Icon("filter", "h-6 w-6")

No Rules Yet

Create auto-assign rules to automatically add books to this collection

Create New Rule

Uncheck to disable without deleting

Rule Examples

1

Add all Science Fiction books

Field: genre
Operator: equals
Value: Science Fiction
2

Add books from a specific series

Field: series
Operator: starts with
Value: Harry Potter
3

Add books published in a year range

Field: copyright_year
Operator: greater than
Value: 2020
}