From 9c68254528b6f2c7d8c1921b452fa56064783782 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 2 Mar 2008 04:06:06 +0000 Subject: import rt 3.4.6 --- rt/html/Admin/CustomFields/GroupRights.html | 44 +- rt/html/Admin/CustomFields/Modify.html | 82 +--- rt/html/Admin/CustomFields/Objects.html | 14 +- rt/html/Admin/CustomFields/UserRights.html | 28 +- rt/html/Admin/CustomFields/index.html | 35 +- rt/html/Admin/Elements/AddCustomFieldValue | 44 +- rt/html/Admin/Elements/CreateUserCalled | 10 +- rt/html/Admin/Elements/CustomFieldTabs | 6 +- rt/html/Admin/Elements/EditCustomField | 56 ++- rt/html/Admin/Elements/EditCustomFieldValues | 24 +- rt/html/Admin/Elements/EditCustomFields | 34 +- rt/html/Admin/Elements/EditQueueWatchers | 12 +- rt/html/Admin/Elements/EditScrip | 242 ++++++----- rt/html/Admin/Elements/EditScrips | 34 +- rt/html/Admin/Elements/EditTemplates | 50 +-- rt/html/Admin/Elements/EditUserComments | 14 +- rt/html/Admin/Elements/GlobalCustomFieldTabs | 6 +- rt/html/Admin/Elements/GroupTabs | 6 +- rt/html/Admin/Elements/Header | 6 +- rt/html/Admin/Elements/ListGlobalCustomFields | 8 +- rt/html/Admin/Elements/ListGlobalScrips | 19 +- rt/html/Admin/Elements/ModifyTemplate | 56 ++- rt/html/Admin/Elements/ObjectCustomFields | 6 +- rt/html/Admin/Elements/PickCustomFields | 40 +- rt/html/Admin/Elements/PickObjects | 39 +- rt/html/Admin/Elements/QueueRightsForUser | 12 +- rt/html/Admin/Elements/QueueTabs | 6 +- rt/html/Admin/Elements/SelectCustomFieldLookupType | 12 +- rt/html/Admin/Elements/SelectCustomFieldType | 12 +- rt/html/Admin/Elements/SelectGroups | 12 +- rt/html/Admin/Elements/SelectModifyGroup | 8 +- rt/html/Admin/Elements/SelectModifyQueue | 8 +- rt/html/Admin/Elements/SelectModifyUser | 8 +- rt/html/Admin/Elements/SelectNewGroupMembers | 24 +- rt/html/Admin/Elements/SelectRights | 40 +- rt/html/Admin/Elements/SelectScrip | 18 +- rt/html/Admin/Elements/SelectScripAction | 18 +- rt/html/Admin/Elements/SelectScripCondition | 18 +- rt/html/Admin/Elements/SelectSingleOrMultiple | 6 +- rt/html/Admin/Elements/SelectStage | 12 +- rt/html/Admin/Elements/SelectTemplate | 22 +- rt/html/Admin/Elements/SelectUsers | 12 +- rt/html/Admin/Elements/SystemTabs | 11 +- rt/html/Admin/Elements/Tabs | 6 +- rt/html/Admin/Elements/ToolTabs | 6 +- rt/html/Admin/Elements/UserTabs | 9 +- rt/html/Admin/Global/CustomFields/Groups.html | 47 -- .../Admin/Global/CustomFields/Queue-Tickets.html | 47 -- .../Global/CustomFields/Queue-Transactions.html | 47 -- rt/html/Admin/Global/CustomFields/Users.html | 47 -- rt/html/Admin/Global/CustomFields/index.html | 8 +- rt/html/Admin/Global/GroupRights.html | 62 ++- rt/html/Admin/Global/Scrip.html | 45 +- rt/html/Admin/Global/Scrips.html | 6 +- rt/html/Admin/Global/Template.html | 16 +- rt/html/Admin/Global/Templates.html | 6 +- rt/html/Admin/Global/UserRights.html | 30 +- rt/html/Admin/Global/index.html | 16 +- rt/html/Admin/Groups/CustomFields.html | 6 +- rt/html/Admin/Groups/GroupRights.html | 48 +- rt/html/Admin/Groups/History.html | 8 +- rt/html/Admin/Groups/Members.html | 78 ++-- rt/html/Admin/Groups/Modify.html | 48 +- rt/html/Admin/Groups/UserRights.html | 32 +- rt/html/Admin/Groups/index.html | 38 +- rt/html/Admin/Queues/CustomField.html | 6 +- rt/html/Admin/Queues/CustomFields.html | 6 +- rt/html/Admin/Queues/GroupRights.html | 60 ++- rt/html/Admin/Queues/Modify.html | 96 ++-- rt/html/Admin/Queues/People.html | 50 +-- rt/html/Admin/Queues/Scrip.html | 67 ++- rt/html/Admin/Queues/Scrips.html | 8 +- rt/html/Admin/Queues/Template.html | 16 +- rt/html/Admin/Queues/Templates.html | 6 +- rt/html/Admin/Queues/UserRights.html | 28 +- rt/html/Admin/Queues/index.html | 24 +- rt/html/Admin/Tools/Configuration.html | 10 +- rt/html/Admin/Tools/index.html | 6 +- rt/html/Admin/Users/CustomFields.html | 6 +- rt/html/Admin/Users/History.html | 8 +- rt/html/Admin/Users/Memberships.html | 6 +- rt/html/Admin/Users/Modify.html | 302 +++++++------ rt/html/Admin/Users/index.html | 28 +- rt/html/Admin/autohandler | 6 +- rt/html/Admin/index.html | 12 +- rt/html/Approvals/Display.html | 14 +- rt/html/Approvals/Elements/Approve | 70 ++- rt/html/Approvals/Elements/PendingMyApproval | 35 +- rt/html/Approvals/Elements/ShowDependency | 28 +- rt/html/Approvals/Elements/Tabs | 6 +- rt/html/Approvals/index.html | 6 +- rt/html/Download/CustomFieldValue/dhandler | 6 +- rt/html/Download/Tabular/dhandler | 6 +- rt/html/Elements/BevelBoxRaisedEnd | 10 +- rt/html/Elements/BevelBoxRaisedStart | 12 +- rt/html/Elements/Callback | 6 +- rt/html/Elements/Checkbox | 8 +- rt/html/Elements/CollectionAsTable/Header | 20 +- rt/html/Elements/CollectionAsTable/ParseFormat | 6 +- rt/html/Elements/CollectionAsTable/Row | 18 +- rt/html/Elements/CreateTicket | 12 +- rt/html/Elements/EditCustomField | 16 +- rt/html/Elements/EditCustomFieldBinary | 10 +- rt/html/Elements/EditCustomFieldFreeform | 21 +- rt/html/Elements/EditCustomFieldImage | 12 +- rt/html/Elements/EditCustomFieldSelect | 84 +--- rt/html/Elements/EditCustomFieldText | 10 +- rt/html/Elements/EditCustomFieldWikitext | 10 +- rt/html/Elements/EditLinks | 114 +++-- rt/html/Elements/Error | 22 +- rt/html/Elements/Footer | 47 +- rt/html/Elements/GotoTicket | 8 +- rt/html/Elements/Header | 119 +++-- rt/html/Elements/ListActions | 30 +- rt/html/Elements/Login | 80 ++-- rt/html/Elements/Menu | 128 +++--- rt/html/Elements/MessageBox | 10 +- rt/html/Elements/MyRequests | 33 +- rt/html/Elements/MyTickets | 34 +- rt/html/Elements/PageLayout | 208 ++------- rt/html/Elements/QueryString | 13 +- rt/html/Elements/QuickCreate | 37 +- rt/html/Elements/Quicksearch | 57 ++- rt/html/Elements/RT__Ticket/ColumnMap | 39 +- rt/html/Elements/Refresh | 22 +- rt/html/Elements/ScrubHTML | 8 +- rt/html/Elements/Section | 15 +- rt/html/Elements/SelectAttachmentField | 18 +- rt/html/Elements/SelectBoolean | 17 +- rt/html/Elements/SelectCustomFieldOperator | 18 +- rt/html/Elements/SelectCustomFieldValue | 10 +- rt/html/Elements/SelectDate | 14 +- rt/html/Elements/SelectDateRelation | 16 +- rt/html/Elements/SelectDateType | 26 +- rt/html/Elements/SelectEqualityOperator | 16 +- rt/html/Elements/SelectGroups | 12 +- rt/html/Elements/SelectLang | 16 +- rt/html/Elements/SelectLinkType | 16 +- rt/html/Elements/SelectMatch | 18 +- rt/html/Elements/SelectNewTicketQueue | 45 +- rt/html/Elements/SelectOwner | 16 +- rt/html/Elements/SelectQueue | 69 ++- rt/html/Elements/SelectResultsPerPage | 17 +- rt/html/Elements/SelectSortOrder | 14 +- rt/html/Elements/SelectStatus | 14 +- rt/html/Elements/SelectTicketSortBy | 12 +- rt/html/Elements/SelectTicketTypes | 12 +- rt/html/Elements/SelectUsers | 12 +- rt/html/Elements/SelectWatcherType | 14 +- rt/html/Elements/SetupSessionCookie | 126 +++--- rt/html/Elements/ShowCustomFieldBinary | 6 +- rt/html/Elements/ShowCustomFieldImage | 8 +- rt/html/Elements/ShowCustomFieldWikitext | 9 +- rt/html/Elements/ShowCustomFields | 33 +- rt/html/Elements/ShowLink | 8 +- rt/html/Elements/ShowLinks | 7 +- rt/html/Elements/ShowMemberships | 6 +- rt/html/Elements/SimpleSearch | 12 +- rt/html/Elements/Submit | 65 ++- rt/html/Elements/Tabs | 11 +- rt/html/Elements/TicketList | 46 +- rt/html/Elements/TitleBox | 11 +- rt/html/Elements/TitleBoxEnd | 21 +- rt/html/Elements/TitleBoxStart | 49 ++- rt/html/NoAuth/Logout.html | 36 +- rt/html/NoAuth/Reminder.html | 6 +- rt/html/NoAuth/images/autohandler | 20 +- rt/html/NoAuth/images/bplogo.gif | Bin 755 -> 825 bytes rt/html/REST/1.0/Forms/queue/default | 6 +- rt/html/REST/1.0/Forms/queue/ns | 6 +- rt/html/REST/1.0/Forms/ticket/attachments | 17 +- rt/html/REST/1.0/Forms/ticket/default | 69 +-- rt/html/REST/1.0/Forms/ticket/history | 27 +- rt/html/REST/1.0/Forms/ticket/links | 10 +- rt/html/REST/1.0/Forms/user/default | 6 +- rt/html/REST/1.0/Forms/user/ns | 6 +- rt/html/REST/1.0/NoAuth/mail-gateway | 19 +- rt/html/REST/1.0/autohandler | 6 +- rt/html/REST/1.0/dhandler | 19 +- rt/html/REST/1.0/logout | 6 +- rt/html/REST/1.0/search/dhandler | 6 +- rt/html/REST/1.0/search/ticket | 29 +- rt/html/REST/1.0/ticket/comment | 8 +- rt/html/REST/1.0/ticket/link | 11 +- rt/html/REST/1.0/ticket/merge | 6 +- rt/html/Search/Build.html | 313 ++++++------- rt/html/Search/Bulk.html | 482 ++++++++------------- rt/html/Search/Edit.html | 12 +- rt/html/Search/Elements/BuildFormatString | 27 +- rt/html/Search/Elements/DisplayOptions | 71 +-- rt/html/Search/Elements/EditFormat | 30 +- rt/html/Search/Elements/EditQuery | 24 +- rt/html/Search/Elements/EditSearches | 57 +-- rt/html/Search/Elements/NewListActions | 14 +- rt/html/Search/Elements/PickBasics | 65 +-- rt/html/Search/Elements/PickCFs | 6 +- rt/html/Search/Elements/PickCriteria | 20 +- rt/html/Search/Elements/SearchPrivacy | 6 +- rt/html/Search/Elements/SelectAndOr | 10 +- rt/html/Search/Elements/SelectGroup | 14 +- rt/html/Search/Elements/SelectLinks | 12 +- rt/html/Search/Elements/SelectPersonType | 16 +- rt/html/Search/Elements/SelectSearchObject | 6 +- rt/html/Search/Elements/SelectSearchesForObjects | 11 +- rt/html/Search/Results.html | 89 ++-- rt/html/Search/Results.rdf | 8 +- rt/html/Search/Results.tsv | 109 ++--- rt/html/SelfService/Attachment/dhandler | 6 +- rt/html/SelfService/Closed.html | 15 +- rt/html/SelfService/Create.html | 92 ++-- rt/html/SelfService/CreateTicketInQueue.html | 6 +- rt/html/SelfService/Display.html | 63 +-- rt/html/SelfService/Elements/GotoTicket | 8 +- rt/html/SelfService/Elements/Header | 6 +- rt/html/SelfService/Elements/MyRequests | 67 +-- rt/html/SelfService/Elements/Tabs | 34 +- rt/html/SelfService/Error.html | 16 +- rt/html/SelfService/Prefs.html | 18 +- rt/html/SelfService/Update.html | 36 +- rt/html/SelfService/index.html | 14 +- rt/html/Ticket/Attachment/dhandler | 6 +- rt/html/Ticket/Create.html | 338 +++++++-------- rt/html/Ticket/Display.html | 46 +- rt/html/Ticket/Elements/AddWatchers | 18 +- rt/html/Ticket/Elements/BulkLinks | 66 ++- rt/html/Ticket/Elements/EditBasics | 75 ++-- rt/html/Ticket/Elements/EditCustomField | 6 +- rt/html/Ticket/Elements/EditCustomFields | 19 +- rt/html/Ticket/Elements/EditDates | 50 +-- rt/html/Ticket/Elements/EditPeople | 32 +- rt/html/Ticket/Elements/EditWatchers | 17 +- rt/html/Ticket/Elements/FindAttachments | 6 +- rt/html/Ticket/Elements/LoadTextAttachments | 10 +- rt/html/Ticket/Elements/PreviewScrips | 21 +- rt/html/Ticket/Elements/ShowAttachments | 17 +- rt/html/Ticket/Elements/ShowBasics | 12 +- rt/html/Ticket/Elements/ShowCustomFields | 6 +- rt/html/Ticket/Elements/ShowDates | 68 ++- rt/html/Ticket/Elements/ShowDependencies | 14 +- rt/html/Ticket/Elements/ShowGroupMembers | 13 +- rt/html/Ticket/Elements/ShowHistory | 74 ++-- rt/html/Ticket/Elements/ShowMembers | 12 +- rt/html/Ticket/Elements/ShowMessageHeaders | 42 +- rt/html/Ticket/Elements/ShowMessageStanza | 29 +- rt/html/Ticket/Elements/ShowPeople | 14 +- rt/html/Ticket/Elements/ShowRequestor | 29 +- rt/html/Ticket/Elements/ShowSummary | 91 ++-- rt/html/Ticket/Elements/ShowTransaction | 64 ++- rt/html/Ticket/Elements/ShowTransactionAttachments | 21 +- rt/html/Ticket/Elements/ShowUserEntry | 12 +- rt/html/Ticket/Elements/Tabs | 94 ++-- rt/html/Ticket/History.html | 8 +- rt/html/Ticket/Modify.html | 22 +- rt/html/Ticket/ModifyAll.html | 71 ++- rt/html/Ticket/ModifyDates.html | 19 +- rt/html/Ticket/ModifyLinks.html | 16 +- rt/html/Ticket/ModifyPeople.html | 16 +- rt/html/Ticket/ShowEmailRecord.html | 8 +- rt/html/Ticket/Update.html | 76 ++-- rt/html/Tools/Elements/Tabs | 40 +- rt/html/Tools/MyDay.html | 78 ++-- rt/html/Tools/Offline.html | 38 +- rt/html/User/Delegation.html | 6 +- rt/html/User/Elements/DelegateRights | 18 +- rt/html/User/Elements/GroupTabs | 6 +- rt/html/User/Elements/Tabs | 12 +- rt/html/User/Groups/Members.html | 54 ++- rt/html/User/Groups/Modify.html | 38 +- rt/html/User/Groups/index.html | 14 +- rt/html/User/Prefs.html | 168 ++++--- rt/html/autohandler | 343 ++++++--------- rt/html/index.html | 87 +++- rt/html/l | 6 +- 273 files changed, 3943 insertions(+), 5496 deletions(-) (limited to 'rt/html') diff --git a/rt/html/Admin/CustomFields/GroupRights.html b/rt/html/Admin/CustomFields/GroupRights.html index a416327c5..380fee479 100644 --- a/rt/html/Admin/CustomFields/GroupRights.html +++ b/rt/html/Admin/CustomFields/GroupRights.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -53,46 +51,46 @@ &> <& /Elements/ListActions, actions => \@results &> -
- + +

