diff --git a/agaric/templates/patterns/detail/detail.ui_patterns.yml b/agaric/templates/patterns/detail/detail.ui_patterns.yml new file mode 100644 index 0000000..bdf6269 --- /dev/null +++ b/agaric/templates/patterns/detail/detail.ui_patterns.yml @@ -0,0 +1,19 @@ +detail: + label: Detail + description: Show a single detail field. + variants: + default: + label: Default + fields: + label: + type: text + label: Label + description: The field label. + preview: Project name + value: + type: text + label: Value + description: The field contents, or value. + preview: The Agaric Initiatives + libraries: + - octavia/global diff --git a/agaric/templates/patterns/detail/pattern-detail.html.twig b/agaric/templates/patterns/detail/pattern-detail.html.twig new file mode 100644 index 0000000..14a0937 --- /dev/null +++ b/agaric/templates/patterns/detail/pattern-detail.html.twig @@ -0,0 +1,8 @@ +{{ label }} +

+ {{ label }} + {% for item in items %} + {{ item.content }} + {% endfor %} +

+{{ value }}