[Bps-public-commit] rt-extension-automaticassignment branch, master, updated. 788f5043b06aef1b95847cebe4a762d29b762ae0

Shawn Moore shawn at bestpractical.com
Wed Aug 10 16:21:46 EDT 2016


The branch, master has been updated
       via  788f5043b06aef1b95847cebe4a762d29b762ae0 (commit)
      from  1178b91c91c3f9bde82f24729eedb7b3e9823662 (commit)

Summary of changes:
 html/Admin/{Queues => Global}/AutomaticAssignment.html      |  9 +--------
 html/Callbacks/AutomaticAssignment/Elements/Tabs/Privileged | 10 ++++++++++
 2 files changed, 11 insertions(+), 8 deletions(-)
 copy html/Admin/{Queues => Global}/AutomaticAssignment.html (69%)
 create mode 100644 html/Callbacks/AutomaticAssignment/Elements/Tabs/Privileged

- Log -----------------------------------------------------------------
commit 788f5043b06aef1b95847cebe4a762d29b762ae0
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Wed Aug 10 20:18:07 2016 +0000

    Add global AutomaticAssignment default config page

diff --git a/html/Admin/Global/AutomaticAssignment.html b/html/Admin/Global/AutomaticAssignment.html
new file mode 100644
index 0000000..311346f
--- /dev/null
+++ b/html/Admin/Global/AutomaticAssignment.html
@@ -0,0 +1,27 @@
+<& /Elements/Header, Title => $title &>
+<& /Elements/Tabs &>
+<& /Elements/ListActions, actions => \@results &>
+
+<form method="post" class="automatic-assignment" action="AutomaticAssignment.html">
+
+<h1>Filters</h1>
+
+<& /Admin/Queues/Elements/Filter/BusinessHours, i => 0 &>
+<& /Admin/Queues/Elements/Filter/ExcludedDates, i => 1 &>
+<& /Admin/Queues/Elements/Filter/MemberOfGroup, i => 2 &>
+<& /Admin/Queues/Elements/Filter/MemberOfRole, i => 3 &>
+
+<h1>Chooser</h1>
+
+<& /Admin/Queues/Elements/Chooser/Random &>
+<& /Admin/Queues/Elements/Chooser/RoundRobin &>
+<& /Admin/Queues/Elements/Chooser/TicketStatus &>
+<& /Admin/Queues/Elements/Chooser/TimeLeft &>
+
+</form>
+
+<%INIT>
+my @results;
+
+my $title = loc('Automatic Assignment global defaults');
+</%INIT>
diff --git a/html/Callbacks/AutomaticAssignment/Elements/Tabs/Privileged b/html/Callbacks/AutomaticAssignment/Elements/Tabs/Privileged
new file mode 100644
index 0000000..2bccb39
--- /dev/null
+++ b/html/Callbacks/AutomaticAssignment/Elements/Tabs/Privileged
@@ -0,0 +1,10 @@
+<%INIT>
+return unless Menu->child('admin')
+           && Menu->child('admin')->child('global');
+
+Menu->child('admin')->child('global')->child(
+    'automaticassignment' =>
+    title => loc('Automatic Assignment'),
+    path => "/Admin/Global/AutomaticAssignment.html",
+);
+</%INIT>

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list