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

sartak at bestpractical.com sartak at bestpractical.com
Tue Sep 1 06:57:37 EDT 2009


The branch, create-action has been updated
       via  e975a7ede3aa2817b488e1a056c7e87ea8109c5b (commit)
      from  89e8b7f0d2d5d35ad0f10c2db5157a88f709961c (commit)

Summary of changes:
 lib/RT/View/Ticket/Create.pm |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit e975a7ede3aa2817b488e1a056c7e87ea8109c5b
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Sep 1 06:57:02 2009 -0400

    Render a ticket creation form

diff --git a/lib/RT/View/Ticket/Create.pm b/lib/RT/View/Ticket/Create.pm
index eb487b6..d8ced20 100644
--- a/lib/RT/View/Ticket/Create.pm
+++ b/lib/RT/View/Ticket/Create.pm
@@ -54,6 +54,23 @@ use Jifty::View::Declare -base;
 __PACKAGE__->use_mason_wrapper;
 
 template 'create' => page {
+    my $create = new_action(
+        class   => 'CreateTicket',
+        moniker => 'create_ticket',
+    );
+
+    my $actions;
+    render_mason('/Elements/Tabs', {
+        current_toptab => 'ticket/create',
+        title          => _("Create a new ticket"),
+        actions        => $actions,
+    });
+
+    form {
+        form_next_page url => '/';
+        render_action $create;
+        form_submit( label => _('Create') );
+    };
 };
 
 1;

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


More information about the Rt-commit mailing list