[Rt-commit] rt branch, 4.4/quick-asset-create, repushed
Dustin Graves
dustin at bestpractical.com
Tue Jun 28 17:25:02 EDT 2016
The branch 4.4/quick-asset-create was deleted and repushed:
was 0ff7dcb77e5e2e355129ccbf343395fe04cc47bc
now 315261e7d7db1640d34c448b388b48073f237cd1
1: 0ff7dcb ! 1: 315261e add Quick Asset Create User Summary Portlet
@@ -56,19 +56,20 @@
+%# END BPS TAGGED BLOCK }}}
+<&| /Widgets/TitleBox, title => loc('Quick asset creation'), class => "user create-asset" &>
+<form action="<% RT->Config->Get("WebPath") %>/Asset/Create.html">
-+% for my $key (keys %default_values) {
-+ <input type="hidden" name="<% $key %>" value="<% $default_values{$key} %>" />
++% for my $key (keys %ARGS) {
++% next if grep { lc $key eq $_ } qw(user catalog);
++ <input type="hidden" name="<% $key %>" value="<% $ARGS{$key} %>" />
+% }
+ <&|/l_unsafe,
-+ $m->scomp("/Asset/Elements/SelectCatalog", Default => $Catalog),
++ $m->scomp("/Asset/Elements/SelectCatalog", Default => $ARGS{Catalog}),
+ &>Create a new asset in the catalog [_1]</&>
+ <input type="submit" value="<&|/l&>Create</&>">
+</form>
+</&>
+<%INIT>
+my %default_values = ();
-+$m->callback( ARGSRef => \%ARGS, DefaultValues => \%default_values, CallbackName => 'ModifyDefaultValues' );
++$m->callback( CallbackName => 'ModifyDefaultValues', ARGSRef => \%ARGS );
+</%INIT>
+<%ARGS>
-+$Catalog => undef
++$User
+</%ARGS>
More information about the rt-commit
mailing list