[Rt-commit] rt branch, 4.2/self-service-create-page-field-class-and-callbacks, created. rt-4.2.3-11-gbc50f17

? sunnavy sunnavy at bestpractical.com
Wed Mar 5 09:22:46 EST 2014


The branch, 4.2/self-service-create-page-field-class-and-callbacks has been created
        at  bc50f1753b92675d04457d2ba259fb2cdae15bab (commit)

- Log -----------------------------------------------------------------
commit d62041e2133e1fd532fbd8f3488aaa4a0a054eee
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Mar 5 22:04:58 2014 +0800

    add css classes for basic fields on self service create page
    
    so we can easily target them in customized code.

diff --git a/share/html/SelfService/Create.html b/share/html/SelfService/Create.html
index 49c489c..8e56add 100644
--- a/share/html/SelfService/Create.html
+++ b/share/html/SelfService/Create.html
@@ -56,7 +56,7 @@
 % }
 
 <table width="100%">
-<tr>
+<tr class="queue">
 <td class="label">
 <&|/l&>Queue</&>:
 </td>
@@ -66,7 +66,7 @@
 </td>
 </tr>
 <% $m->callback( CallbackName => 'AfterQueue', %ARGS, QueueObj => $queue_obj ) %>
-<tr>
+<tr class="requestors">
 <td class="label">
 <&|/l&>Requestors</&>:
 </td>
@@ -74,7 +74,7 @@
 <& /Elements/EmailInput, Name => 'Requestors', Size => '20', Default => $ARGS{Requestors} || $session{CurrentUser}->EmailAddress, AutocompleteMultiple => 1 &>
 </td>
 </tr>
-<tr>
+<tr class="cc">
 <td class="label">
 <&|/l&>Cc</&>:
 </td>
@@ -82,7 +82,7 @@
 <& /Elements/EmailInput, Name => 'Cc', Size => '20', Default => $ARGS{Cc} || '' &>
 </td>
 </tr>
-<tr>
+<tr class="subject">
 <td class="label">
 <&|/l&>Subject</&>:
 </td>
@@ -90,7 +90,7 @@
 <input name="Subject" size="60" maxsize="200" value="<%$ARGS{Subject} || ''%>" />
 </td>
 </tr>
-<tr>
+<tr class="custom-fields">
     <td colspan="2">
         <& /Elements/EditCustomFields,
             %ARGS,
@@ -103,7 +103,7 @@
 <& /Ticket/Elements/AddAttachments, %ARGS, QueueObj => $queue_obj &>
 </table>
 <table width="100%">
-<tr>
+<tr class="content">
 <td colspan="2">
 <&|/l&>Describe the issue below</&>:<br />
 <& /Elements/MessageBox, Default => $ARGS{Content} || ''  &>

commit bc50f1753b92675d04457d2ba259fb2cdae15bab
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Mar 5 22:17:06 2014 +0800

    more callbacks for self service create page
    
    new added FormStart, BeforeQueue and BeforeCustomFields

diff --git a/share/html/SelfService/Create.html b/share/html/SelfService/Create.html
index 8e56add..55dccc5 100644
--- a/share/html/SelfService/Create.html
+++ b/share/html/SelfService/Create.html
@@ -55,7 +55,10 @@
 <input type="hidden" class="hidden" name="<% $key %>" value="<% $ARGS{$key} %>" />
 % }
 
+<% $m->callback( CallbackName => 'FormStart', ARGSRef => \%ARGS, QueueObj => $queue_obj ) %>
+
 <table width="100%">
+<% $m->callback( CallbackName => 'BeforeQueue', ARGSRef => \%ARGS, QueueObj => $queue_obj ) %>
 <tr class="queue">
 <td class="label">
 <&|/l&>Queue</&>:
@@ -90,6 +93,7 @@
 <input name="Subject" size="60" maxsize="200" value="<%$ARGS{Subject} || ''%>" />
 </td>
 </tr>
+<% $m->callback( CallbackName => 'BeforeCustomFields', ARGSRef => \%ARGS, QueueObj => $queue_obj ) %>
 <tr class="custom-fields">
     <td colspan="2">
         <& /Elements/EditCustomFields,

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


More information about the rt-commit mailing list