[Bps-public-commit] rt-extension-formtools branch dynamic-forms-from-config updated. 0.53-14-g422f6a6
BPS Git Server
git at git.bestpractical.com
Tue Sep 19 21:09:04 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, dynamic-forms-from-config has been updated
via 422f6a6bcb2754f64f38c193e8a6c8731f9b1a74 (commit)
via e649e992f3c14fae17c00196b452ed0ccb8cd6e8 (commit)
from ff6d0ac06a7adfbbfc618e08460f647af2807926 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 422f6a6bcb2754f64f38c193e8a6c8731f9b1a74
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Tue Sep 19 17:09:00 2023 -0400
Basic component layout
diff --git a/html/Admin/FormTools/Modify.html b/html/Admin/FormTools/Modify.html
index 479614a..146d4a2 100644
--- a/html/Admin/FormTools/Modify.html
+++ b/html/Admin/FormTools/Modify.html
@@ -4,11 +4,28 @@
<div id="formtools-edit">
<& /Admin/Elements/FormToolsHelp &>
<div class="row">
-<div class="formtools-component-menu boxcontainer col-md-3" id="formtools-component-wrapper">
-<&| /Widgets/TitleBox, title => loc('FormTools Components') &>
-<p>FormTools help goes here.</p>
-</&>
-</div>
+ <div class="formtools-component-menu boxcontainer col-md-3" id="formtools-component-wrapper">
+ <&| /Widgets/TitleBox, title => loc('FormTools Components') &>
+ <div aria-label="FormTools HTML Components">
+ <button type="button" class="btn btn-outline-primary btn-block">H1 Element</button>
+ <button type="button" class="btn btn-outline-primary btn-block">H2 Element</button>
+ <button type="button" class="btn btn-outline-primary btn-block">HR Element</button>
+ </div>
+ <hr />
+ <div aria-label="FormTools RT Core Components">
+ <button type="button" class="btn btn-outline-primary btn-block">Requestors</button>
+ <button type="button" class="btn btn-outline-primary btn-block">Owner</button>
+ <button type="button" class="btn btn-outline-primary btn-block">Subject</button>
+ <button type="button" class="btn btn-outline-primary btn-block">Content</button>
+ </div>
+ <hr />
+ <div aria-label="FormTools RT Custom Fields">
+ <button type="button" class="btn btn-outline-primary btn-block">Custom Field 1</button>
+ <button type="button" class="btn btn-outline-primary btn-block">Custom Field 2</button>
+ <button type="button" class="btn btn-outline-primary btn-block">Custom Field 3</button>
+ </div>
+ </&>
+ </div>
<div class="formtools-form-pages boxcontainer col-md-9" id="formtools-pages-wrapper">
<&| /Widgets/TitleBox, title => loc('FormTools Pages') &>
% my @form_pages = keys %{$form->{'formtools-pages'}};
commit e649e992f3c14fae17c00196b452ed0ccb8cd6e8
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Tue Sep 19 16:49:44 2023 -0400
Add menus
diff --git a/html/Callbacks/FormTools/Elements/Tabs/Privileged b/html/Callbacks/FormTools/Elements/Tabs/Privileged
new file mode 100644
index 0000000..5c39b0b
--- /dev/null
+++ b/html/Callbacks/FormTools/Elements/Tabs/Privileged
@@ -0,0 +1,22 @@
+<%init>
+
+if ( $session{'CurrentUser'}->HasRight( Object => RT->System, Right => 'SuperUser' ) ) {
+ my $formtools = Menu->child('admin')->child(
+ formtools => title => loc('FormTools'),
+ path => '/Admin/FormTools/',
+ );
+
+ $formtools->child( select => title => loc('Select'), path => '/Admin/FormTools/' );
+ $formtools->child( create => title => loc('Create'), path => '/Admin/FormTools/Create.html' );
+}
+
+if ( $m->request_path =~ m{^/Admin/FormTools/} ) {
+ my $page = PageMenu();
+ $page->child( select => title => loc('Select'), path => "/Admin/FormTools/" );
+}
+
+</%init>
+<%args>
+$Path
+$Has_Query
+</%args>
-----------------------------------------------------------------------
Summary of changes:
html/Admin/FormTools/Modify.html | 27 ++++++++++++++++++-----
html/Callbacks/FormTools/Elements/Tabs/Privileged | 22 ++++++++++++++++++
2 files changed, 44 insertions(+), 5 deletions(-)
create mode 100644 html/Callbacks/FormTools/Elements/Tabs/Privileged
hooks/post-receive
--
rt-extension-formtools
More information about the Bps-public-commit
mailing list