<&|/l&>System groups

- +
% $Groups = RT::Groups->new($session{'CurrentUser'}); % $Groups->LimitToSystemInternalGroups(); % while (my $Group = $Groups->Next()) { - - + - + - + + % } -
+
<% loc($Group->Type) %> - + <& /Admin/Elements/SelectRights, PrincipalId => $Group->PrincipalId, Object => $CustomFieldObj &> -
+

<&|/l&>User defined groups

- +
% $Groups = RT::Groups->new($session{'CurrentUser'}); % $Groups->LimitToUserDefinedGroups(); % while (my $Group = $Groups->Next()) { - - + - + - + + % } -
+
<% $Group->Name %> - + <& /Admin/Elements/SelectRights, PrincipalId => $Group->PrincipalId, Object => $CustomFieldObj &> -
+ <& /Elements/Submit, Caption => loc("Be sure to save your changes"), Reset => 1 &> -
+ <%INIT> diff --git a/rt/html/Admin/CustomFields/Modify.html b/rt/html/Admin/CustomFields/Modify.html index 0202f0ad6..4c3c92114 100644 --- a/rt/html/Admin/CustomFields/Modify.html +++ b/rt/html/Admin/CustomFields/Modify.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -53,15 +51,15 @@ <& /Elements/ListActions, actions => \@results &> -
- + + - + - + @@ -79,64 +77,23 @@ - - - - - - - - - - - - - - - - -
<&|/l&>Name
<&|/l&>Description
<&|/l&>Validation -<& /Widgets/ComboBox, - Name => 'Pattern', - Default => $CustomFieldObj->Pattern, - Size => 20, - Values => [ - '(?#Mandatory).', - '(?#Digits)^[\d.]+$', - '(?#Year)^[12]\d{3}$', - ], -&> -
  - - /> <&|/l&>Enabled (Unchecking this box disables this custom field) -
