Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6da3044f

Von Moritz Bunkus vor etwa 8 Jahren hinzugefügt

  • ID 6da3044f22a497ea42de15f155986aa67816c00e
  • Vorgänger 4d041eef
  • Nachfolger b391b42d

ActionBar: Verwendung bei »System« → »Historiensuchmaschine«

Unterschiede anzeigen:

bin/mozilla/am.pl
$main::auth->assert('config');
setup_am_show_history_search_action_bar();
$form->{title} = $locale->text("History Search");
$form->header();
......
my ($sort, $sortby) = split(/\-\-/, $form->{order});
$sort =~ s/.*\.(.*)$/$1/;
setup_am_show_am_history_action_bar();
$form->{title} = $locale->text("History Search");
$form->header();
......
);
}
}
sub setup_am_show_history_search_action_bar {
my %params = @_;
for my $bar ($::request->layout->get('actionbar')) {
$bar->add(
action => [
t8('Show'),
submit => [ '#form' ],
accesskey => 'enter',
],
);
}
}
sub setup_am_show_am_history_action_bar {
my %params = @_;
for my $bar ($::request->layout->get('actionbar')) {
$bar->add(
action => [
t8('Back'),
call => [ 'kivi.history_back' ],
],
);
}
}
templates/webpages/common/search_history.html
[% USE HTML %]
<h1>[% 'history search engine' | $T8 %]</h1>
<form method="post" action="am.pl">
<form method="post" action="am.pl" id="form">
<input type="hidden" name="action" value="show_am_history">
......
</td>
</tr>
</table>
<hr>
<input type="submit" class="submit" value="[% 'submit' | $T8 %]">
<input type="reset" class="submit" value="[% 'reset' | $T8 %]" id='reset_button'>
</form>
<script type="text/javascript">

Auch abrufbar als: Unified diff