- bsexlsprod.pl can now update tiered pricing
+ - make the eimage variable available on the admin/image_edit template
+ and use it to display a thumbnail.
+ https://rt4.develop-help.com/Ticket/Display.html?id=1290
+
Templates:
- admin/order_detail.tmpl - the product tag now uses tag_article as
use List::Util qw(first);
use constant MAX_FILE_DISPLAYNAME_LENGTH => 255;
-our $VERSION = "1.025";
+our $VERSION = "1.026";
=head1 NAME
}
}
+=item edit_image
+
+Display a form to allow editing an image.
+
+Tags:
+
+=over
+
+=item *
+
+eimage - the image being edited
+
+=item *
+
+normal article edit tags.
+
+=back
+
+Variables:
+
+eimage - the image being edited.
+
+=cut
+
sub req_edit_image {
my ($self, $req, $article, $articles, $errors) = @_;
or return $self->edit_form($req, $article, $articles,
"You don't have access to save image information for this article");
+ $req->set_variable(eimage => $image);
+
my %acts;
%acts =
(
<table class="editform editformsmall">
<tr>
<th>Replacement image file:</th>
- <td><input type="file" name="image" size="40" /><br />(leave blank to keep the current image)</td>
+ <td><input type="file" name="image" size="40" /><br />(leave blank to keep the current image)
+<:= eimage.thumb("geo", "editor") :></td>
<td class="help"><:help image image:> <:error_img image:></td>
</tr>
<tr>