<& /Elements/Header, Title => $title&>
<& /Elements/Tabs &>

<& /Search/Elements/NewListActions, actions => \@actions &>

<form method="post" action="Build.html" id="BuildQueryAdvanced" name="BuildQueryAdvanced">
<input type="hidden" class="hidden" name="SavedSearchId" value="<% $SavedSearchId %>" />
<&|/Widgets/TitleBox, title => loc('Query'), &>
<textarea name="Query" rows="8" cols="72"><% $Query %></textarea>
</&>
<&|/Widgets/TitleBox, title => loc('Format'), &>
<textarea name="Format" rows="8" cols="72"><% $Format %></textarea>
</&>
<& /Elements/Submit, Label => loc("Apply"), Reset => 1, Caption => loc("Apply your changes")&>
</form>

<%INIT>
my $title = loc("Edit Query");
$Format = $m->comp('/Elements/ScrubHTML', Content => $Format);
my $QueryString = $m->comp('/Elements/QueryString',
                           Query   => $Query,
                           Format  => $Format,
                           RowsPerPage    => $Rows,
                           OrderBy => $OrderBy,
                           Order   => $Order,
                          );

</%INIT>


<%ARGS>
$SavedSearchId => 'new'
$Query         => ''
$Format        => ''
$Rows          => '50'
$OrderBy       => 'Name'
$Order         => 'ASC'

@actions       => ()
</%ARGS>
