[%# Allow editing a user's paid status.
#
# Authors:
# Mark Smith -- TT conversion
#
# Copyright (c) 2008-2020 by Dreamwidth Studios, LLC.
#
# This program is free software; you may redistribute it and/or modify it
# under the same terms as Perl itself. For a copy of the license, please
# reference 'perldoc perlartistic' or 'perldoc perlgpl'.
#
%]
[%- sections.title='.title' | ml -%]
[%- sections.head = BLOCK %]
[% END %]
[% u.ljuser_display %]: [% ps ? type_name( ps ) : dw.ml( '.ps.never' ) %]
[%- IF ps; '; ';
IF ps.permanent; dw.ml( '.ps.permanent' );
IF ps.expiresin > 0; ' ';
dw.ml( '.ps.permanent.hastime', { time => mysql_time(ps.expiretime) } );
END;
ELSE;
IF ps.expiresin > 0;
edit_expiration = 1;
dw.ml( '.ps.paid.hastime', { time => mysql_time( ps.expiretime ),
text => ago_text( ps.expiresin ) } );
ELSE;
dw.ml( '.ps.expired' );
END;
END;
END -%]
[% '.header.paidstatus' | ml %]
[% edit_expiration = 0 %]
| [% '.col.cartnum' | ml %] | [% '.col.date' | ml %] | [% '.col.total' | ml %] | [% '.col.method' | ml %] | [% '.col.status' | ml %] | [% '.col.details' | ml %] |
|---|---|---|---|---|---|
| [% cart.id %] | [% date.strftime( "%F %r %Z" ) %] | [% cart.display_total %] | [% view_pay_method %] | [% "${status_string}.${cart.state}" | ml %] | [%- dw.ml( is_pending(cart.state) ? '.cart.act' : '.cart.viewonly' ) -%] |
[% '.nocarts' | ml %]
[% END %]