[Rt-commit] rt branch, 4.2/after-form-callback-on-ticket-modify-pages, created. rt-4.1.23-1-g9e37c55
? sunnavy
sunnavy at bestpractical.com
Mon Sep 23 10:37:08 EDT 2013
The branch, 4.2/after-form-callback-on-ticket-modify-pages has been created
at 9e37c55b7c589a051e3761afa90e8bd373763e42 (commit)
- Log -----------------------------------------------------------------
commit 9e37c55b7c589a051e3761afa90e8bd373763e42
Author: sunnavy <sunnavy at bestpractical.com>
Date: Mon Sep 23 22:29:16 2013 +0800
add AfterForm callback on ticket modify pages
it's flexible if we want to add some info or warnings there by those callbacks
diff --git a/share/html/Ticket/Modify.html b/share/html/Ticket/Modify.html
index e9ef761..8c7e3c1 100644
--- a/share/html/Ticket/Modify.html
+++ b/share/html/Ticket/Modify.html
@@ -65,6 +65,8 @@
<& /Elements/Submit, Name => 'SubmitTicket', Label => loc('Save Changes'), Caption => loc("If you've updated anything above, be sure to"), color => "#993333" &>
</form>
+
+% $m->callback(CallbackName => 'AfterForm', ARGSRef => \%ARGS, Ticket => $TicketObj);
<%INIT>
my $TicketObj = LoadTicket($id);
diff --git a/share/html/Ticket/ModifyAll.html b/share/html/Ticket/ModifyAll.html
index 3821a87..36f2c1c 100644
--- a/share/html/Ticket/ModifyAll.html
+++ b/share/html/Ticket/ModifyAll.html
@@ -136,6 +136,8 @@
Caption => loc("If you've updated anything above, be sure to"), color => "#333399" &>
</form>
+% $m->callback(CallbackName => 'AfterForm', ARGSRef => \%ARGS, Ticket => $Ticket);
+
<%INIT>
diff --git a/share/html/Ticket/ModifyDates.html b/share/html/Ticket/ModifyDates.html
index 44c9395..400693c 100644
--- a/share/html/Ticket/ModifyDates.html
+++ b/share/html/Ticket/ModifyDates.html
@@ -60,6 +60,7 @@
<& /Elements/Submit, Name => 'SubmitTicket', Label => loc('Save Changes') &>
</form>
+% $m->callback(CallbackName => 'AfterForm', ARGSRef => \%ARGS, Ticket => $TicketObj);
<%INIT>
diff --git a/share/html/Ticket/ModifyLinks.html b/share/html/Ticket/ModifyLinks.html
index 8b3717f..c566778 100644
--- a/share/html/Ticket/ModifyLinks.html
+++ b/share/html/Ticket/ModifyLinks.html
@@ -67,8 +67,7 @@
<& /Elements/Submit, Name => 'SubmitTicket', Label => loc('Save Changes') &>
</form>
-
-
+% $m->callback(CallbackName => 'AfterForm', ARGSRef => \%ARGS, Ticket => $Ticket);
<%INIT>
my $Ticket = LoadTicket($id);
diff --git a/share/html/Ticket/ModifyPeople.html b/share/html/Ticket/ModifyPeople.html
index 977bb30..18de2cf 100644
--- a/share/html/Ticket/ModifyPeople.html
+++ b/share/html/Ticket/ModifyPeople.html
@@ -76,6 +76,8 @@
<& /Elements/Submit, Name => 'SubmitTicket', Label => loc('Save Changes'), Caption => loc("If you've updated anything above, be sure to"), color => "#333399" &>
</form>
+% $m->callback(CallbackName => 'AfterForm', ARGSRef => \%ARGS, Ticket => $Ticket);
+
<%INIT>
my @results;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list