diff --git a/templates/collection_rules.templ b/templates/collection_rules.templ new file mode 100644 index 0000000..142f051 --- /dev/null +++ b/templates/collection_rules.templ @@ -0,0 +1,409 @@ +package templates + +templ CollectionRules(user User, collection CollectionDetailData) { + + +
+ + +Auto-Assign Rules
+Create auto-assign rules to automatically add books to this collection
+Books that would be added by this rule:
+ +Add all Science Fiction books
+
+ Field: genre
+ Operator: equals
+ Value: Science Fiction
+
+ Add books from a specific series
+
+ Field: series
+ Operator: starts with
+ Value: Harry Potter
+
+ Add books published in a year range
+
+ Field: copyright_year
+ Operator: greater than
+ Value: 2020
+
+ Auto-Assign Rules
Create auto-assign rules to automatically add books to this collection
Books that would be added by this rule:
Add all Science Fiction books
Field: genre
Operator: equals
Value: Science FictionAdd books from a specific series
Field: series
Operator: starts with
Value: Harry PotterAdd books published in a year range
Field: copyright_year
Operator: greater than
Value: 2020