[Rt-commit] rt branch, create-action, updated. 7cddbf291a32844044e503764301b87f784ef099

sartak at bestpractical.com sartak at bestpractical.com
Tue Sep 22 07:47:51 EDT 2009


The branch, create-action has been updated
       via  7cddbf291a32844044e503764301b87f784ef099 (commit)
      from  66a3f02de0d00b6444173c72c66ad089434cdbdc (commit)

Summary of changes:
 lib/RT/Action/CreateTicket.pm |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit 7cddbf291a32844044e503764301b87f784ef099
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Sep 22 07:47:41 2009 -0400

    Add labels for ticket create fields

diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index 5ed1ef4..33259c2 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -10,19 +10,23 @@ use Jifty::Param::Schema;
 use Jifty::Action schema {
     param status =>
         render as 'select',
-        valid_values are 'new', 'open'; # XXX
+        valid_values are 'new', 'open',
+        label is _('Status'); # XXX
 
     param owner =>
         render as 'select',
-        valid_values are lazy { RT->nobody };
+        valid_values are lazy { RT->nobody },
+        label is _('Owner');
 
     param subject =>
         render as 'text',
         display_length is 60,
-        max_length is 200;
+        max_length is 200,
+        label is _('Subject');
 
     param content =>
-        render as 'textarea';
+        render as 'textarea',
+        label is _('Describe the issue below');
 };
 
 sub after_set_queue {
@@ -35,16 +39,19 @@ sub after_set_queue {
 
     $self->add_role_group_parameter(
         name          => 'requestors',
+        label         => _('Requestors'),
         default_value => Jifty->web->current_user->email,
     );
 
     $self->add_role_group_parameter(
         name  => 'cc',
+        label => _('Cc'),
         hints => _('(Sends a carbon-copy of this update to a comma-delimited list of email addresses. These people <strong>will</strong> receive future updates.)'),
     );
 
     $self->add_role_group_parameter(
         name  => 'admin_cc',
+        label => _('Admin Cc'),
         hints => _('(Sends a carbon-copy of this update to a comma-delimited list of administrative email addresses. These people <strong>will</strong> receive future updates.)'),
     );
 }

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


More information about the Rt-commit mailing list