[Rt-commit] [rtir] 07/10: Update Edit Page for CustomFieldGroupings

Kevin Falcone falcone at bestpractical.com
Mon Aug 18 16:39:17 EDT 2014


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch master
in repository rtir.

commit b5a5e3a6f575408f91b4967b3fd53bfc4295e0ab
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Jul 25 15:06:36 2014 -0400

    Update Edit Page for CustomFieldGroupings
    
    RTIR basically squashes all of the core Modify*.html pages into one
    monolithic Edit.html, so we show the Custom Groups for editing and we
    put Date and People CFs in the appropriate part of the Edit page.
    
    This relies on a core patch that allows us to pass @Groupings to
    EditCustomFieldCustomGroupings.
---
 html/RTIR/Edit.html           | 9 ++++++++-
 html/RTIR/Elements/EditPeople | 3 +++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/html/RTIR/Edit.html b/html/RTIR/Edit.html
index f45daab..2063712 100644
--- a/html/RTIR/Edit.html
+++ b/html/RTIR/Edit.html
@@ -125,11 +125,18 @@
 % }
 
   <& /RTIR/Elements/EditCustomFields, %ARGS, TicketObj => $Ticket &>
-
 </table>
 
 </&>
 
+<& /Elements/EditCustomFieldCustomGroupings,
+    %ARGS,
+    Object => $Ticket,
+    CustomFieldGenerator => sub { $Ticket->QueueObj->TicketCustomFields },
+    Groupings => [ RT::CustomField->CustomGroupings('RTIR::Ticket'), '' ],
+&>
+
+
 </td>
 </tr>
 <tr>
diff --git a/html/RTIR/Elements/EditPeople b/html/RTIR/Elements/EditPeople
index 45be448..b9a932d 100644
--- a/html/RTIR/Elements/EditPeople
+++ b/html/RTIR/Elements/EditPeople
@@ -96,6 +96,9 @@
         UserOp => $UserOp, UserField => $UserField &> 
 </td>
 </tr>
+
+<& /Elements/EditCustomFields, Object => $Ticket, Grouping => 'People', InTable => 1 &>
+
 </table>
 
 <%ARGS>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list