[Rt-commit] [rtir] 07/09: Update Edit Page for CustomFieldGroupings
Kevin Falcone
falcone at bestpractical.com
Fri Jul 25 15:16:02 EDT 2014
This is an automated email from the git hooks/post-receive script.
falcone pushed a commit to branch 3.2/customfieldgroupings
in repository rtir.
commit 255f3e3af8cfdfa956f0183779080ab2234e382c
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/EditDates | 1 +
html/RTIR/Elements/EditPeople | 3 +++
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/html/RTIR/Edit.html b/html/RTIR/Edit.html
index 0fc2736..b180a07 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/EditDates b/html/RTIR/Elements/EditDates
index e41bc91..1cadd11 100644
--- a/html/RTIR/Elements/EditDates
+++ b/html/RTIR/Elements/EditDates
@@ -89,6 +89,7 @@
% }
</td>
</tr>
+ <& /Elements/EditCustomFields, Object => $TicketObj, Grouping => 'Dates', InTable => 1 &>
</table>
<%ARGS>
$TicketObj => undef
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