From 794f21d3d1774333b2c29b7690e5871730bf080f Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Mon, 20 Mar 2023 16:05:36 +0100 Subject: [PATCH] work in progress: data modes with tabs and buttons --- exampleSite/content/app/person.md | 8 ++++++-- layouts/shortcodes/pv/tabs-mode.md | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/exampleSite/content/app/person.md b/exampleSite/content/app/person.md index b534d7a..f484346 100644 --- a/exampleSite/content/app/person.md +++ b/exampleSite/content/app/person.md @@ -16,12 +16,16 @@ cyberscopes example site - view / edit person (user) data. {{< pv/fieldset name="person" >}} {{< pv/tabs-mode >}} + Id: {{< pv/input-textline name="id" defexpr="conf.itemid" >}} First Name: {{< pv/input-textline name="firstname" attrs="autofocus" >}} Last Name: {{< pv/input-textline name="lastname" >}} Email: {{< pv/input-textline name="email" default="hm@cy55.de" >}} - {{< pv/button mode="edit" >}} - {{< pv/button mode="query" action="query" label="Query" >}} + + {{< pv/button mode="query" action="query" label="Execute Query" >}} + {{< pv/button mode="edit" label="Submit Data" >}} + {{< pv/button mode="edit" action="delete" label="Delete" >}} + {{< pv/button mode="new" label="Create Item" >}}
{{< pv/display linkto="data.id" diff --git a/layouts/shortcodes/pv/tabs-mode.md b/layouts/shortcodes/pv/tabs-mode.md index c9b46ac..8fd5eaa 100644 --- a/layouts/shortcodes/pv/tabs-mode.md +++ b/layouts/shortcodes/pv/tabs-mode.md @@ -11,5 +11,9 @@ Edit +