[Bps-public-commit] rt-extension-formtools branch privileged-forms-listing created. 0.53-53-g7611d1c
BPS Git Server
git at git.bestpractical.com
Mon Oct 16 17:54:42 UTC 2023
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt-extension-formtools".
The branch, privileged-forms-listing has been created
at 7611d1c995ef3b0abc932a5d7ff22d82a9da1505 (commit)
- Log -----------------------------------------------------------------
commit 7611d1c995ef3b0abc932a5d7ff22d82a9da1505
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Mon Oct 16 13:53:24 2023 -0400
Add a Forms Home page for privileged users
Sending privileged users to /SelfService/Forms.html caused
the SelfService menu to be displayed, which would be
confusing for privileged users.
diff --git a/html/Callbacks/FormTools/Elements/Tabs/Privileged b/html/Callbacks/FormTools/Elements/Tabs/Privileged
index ab2b30c..7c48c7b 100644
--- a/html/Callbacks/FormTools/Elements/Tabs/Privileged
+++ b/html/Callbacks/FormTools/Elements/Tabs/Privileged
@@ -30,6 +30,12 @@ if ( $m->request_path =~ m{^/Admin/FormTools/} ) {
}
}
+# Forms home page for all privileged users
+my $formtools = Menu->child('home')->child(
+ formtools => title => loc('Forms'),
+ path => '/Forms.html',
+);
+
</%init>
<%args>
$Path
diff --git a/html/Forms.html b/html/Forms.html
new file mode 100644
index 0000000..dc6cd3c
--- /dev/null
+++ b/html/Forms.html
@@ -0,0 +1,4 @@
+<& /Elements/Header, Title => loc("Forms Home") &>
+<& /Elements/Tabs &>
+
+<& /Elements/Forms/ListForms &>
-----------------------------------------------------------------------
hooks/post-receive
--
rt-extension-formtools
More information about the Bps-public-commit
mailing list