<&|/l&>Link values to -
-<&|/l&>RT can make this custom field's values into hyperlinks to another service. -<&|/l&>Fill in this field with a URL. -<&|/l&>RT will replace __id__ and __CustomField__ with the record id and custom field value, respectively -
+ +> <&|/l&>Enabled (Unchecking this box disables this custom field)
<&|/l&>Include page -
-<&|/l&>RT can include content from another web service when showing this custom field. -<&|/l&>Fill in this field with a URL. -<&|/l&>RT will replace __id__ and __CustomField__ with the record id and custom field value, respectively -<&|/l&>Some browsers may only load content from the same domain as your RT server. -
-
-
-% if ($CustomFieldObj->Id && $CustomFieldObj->IsSelectionType) { -

<&|/l&>Values

+
+% if ($CustomFieldObj->Id && $CustomFieldObj->Type =~ /^Select/i) { +

<&|/l&>Values

<& /Admin/Elements/EditCustomFieldValues, CustomField => $CustomFieldObj &> <& /Admin/Elements/AddCustomFieldValue, CustomField => $CustomFieldObj &>
% } <&/Elements/Submit&> -
+ @@ -158,8 +115,7 @@ else { my ( $val, $msg ) = $CustomFieldObj->Create(Name => $Name, TypeComposite => $TypeComposite, LookupType => $LookupType, - Description => $Description, - Pattern => $Pattern,); + Description => $Description,); $m->comp("/Elements/Error", Why => loc( "Could not create CustomField", $msg ) ) unless ($val); push @results, $msg; $title = loc( 'Created CustomField [_1]', $CustomFieldObj->Name() ); @@ -168,7 +124,7 @@ else { $CustomFieldObj->Load($id) || $m->comp("/Elements/Error", Why => loc('No CustomField') ); $title = loc( 'Editing CustomField [_1]', $CustomFieldObj->Name() ); - my @attribs = qw( Pattern Name TypeComposite LookupType Description LinkValueTo IncludeContentForValue); + my @attribs = qw( Name TypeComposite LookupType Description); my @aresults = UpdateRecordObject( AttributesRef => \@attribs, Object => $CustomFieldObj, ARGSRef => \%ARGS ); @@ -211,7 +167,7 @@ foreach my $key (keys %ARGS) { # Update any existing values my $values = $CustomFieldObj->ValuesObj; while (my $value = $values->Next) { - foreach my $attr qw(Name Description SortOrder Category) { + foreach my $attr qw(Name Description SortOrder) { my $param = $paramtag.$value->Id."-".$attr; if ( $ARGS{$param} && ($value->$attr() ne $ARGS{$param})) { @@ -228,10 +184,9 @@ while (my $value = $values->Next) { # Add any new values if ($ARGS{$paramtag."new-Name"}) { - my ($id, $msg) = $CustomFieldObj->AddValue ( - map { $_ => $ARGS{$paramtag."new-$_"} } - qw( Name Description SortOrder Category ) - ); + my ($id, $msg) = $CustomFieldObj->AddValue ( Name => $ARGS{$paramtag."new-Name"}, + Description => $ARGS{$paramtag."new-Description"}, + SortOrder => $ARGS{$paramtag."new-SortOrder"}); push (@results, $msg); } @@ -251,7 +206,6 @@ $LookupType => undef $MaxValues => undef $SortOrder => undef $Description => undef -$Pattern => undef $Name => undef $SetEnabled => undef $Enabled => undef diff --git a/rt/html/Admin/CustomFields/Objects.html b/rt/html/Admin/CustomFields/Objects.html index d829a0da3..8f9e3657b 100644 --- a/rt/html/Admin/CustomFields/Objects.html +++ b/rt/html/Admin/CustomFields/Objects.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -54,9 +52,9 @@ <& /Elements/ListActions, actions => \@results &> -
- - + + +

<&|/l&>Selected objects

<& /Admin/Elements/PickObjects, Objects => \@AssignedObjs, id => $id, Checked => 1 &> @@ -64,7 +62,7 @@ <& /Admin/Elements/PickObjects, Objects => \@UnassignedObjs, id => $id &> <& /Elements/Submit, CheckAll => 1, ClearAll => 1 &> -
+ <%INIT> my $CF = RT::CustomField->new($session{'CurrentUser'}); diff --git a/rt/html/Admin/CustomFields/UserRights.html b/rt/html/Admin/CustomFields/UserRights.html index a7145977c..e2df3a058 100644 --- a/rt/html/Admin/CustomFields/UserRights.html +++ b/rt/html/Admin/CustomFields/UserRights.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -51,31 +49,31 @@ current_tab => "Admin/CustomFields/UserRights.html?id=".$id, Title => $title, &> <& /Elements/ListActions, actions => \@results &> -
- + + - +
% while (my $Member = $Users->Next()) { % my $UserObj = $Member->MemberObj->Object(); % my $group = RT::Group->new($session{'CurrentUser'}); % $group->LoadACLEquivalenceGroup($Member->MemberObj); - - + - + - + + % } -
+
<% $UserObj->Name %> - + <& /Admin/Elements/SelectRights, PrincipalId=> $group->PrincipalId, Object => $CustomFieldObj &> -
+ <& /Elements/Submit, Caption => loc("Be sure to save your changes"), Reset => 1 &> -
+ <%INIT> diff --git a/rt/html/Admin/CustomFields/index.html b/rt/html/Admin/CustomFields/index.html index aa7f12b29..9854fb0ec 100644 --- a/rt/html/Admin/CustomFields/index.html +++ b/rt/html/Admin/CustomFields/index.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -50,44 +48,29 @@ current_tab => 'Admin/CustomFields/', Title => loc('Select a Custom Field') &> -% my @types; % my $prev_lookup = ''; % while (my $CustomFieldObj = $CustomFields->Next) { % $CustomFieldObj->CurrentUserHasRight('AdminCustomField') or next; % my $lookup = $CustomFieldObj->FriendlyLookupType; % if ($lookup ne $prev_lookup) { % if ($prev_lookup) { - + % } -

<% loc("Custom Fields for [_1]", $lookup) %>

- % } -
-<&|/l&>Only show custom fields for: - -
- -<%args> -$type => undef - <%INIT> my $CustomFields = RT::CustomFields->new($session{'CurrentUser'}); $CustomFields->UnLimit(); -$CustomFields->LimitToLookupType($type) if defined $type; $CustomFields->OrderByCols( { FIELD => 'LookupType' }, { FIELD => 'Name' } ); diff --git a/rt/html/Admin/Elements/AddCustomFieldValue b/rt/html/Admin/Elements/AddCustomFieldValue index 39916e5ab..3e3f414b3 100644 --- a/rt/html/Admin/Elements/AddCustomFieldValue +++ b/rt/html/Admin/Elements/AddCustomFieldValue @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -45,28 +43,22 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -<&|/l&>Add Value - - - - -% if ($CustomField->Type ne 'Combobox') { - -% } - -
-<&|/l&>Sort:
- -
-<&|/l&>Name:
- -
-<&|/l&>Description:
- -
-<&|/l&>Category:
- -
+<&|/l&>Add Value + + + + +
+<&|/l&>Sort:
+ +
+<&|/l&>Name:
+ +
+<&|/l&>Description:
+ +
+ <%init> <%args> diff --git a/rt/html/Admin/Elements/CreateUserCalled b/rt/html/Admin/Elements/CreateUserCalled index 69183258e..0dc6ac792 100644 --- a/rt/html/Admin/Elements/CreateUserCalled +++ b/rt/html/Admin/Elements/CreateUserCalled @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -45,6 +43,6 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -
-<&|/l&>New user called + +<&|/l&>New user called
diff --git a/rt/html/Admin/Elements/CustomFieldTabs b/rt/html/Admin/Elements/CustomFieldTabs index 078dbe0de..d7acf33cc 100644 --- a/rt/html/Admin/Elements/CustomFieldTabs +++ b/rt/html/Admin/Elements/CustomFieldTabs @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: diff --git a/rt/html/Admin/Elements/EditCustomField b/rt/html/Admin/Elements/EditCustomField index d6dda06f3..d8c5b29b2 100644 --- a/rt/html/Admin/Elements/EditCustomField +++ b/rt/html/Admin/Elements/EditCustomField @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -48,43 +46,43 @@ <& /Elements/ListActions, actions => \@results &> -
- - + + + - - + +
+ + - + - + - -
<&|/l&>Name: - - -
+ + +
<&|/l&>Description: - - -
+ + +
<&|/l&>Type: - + <& /Admin/Elements/SelectCustomFieldType, Name => "Type", Default => $CustomFieldObj->Type &> -
- - - /> <&|/l&>Enabled (Unchecking this box disables this custom field) -
- -

+

+ + +> <&|/l&>Enabled (Unchecking this box disables this custom field) +
+ +

% if ($CustomFieldObj->Id and $CustomFieldObj->Type =~ /Select/) {

<&|/l&>Values

- + <& /Admin/Elements/EditCustomFieldValues, CustomField => $CustomFieldObj &> <& /Admin/Elements/AddCustomFieldValue, CustomField => $CustomFieldObj &> % } <&/Elements/Submit, Label => loc('Create') &> - + diff --git a/rt/html/Admin/Elements/EditCustomFieldValues b/rt/html/Admin/Elements/EditCustomFieldValues index e7da87cf7..9cc3858b9 100644 --- a/rt/html/Admin/Elements/EditCustomFieldValues +++ b/rt/html/Admin/Elements/EditCustomFieldValues @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -56,33 +54,23 @@ <&|/l&>Sort <&|/l&>Name <&|/l&>Description -% if ($CustomField->Type ne 'Combobox') { -<&|/l&>Category -% } % while (my $value = $values->Next) { - - - - + - + - - - + -% if ($CustomField->Type ne 'Combobox') { - + -% } % } diff --git a/rt/html/Admin/Elements/EditCustomFields b/rt/html/Admin/Elements/EditCustomFields index 9b1176a40..1cd3df568 100644 --- a/rt/html/Admin/Elements/EditCustomFields +++ b/rt/html/Admin/Elements/EditCustomFields @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -47,11 +45,11 @@ %# END BPS TAGGED BLOCK }}} <& /Elements/ListActions, actions => \@results &> -
- - - - + + + + + % if ($Object->Id) {

<&|/l&>Global Custom Fields

@@ -63,7 +61,7 @@ <& PickCustomFields, CustomFields => \@UnassignedCFs, id => $id, SubType => $SubType &> <& /Elements/Submit, CheckAll => 1, ClearAll => 1 &> -
+ <%INIT> @@ -73,7 +71,7 @@ my (@GlobalCFs, @UnassignedCFs); my $id = $Object->Id; if ($id and !$Object->CurrentUserHasRight('AssignCustomFields')) { - $m->out('

', loc('(No custom fields)'), '

'); + $m->out('

', loc('(No custom fields)'), '

'); return; } @@ -90,20 +88,6 @@ $ObjectCFs->UnLimit; $ObjectCFs->LimitToObjectId($id); $ObjectCFs->LimitToLookupType($lookup); -# Check sanity of SortOrders -my %SortOrders; -$SortOrders{$_->SortOrder}++ - while ($_ = $ObjectCFs->Next); - -# If there are duplicates, run though and squash them -if (grep {$_ > 1} values %SortOrders) { - my $i = 1; - while (my $ObjectCF = $ObjectCFs->Next) { - $ObjectCF->SetSortOrder($i++); - } - $ObjectCFs->GotoFirstItem; -} - # {{{ deal with moving sortorder of custom fields if ($CustomField and $Move) { my $SourceObj = RT::ObjectCustomField->new($session{'CurrentUser'}); diff --git a/rt/html/Admin/Elements/EditQueueWatchers b/rt/html/Admin/Elements/EditQueueWatchers index dc076f58a..c93bf81f5 100644 --- a/rt/html/Admin/Elements/EditQueueWatchers +++ b/rt/html/Admin/Elements/EditQueueWatchers @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -49,12 +47,12 @@
  • <&|/l&>none % } else { -<&|/l&>(Check box to delete)

    +<&|/l&>(Check box to delete)

      % while (my $watcher=$Members->Next) {
    • - + % if ($watcher->MemberObj->IsUser) { % } else { diff --git a/rt/html/Admin/Elements/EditScrip b/rt/html/Admin/Elements/EditScrip index edf949ba3..907ae9a92 100644 --- a/rt/html/Admin/Elements/EditScrip +++ b/rt/html/Admin/Elements/EditScrip @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -46,95 +44,150 @@ %# %# END BPS TAGGED BLOCK }}} <& /Elements/ListActions, actions => \@actions &> - -
      - - - -<&| /Widgets/TitleBox, title => loc('Scrip Fields') &> - - - - - - - - - - - + + + + +<& /Elements/TitleBoxStart, title => loc('Scrip Fields') &> +
      <&|/l&>Description: -Description %>" /> -
      <&|/l&>Condition: -<& /Admin/Elements/SelectScripCondition, - Name => "Scrip-$id-ScripCondition", - Default => $ARGS{"Scrip-$id-ScripCondition"} || $scrip->ConditionObj->Id, -&>
      <&|/l&>Action: -<& /Admin/Elements/SelectScripAction, - Name => "Scrip-$id-ScripAction", - Default => $ARGS{"Scrip-$id-ScripAction"} || $scrip->ActionObj->Id, -&>
      <&|/l&>Template: -<& /Admin/Elements/SelectTemplate, - Name => "Scrip-$id-Template", - Default => $ARGS{"Scrip-$id-Template"} || $scrip->TemplateObj->Id, - Queue => $Queue, -&>
      <&|/l&>Stage: -<& /Admin/Elements/SelectStage, - Name => "Scrip-$id-Stage", - Default => $ARGS{"Scrip-$id-Stage"} || $scrip->Stage, -&>
      + + + + + + + + + + + + + + + + + + +
      +<&|/l&>Description: + + +
      +<&|/l&>Condition: + +<& /Admin/Elements/SelectScripCondition, Name => "Scrip-$id-ScripCondition", Default => $scrip->ConditionObj->Id &>
      +
      +<&|/l&>Action: + +<& /Admin/Elements/SelectScripAction, Name => "Scrip-$id-ScripAction", Default => $scrip->ActionObj->Id &> +
      +<&|/l&>Template: + +<& /Admin/Elements/SelectTemplate, Name => "Scrip-$id-Template", Default => $scrip->TemplateObj->Id, Queue => $Queue &> +
      +<&|/l&>Stage: + +<& /Admin/Elements/SelectStage, Name => "Scrip-$id-Stage", Default => $scrip->Stage &> +
      - - -<& /Elements/Submit, - Label => $SubmitLabel, - Caption => loc("Be sure to save your changes"), - Reset => 1, -&>
      +<& /Elements/TitleBoxEnd &> +<& /Elements/Submit, Caption => loc("Be sure to save your changes"), Reset => 1 &> -<&| /Widgets/TitleBox, title => loc('User Defined conditions and actions') &> +
      +<& /Elements/TitleBoxStart, title => loc('User Defined conditions and actions') &> - + - - - - - - - + + + + + + + + + + + + + +
      +
      <&|/l&>(Use these fields when you choose 'User Defined' for a condition or action) -
      <&|/l&>Custom condition: - -
      <&|/l&>Custom action preparation code: - -
      <&|/l&>Custom action cleanup code: - -
      +<&|/l&>Custom condition: + + +
      +<&|/l&>Custom action preparation code: + + +
      +<&|/l&>Custom action cleanup code: + + +
      - +<& /Elements/TitleBoxEnd &> -<& /Elements/Submit, Label => $SubmitLabel, Reset => 1 &> +<& /Elements/Submit, Label => loc('Create'), Reset => 1 &> -
      + <%init> +my (@actions); -my (@actions, $SubmitLabel); -my $scrip = RT::Scrip->new( $session{'CurrentUser'} ); +my $scrip = new RT::Scrip($session{'CurrentUser'}); + +if ( $id eq 'new' ) { -if ( $id ) { - $scrip->Load( $id ); - unless ( $id = $scrip->id ) { - push @actions, loc("Couldn't load scrip #[_1]", $id); + my ( $retval, $msg ) = $scrip->Create( + Queue => $Queue, + ScripAction => $ARGS{"Scrip-new-ScripAction"}, + ScripCondition => $ARGS{"Scrip-new-ScripCondition"}, + Template => $ARGS{"Scrip-new-Template"}, + Description => $ARGS{"Scrip-new-Description"}, + CustomPrepareCode => $ARGS{"Scrip-new-CustomPrepareCode"}, + CustomCommitCode => $ARGS{"Scrip-new-CustomCommitCode"}, + CustomIsApplicableCode => $ARGS{"Scrip-new-CustomIsApplicableCode"}, + ); + if ( defined $retval ) { + push @actions, $msg; + $id = $scrip->id; + } + else { + Abort( $msg); + } +} +elsif ($id) { + my ($val,$msg) =$scrip->Load($id); + if ($val) { + $id = $scrip->id; + } else { + Abort ($msg); } - $SubmitLabel = loc('Update'); + my @attribs = qw ( + Queue + ScripAction + ScripCondition + Template + Stage + Description + CustomPrepareCode + CustomCommitCode + CustomIsApplicableCode + ); + my @results = UpdateRecordObject( AttributesRef => \@attribs, + AttributePrefix => 'Scrip-'.$scrip->Id, + Object => $scrip, + ARGSRef => \%ARGS ); + push (@actions, @results); } -unless ( $id ) { +elsif ($ARGS{'create'}) { $id = 'new'; - $SubmitLabel = loc('Create'); } +# }}} <%ARGS> @@ -142,42 +195,3 @@ $id => undef $title => undef $Queue => 0 - -<%METHOD Process> -<%ARGS> -$id => undef -$Queue => undef - -<%INIT> -return ($id) unless $id; - -my $scrip = RT::Scrip->new( $session{'CurrentUser'} ); -if ( $id eq 'new' ) { - return $scrip->Create( - Queue => $Queue, - ScripAction => $ARGS{"Scrip-new-ScripAction"}, - ScripCondition => $ARGS{"Scrip-new-ScripCondition"}, - Template => $ARGS{"Scrip-new-Template"}, - Description => $ARGS{"Scrip-new-Description"}, - CustomPrepareCode => $ARGS{"Scrip-new-CustomPrepareCode"}, - CustomCommitCode => $ARGS{"Scrip-new-CustomCommitCode"}, - CustomIsApplicableCode => $ARGS{"Scrip-new-CustomIsApplicableCode"}, - ); -} -else { - $scrip->Load( $id ); - return (undef, loc("Couldn't load scrip #[_1]", $id)) - unless $scrip->id; - - my @attribs = qw(Queue ScripAction ScripCondition Template Stage - Description CustomPrepareCode CustomCommitCode CustomIsApplicableCode); - my @results = UpdateRecordObject( - AttributesRef => \@attribs, - AttributePrefix => 'Scrip-'.$scrip->Id, - Object => $scrip, - ARGSRef => \%ARGS - ); - return ($scrip->id, @results); -} - - diff --git a/rt/html/Admin/Elements/EditScrips b/rt/html/Admin/Elements/EditScrips index 7d25c5305..9526118b5 100644 --- a/rt/html/Admin/Elements/EditScrips +++ b/rt/html/Admin/Elements/EditScrips @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -48,35 +46,34 @@ <& /Elements/ListActions, actions => \@actions &>
      - +

      <&|/l&>Current Scrips

      % if ($Scrips->Count == 0 ) { -

      <&|/l&>(No scrips)

      +

      <&|/l&>(No scrips)

      % } else { - -

      <&|/l&>(Check box to delete)

      +
      +

      <&|/l&>(Check box to delete)

      % while (my $scrip = $Scrips->Next ) { - - - + + - + + % } -
      - - -<% $scrip->Description || "(".loc('no value').")" |n %>
      +
      + + +<% $scrip->Description || "(".loc('no value').")" |n %>
      <&|/l, loc($scrip->ConditionObj->Name), loc($scrip->ActionObj->Name), loc($scrip->TemplateObj->Name) &>[_1] [_2] with template [_3] -
      + % } <& /Elements/Submit, Caption => loc("Delete selected scrips"), Label => loc("Delete") &>
      - <%init> my (@actions); @@ -95,7 +92,6 @@ else { $Scrips->LimitToGlobal(); } -$Scrips->OrderBy( FIELD => 'description' ); diff --git a/rt/html/Admin/Elements/EditTemplates b/rt/html/Admin/Elements/EditTemplates index bffb4cd08..207ffd001 100644 --- a/rt/html/Admin/Elements/EditTemplates +++ b/rt/html/Admin/Elements/EditTemplates @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -47,39 +45,39 @@ %# END BPS TAGGED BLOCK }}} <& /Elements/ListActions, actions => \@actions &> -
      - + + % if ($Templates->Count == 0 ) { -

      <&|/l&>(No templates)

      +

      <&|/l&>(No templates)

      % } else { - - -
      + + + - - + + + % my $count; % while (my $TemplateObj = $Templates->Next) { - - - - + + + + % } -
      <&|/l&>(Check box to delete) - -
      +
      - - - -<% loc($TemplateObj->Name) %> -
      <% loc($TemplateObj->Description) %> -
      + + + +<% loc($TemplateObj->Name) %> +
      <% loc($TemplateObj->Description) %> +
      +
      % } <& /Elements/Submit, Label => loc('Delete Template') &> -
      + <%INIT> my $Templates = RT::Templates->new($session{'CurrentUser'}); diff --git a/rt/html/Admin/Elements/EditUserComments b/rt/html/Admin/Elements/EditUserComments index 5035189da..fb96dc09a 100644 --- a/rt/html/Admin/Elements/EditUserComments +++ b/rt/html/Admin/Elements/EditUserComments @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -46,10 +44,10 @@ %# %# END BPS TAGGED BLOCK }}} <& /Elements/Header, Title => "Comments about $name" &> -<&|/l&>These comments aren't generally visible to the user:
      - - - +<&|/l&>These comments aren't generally visible to the user:
      + + + <%ARGS> $UserObj => undef diff --git a/rt/html/Admin/Elements/GlobalCustomFieldTabs b/rt/html/Admin/Elements/GlobalCustomFieldTabs index db69df817..8d4eaca23 100755 --- a/rt/html/Admin/Elements/GlobalCustomFieldTabs +++ b/rt/html/Admin/Elements/GlobalCustomFieldTabs @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: diff --git a/rt/html/Admin/Elements/GroupTabs b/rt/html/Admin/Elements/GroupTabs index bf6a1cfa5..60edda40e 100644 --- a/rt/html/Admin/Elements/GroupTabs +++ b/rt/html/Admin/Elements/GroupTabs @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: diff --git a/rt/html/Admin/Elements/Header b/rt/html/Admin/Elements/Header index e9b0356a1..b80908094 100644 --- a/rt/html/Admin/Elements/Header +++ b/rt/html/Admin/Elements/Header @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: diff --git a/rt/html/Admin/Elements/ListGlobalCustomFields b/rt/html/Admin/Elements/ListGlobalCustomFields index 24308fcd8..3df9d6292 100644 --- a/rt/html/Admin/Elements/ListGlobalCustomFields +++ b/rt/html/Admin/Elements/ListGlobalCustomFields @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -49,7 +47,7 @@ % while (my $CustomFieldObj = $CustomFields->Next) { % $count++; <%$CustomFieldObj->id%>/<% loc($CustomFieldObj->Type) %>/<%$CustomFieldObj->Name%>: <%$CustomFieldObj->Description%> -
      +
      % } % if (!$count) { <&|/l&>(No custom fields) diff --git a/rt/html/Admin/Elements/ListGlobalScrips b/rt/html/Admin/Elements/ListGlobalScrips index e2e8b15aa..2e3791257 100644 --- a/rt/html/Admin/Elements/ListGlobalScrips +++ b/rt/html/Admin/Elements/ListGlobalScrips @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -45,28 +43,29 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} + % if ($Scrips->Count == 0) { -

      <&|/l&>(No scrips)

      +

      <&|/l&>(No scrips)

      % } else { -
      % } diff --git a/rt/html/Admin/Elements/ModifyTemplate b/rt/html/Admin/Elements/ModifyTemplate index b667e056b..6749f3e65 100644 --- a/rt/html/Admin/Elements/ModifyTemplate +++ b/rt/html/Admin/Elements/ModifyTemplate @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -45,33 +43,33 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} - - - + + + + + + +
      + + + - - - - + + + + - - - - - - -
      <&|/l&>Name: - -
      -
      + +
      +
      <&|/l&>Description: - -
      -
      -<&|/l&>Content:
      -
      - -
      +
      +
      +
      +<&|/l&>Content:
      +
      + +
      <%INIT> diff --git a/rt/html/Admin/Elements/ObjectCustomFields b/rt/html/Admin/Elements/ObjectCustomFields index 61a10cd2b..a87e1579d 100644 --- a/rt/html/Admin/Elements/ObjectCustomFields +++ b/rt/html/Admin/Elements/ObjectCustomFields @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: diff --git a/rt/html/Admin/Elements/PickCustomFields b/rt/html/Admin/Elements/PickCustomFields index 7b88433f1..c2a30f9a3 100644 --- a/rt/html/Admin/Elements/PickCustomFields +++ b/rt/html/Admin/Elements/PickCustomFields @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -48,35 +46,35 @@ % if (@CustomFields == 0) {

      <&|/l&>(None)

      % } else { - +
      % my $count; % foreach my $CustomFieldObj (@CustomFields) { - + % if (!$ReadOnly) { - + % } - - + + % # show 'move up' unless it's the first item % if ($count++ and $Checked) { - - + + % } -
      - -/> - + +> + - + + % if ($CustomFieldObj->Name) { <%$CustomFieldObj->Name%> % } else { (<&|/l&>no name) % } -
      +
      <%$CustomFieldObj->Description%> -
      + <% $CustomFieldObj->FriendlyTypeComposite %> - + [<&|/l&>Move up] % } else { - + % } % # show 'move down' unless it's the last item @@ -84,10 +82,10 @@ % $m->print(' | ') if $count > 1; [<&|/l&>Move down] % } -
      + % } <%ARGS> @CustomFields diff --git a/rt/html/Admin/Elements/PickObjects b/rt/html/Admin/Elements/PickObjects index 5fc086350..b07a88240 100644 --- a/rt/html/Admin/Elements/PickObjects +++ b/rt/html/Admin/Elements/PickObjects @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -46,32 +44,33 @@ %# %# END BPS TAGGED BLOCK }}} % if (@Objects == 0) { -

      <&|/l&>(None)

      +

      <&|/l&>(None)

      % } else { - +
      % my $count; % foreach my $Object (@Objects) { - -% my $id = "Object-".$Object->id."-CF-".$id; + % if (!$ReadOnly) { - + % } - - + +%# + + % } -
      - -/> - + +> + - % if ($Object->Name) { - <%$Object->Name%>
      + <%$Object->Name%>
      % } else { - (<%loc("no name")%>)
      + (<%loc("no name")%>)
      % } <%$Object->can('Description') && $Object->Description%> - -
      +%# <% $CustomFieldObj->FriendlyTypeComposite %> +%#
      + % } <%ARGS> @Objects diff --git a/rt/html/Admin/Elements/QueueRightsForUser b/rt/html/Admin/Elements/QueueRightsForUser index 15af78464..01f294a59 100644 --- a/rt/html/Admin/Elements/QueueRightsForUser +++ b/rt/html/Admin/Elements/QueueRightsForUser @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -45,13 +43,13 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -
        +
          %while(my $ACE = $ACL->Next) { -
        • <% loc($ACE->RightName) %> (<%$ACE->UserObj->RealName%>) +
        • <% loc($ACE->RightName) %> (<%$ACE->UserObj->RealName%>) %} -
        +
      <%INIT> my $ACL = new RT::ACL($session{'CurrentUser'}); diff --git a/rt/html/Admin/Elements/QueueTabs b/rt/html/Admin/Elements/QueueTabs index 0d0670468..93522d0a2 100644 --- a/rt/html/Admin/Elements/QueueTabs +++ b/rt/html/Admin/Elements/QueueTabs @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: diff --git a/rt/html/Admin/Elements/SelectCustomFieldLookupType b/rt/html/Admin/Elements/SelectCustomFieldLookupType index ff8bfdb3b..ec9f740b9 100644 --- a/rt/html/Admin/Elements/SelectCustomFieldLookupType +++ b/rt/html/Admin/Elements/SelectCustomFieldLookupType @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -45,11 +43,11 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} - %for my $option ($cf->LookupTypes) { - + %} - + <%INIT> my $cf = RT::CustomField->new($session{'CurrentUser'}); diff --git a/rt/html/Admin/Elements/SelectCustomFieldType b/rt/html/Admin/Elements/SelectCustomFieldType index c913979e9..3f25b8e71 100644 --- a/rt/html/Admin/Elements/SelectCustomFieldType +++ b/rt/html/Admin/Elements/SelectCustomFieldType @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -45,11 +43,11 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} - %for my $option ($cf->TypeComposites) { - + %} - + <%INIT> my $cf = RT::CustomField->new($session{'CurrentUser'}); diff --git a/rt/html/Admin/Elements/SelectGroups b/rt/html/Admin/Elements/SelectGroups index 662273a0a..92bd47587 100644 --- a/rt/html/Admin/Elements/SelectGroups +++ b/rt/html/Admin/Elements/SelectGroups @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -45,11 +43,11 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} - %while (my $group = $groups->Next) { - % } <%INIT> if ($Default eq '') { diff --git a/rt/html/Admin/Elements/SelectTemplate b/rt/html/Admin/Elements/SelectTemplate index dd96ec70b..7d83b6768 100644 --- a/rt/html/Admin/Elements/SelectTemplate +++ b/rt/html/Admin/Elements/SelectTemplate @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -45,23 +43,23 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} - + <%INIT> diff --git a/rt/html/Admin/Elements/SelectUsers b/rt/html/Admin/Elements/SelectUsers index 103ab30fc..a88aa8ff7 100644 --- a/rt/html/Admin/Elements/SelectUsers +++ b/rt/html/Admin/Elements/SelectUsers @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -%# 02110-1301 or visit their web page on the internet at -%# http://www.gnu.org/copyleft/gpl.html. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -45,11 +43,11 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} - %while (my $user = $users->Next) { -