[Rt-commit] r16421 - in rt/branches/3.999-DANGEROUS: share/html/Ticket/Elements

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Oct 21 10:56:13 EDT 2008


Author: sunnavy
Date: Tue Oct 21 10:56:12 2008
New Revision: 16421

Modified:
   rt/branches/3.999-DANGEROUS/   (props changed)
   rt/branches/3.999-DANGEROUS/share/html/Ticket/Elements/EditCustomFields

Log:
 r17252 at sunnavys-mb:  sunnavy | 2008-10-21 22:46:28 +0800
 uses view edit_cfs


Modified: rt/branches/3.999-DANGEROUS/share/html/Ticket/Elements/EditCustomFields
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Ticket/Elements/EditCustomFields	(original)
+++ rt/branches/3.999-DANGEROUS/share/html/Ticket/Elements/EditCustomFields	Tue Oct 21 10:56:12 2008
@@ -45,65 +45,4 @@
 %# those contributions and any derivatives thereof.
 %# 
 %# END BPS TAGGED BLOCK }}}
-<table>
-% my $i = 0;
-% while ( my $CustomField = $CustomFields->next ) {
-% next unless $CustomField->current_user_has_right('ModifyCustomField');
-% $i++;
-% if ( $i % 2 ) {
-<tr>
-% }
-<td width="50%">
-<table>
-  <tr id="CF-<%$CustomField->id%>-EditRow">
-    <td class="labeltop">
-      <b><%$CustomField->name%></b><br />
-      <i><%$CustomField->friendly_type%></i>
-    </td>
-    <td class="entry">
-      <& /Elements/EditCustomField, 
-          object => $ticket_obj,
-          custom_field => $CustomField,
-          name_prefix => $name_prefix,
-          default => $m->notes('Field-' . $CustomField->id) || $ARGS{"CustomField-".$CustomField->id},
-      &>
-%  if (my $msg = $m->notes('InvalidField-' . $CustomField->id)) {
-        <br />
-        <em style="color: red"><% $msg %></em>
-%  }
-    </td>
-  </tr>
-</table>
-</td>
-
-% unless ( $i % 2 ) {
-</tr>
-% }
-
-% }
-
-%# close row if required
-% if ( $i % 2 ) {
-</tr>
-% }
-
-</table>
-<%INIT>
-my $CustomFields;
-
-if ($ticket_obj) {
-    $CustomFields = $ticket_obj->custom_fields();
-    $name_prefix .= "object-RT::Model::Ticket-".$ticket_obj->id."-CustomField-";
-} else {
-    $CustomFields = $queue_obj->ticket_custom_fields();
-    $name_prefix .= "object-RT::Model::Ticket--CustomField-";
-}
-
-$m->callback( Callbackname => 'massage_custom_fields', CustomFields => $CustomFields );
-
-</%INIT>
-<%ARGS>
-$name_prefix => ''
-$ticket_obj => undef
-$queue_obj => undef
-</%ARGS>
+% Jifty->web->region( name => 'modify_cfs', path => '/ticket/_elements/edit_cfs' );


More information about the Rt-commit mailing list