[Rt-commit] rt branch, update-action, updated. 5ac3fc2698b1c7410a22a419bf0d4d31f388c03a
sartak at bestpractical.com
sartak at bestpractical.com
Thu Dec 10 06:25:01 EST 2009
The branch, update-action has been updated
via 5ac3fc2698b1c7410a22a419bf0d4d31f388c03a (commit)
from 31b6be2f835143a2dfd9880a7866fde3276a2689 (commit)
Summary of changes:
lib/RT/View/{Ticket.pm => Ticket/Update.pm} | 23 +++++++++++++++++------
1 files changed, 17 insertions(+), 6 deletions(-)
copy lib/RT/View/{Ticket.pm => Ticket/Update.pm} (80%)
- Log -----------------------------------------------------------------
commit 5ac3fc2698b1c7410a22a419bf0d4d31f388c03a
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Dec 10 06:24:51 2009 -0500
First cut of Ticket::Update view code
diff --git a/lib/RT/View/Ticket/Update.pm b/lib/RT/View/Ticket/Update.pm
new file mode 100644
index 0000000..928658f
--- /dev/null
+++ b/lib/RT/View/Ticket/Update.pm
@@ -0,0 +1,74 @@
+# BEGIN BPS TAGGED BLOCK {{{
+#
+# COPYRIGHT:
+#
+# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC
+# <jesse at bestpractical.com>
+#
+# (Except where explicitly superseded by other copyright notices)
+#
+#
+# LICENSE:
+#
+# This work is made available to you under the terms of Version 2 of
+# the GNU General Public License. A copy of that license should have
+# been provided with this software, but in any event can be snarfed
+# from www.gnu.org.
+#
+# This work is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# 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.
+#
+#
+# CONTRIBUTION SUBMISSION POLICY:
+#
+# (The following paragraph is not intended to limit the rights granted
+# to you to modify and distribute this software under the terms of
+# the GNU General Public License and is only of importance to you if
+# you choose to contribute your changes and enhancements to the
+# community by submitting them to Best Practical Solutions, LLC.)
+#
+# By intentionally submitting any modifications, corrections or
+# derivatives to this work, or any other work intended for use with
+# Request Tracker, to Best Practical Solutions, LLC, you confirm that
+# you are the copyright holder for those contributions and you grant
+# Best Practical Solutions, LLC a nonexclusive, worldwide, irrevocable,
+# royalty-free, perpetual, license to use, copy, create derivative
+# works based on those contributions, and sublicense and distribute
+# those contributions and any derivatives thereof.
+#
+# END BPS TAGGED BLOCK }}}
+use warnings;
+use strict;
+
+package RT::View::Ticket::Update;
+use Jifty::View::Declare -base;
+
+__PACKAGE__->use_mason_wrapper;
+
+template 'modify' => page { title => _('Modify a ticket') } content {
+ my $ticket = get('ticket');
+
+ my $update = new_action(
+ class => 'UpdateTicket',
+ moniker => 'modify_ticket',
+ arguments => {
+ record => $ticket,
+ },
+ );
+
+ with ( name => 'ticket_modify' ), form {
+ form_next_page url => '/Ticket/Display.html';
+
+ render_action($update);
+ form_submit( label => _('Save') );
+ };
+};
+
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list