>
<& /widgets/profile/text.mc,
disp => $lang->maketext('Title'),
name => $widget.'|title',
value => $state->{title} || '' &>
<& /widgets/profile/text.mc,
disp => $lang->maketext('URI'),
name => $widget.'|primary_uri',
value => $state->{primary_uri} || '' &>
<& /widgets/profile/text.mc,
disp => $lang->maketext('Keyword'),
name => $widget.'|keyword',
value => $state->{keyword} || '' &>
<& /widgets/profile/text.mc,
disp => $lang->maketext('Text to search'),
name => $widget.'|data_text',
value => $state->{data_text} || '' &>
<& /widgets/profile/text.mc,
disp => $lang->maketext('Category URI'),
name => $widget.'|category_uri',
value => $state->{category_uri} || '' &>
<& /widgets/profile/select.mc,
disp => $lang->maketext('Type'),
name => $widget.'|element_type_id',
value => $state->{element_type_id} || '',
options => $asset_opts,
localize => 0 &>
<& /widgets/profile/select.mc,
disp => $lang->maketext('Subelement'),
name => $widget . '|subelement_id',
value => $state->{subelement_id} || '',
options => $subelement_opts,
localize => 0 &>
% my $active_checked = $state->{active} ? 1 : 0;
<& /widgets/profile/checkbox.mc,
disp => $lang->maketext('Include deleted'),
name => $widget . '|active',
value => 'tf', # XXX: 't' and 'f' (see Bric::App::Callback::Search)
checked => $active_checked,
localize => 0,
useTable => 1,
&>
% if (get_pref("Filter by Site Context")) {
<& /widgets/profile/hidden.mc,
name => "$widget|site_id",
value => $c->get_user_cx(get_user_id) &>
% } elsif (@$sites > 1) {
<& /widgets/profile/select.mc,
disp => $lang->maketext('Site'),
name => $widget.'|site_id',
value => $state->{site_id} || '',
options => [ [ '' => $lang->maketext('All Sites') ],
map { [$_->get_id => $_->get_name] } @$sites ],
localize => 0 &>
% }
<% $lang->maketext('Cover Date') %>:
<& '/widgets/select_time/select_time.mc',
base_name => "$widget|cover_date_start",
indent => 1,
no_hour => 1,
no_min => 1,
repopulate => 0,
def_date => $state->{cover_date_start} || '',
compact => 1,
style => 'inline',
&>
—<& '/widgets/select_time/select_time.mc',
base_name => "$widget|cover_date_end",
indent => 1,
no_hour => 1,
no_min => 1,
repopulate => 0,
def_date => $state->{cover_date_end} || '',
compact => 1,
style => 'inline',
&>
<% $lang->maketext('Publish Date') %>:
<& '/widgets/select_time/select_time.mc',
base_name => "$widget|publish_date_start",
indent => 1,
no_hour => 1,
no_min => 1,
repopulate => 0,
def_date => $state->{publish_date_start} || '',
compact => 1,
style => 'inline',
&>
—<& '/widgets/select_time/select_time.mc',
base_name => "$widget|publish_date_end",
indent => 1,
no_hour => 1,
no_min => 1,
repopulate => 0,
def_date => $state->{publish_date_end} || '',
compact => 1,
style => 'inline',
&>
<% $lang->maketext('Expire Date') %>: