From dd82a27357402466390044d001824657f6617626 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 25 May 2016 16:29:05 -0700 Subject: indicator on the top bar for new activity on tickets, #41670 --- httemplate/elements/header-full.html | 3 +++ httemplate/elements/notify-tickets.html | 37 +++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 httemplate/elements/notify-tickets.html (limited to 'httemplate/elements') diff --git a/httemplate/elements/header-full.html b/httemplate/elements/header-full.html index 699f82c53..db38eafba 100644 --- a/httemplate/elements/header-full.html +++ b/httemplate/elements/header-full.html @@ -67,6 +67,9 @@ Example: <% $company_name || 'ExampleCo' %> + + <& notify-tickets.html &> + Logged in as <% $FS::CurrentUser::CurrentUser->username |h %>  logout
Preferences % if ( $conf->config("ticket_system") % && FS::TicketSystem->access_right(\%session, 'ModifySelf') ) { diff --git a/httemplate/elements/notify-tickets.html b/httemplate/elements/notify-tickets.html new file mode 100644 index 000000000..f7db52e7b --- /dev/null +++ b/httemplate/elements/notify-tickets.html @@ -0,0 +1,37 @@ +% if ($enabled) { + +
+% if ( $UnrepliedTickets->Count > 0 ) { + +
+ <% emt('New activity on [quant,_1,ticket]', $UnrepliedTickets->Count) %> +
+% } else { + <% emt('No new activity on tickets') %> +% } +
+% } +<%init> +use Class::Load 'load_class'; + +my $enabled = $FS::TicketSystem::system eq 'RT_Internal'; +my $UnrepliedTickets; +if ($enabled) { + my $class = 'RT::Search::UnrepliedTickets'; + load_class($class); + my $session = FS::TicketSystem->session; + my $CurrentUser = $session->{CurrentUser}; + $UnrepliedTickets = RT::Tickets->new($CurrentUser); + my $search = $class->new(TicketsObj => $UnrepliedTickets); +warn Dumper $search; + $search->Prepare; +} + -- cgit v1.2.1 From 10b49cdbb4b4290f82ef08a035a84747b8cd2211 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Mon, 30 May 2016 10:10:58 -0700 Subject: debug --- httemplate/elements/notify-tickets.html | 1 - 1 file changed, 1 deletion(-) (limited to 'httemplate/elements') diff --git a/httemplate/elements/notify-tickets.html b/httemplate/elements/notify-tickets.html index f7db52e7b..faf998e2b 100644 --- a/httemplate/elements/notify-tickets.html +++ b/httemplate/elements/notify-tickets.html @@ -31,7 +31,6 @@ if ($enabled) { my $CurrentUser = $session->{CurrentUser}; $UnrepliedTickets = RT::Tickets->new($CurrentUser); my $search = $class->new(TicketsObj => $UnrepliedTickets); -warn Dumper $search; $search->Prepare; } -- cgit v1.2.1 From 6c853dd55563ae035c1bf17695d3cb2ad3452110 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 31 May 2016 12:39:50 -0700 Subject: typo --- httemplate/elements/tr-select-cust-part_pkg.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/elements') diff --git a/httemplate/elements/tr-select-cust-part_pkg.html b/httemplate/elements/tr-select-cust-part_pkg.html index 6244b6cb7..f4af405fc 100644 --- a/httemplate/elements/tr-select-cust-part_pkg.html +++ b/httemplate/elements/tr-select-cust-part_pkg.html @@ -86,7 +86,7 @@ % } else { # so that the rest of the page works correctly - + % } -- cgit v1.2.1 From 95502dabd865c34d1483b20c583523b12fe9332d Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 2 Jun 2016 02:34:14 -0500 Subject: RT#42394: paycvv during cust_payby replace (v4+ only) [fixed paycvv removal] --- httemplate/elements/cust_payby.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/elements') diff --git a/httemplate/elements/cust_payby.html b/httemplate/elements/cust_payby.html index c7d4549df..60e6eb8b1 100644 --- a/httemplate/elements/cust_payby.html +++ b/httemplate/elements/cust_payby.html @@ -68,7 +68,7 @@ ID = "<%$id%>_paycvv" SIZE = 2 MAXLENGTH = 4 - VALUE = "<% scalar($cgi->param($name.'_paycvv')) %>" + VALUE = "<% scalar($cgi->param($name.'_paycvv')) || ('*' x length($cust_payby->paycvv)) %>" onChange = "<% $onchange %>" >
<% mt('CVV2') |h %> (<% mt('help') |h %>) -- cgit v1.2.1