<a href="<% $url %>"><img src="/media/images/<% $lang_key %>/return_dgreen.gif" /></a>
<%args>
$label => 'Back'
$url => undef
</%args>
<%init>;
$url ||= last_page();
</%init>
<%doc>

=head1 NAME

/lib/util/back_button.mc - Adds a self-contained back button to a page

=head1 VERSION

$LastChangedRevision$

=head1 DATE

$LastChangedDate: 2004-10-31 16:41:18 +0100 (Sun, 31 Oct 2004) $

=head1 SYNOPSIS

  $m->comp('/lib/util/back_button.mc');

=head1 DESCRIPTION

This element adds a self-contained back button to a page. The back button
lives in its own form tags, so it can stand alone on a page that otherwise
purely displays information. There are two optional arguments to this element.

=over 4

=item *

label - The label for the back button. Defaults to 'Back'.

=item *

url - The URL to which the browser is redirected when the back button is
clicked. Defaults to the value returned by last_page().

=back

</%doc>
