[%# for global use %] [%- BLOCK linkback -%]

<< [% '.linktext.home' | ml %]

[%- END -%] [%- BLOCK success_message -%]
[% success_text %]
[%- END -%] [%# for index %] [%- BLOCK userview; # requires $u from caller i = 0; FOREACH vg IN list_created_by( u ); NEXT UNLESS vg.defined; i = i + 1; r = review && vg.is_queued -%]
[% vg.display_basic %]

[% vg.display_vieweditlinks( r ) %]

[%- IF vg.id && ! vg.is_queued -%]

[% '.header.review' | ml %]

[%- END -%] [% PROCESS review_status %] [% PROCESS shop_status %]
[%- END; # FOREACH -%] [%- UNLESS i -%]

[% '.review.empty' | ml %]

[%- END -%] [%- END; # BLOCK userview -%] [%- BLOCK review_status; # requires $vg from caller IF vg.id && ! vg.is_queued -%]

[%- vg.is_approved ? dw.ml( '.label.review.approved' ) : dw.ml( '.label.review.rejected' ); vg.approver.ljuser_display( head_size = "24x24" ) -%]

[% '.label.review.why' | ml %] [% vg.approved_why | html %]

[%- END -%] [%- END -%] [%- BLOCK shop_status; # requires $vg from caller IF vg.id && vg.is_approved -%]

[% 'vgift.display.label.featured' | ml %] [%- isfeat = vg.is_featured ? 'y' : 'n'; ".label.review.answer.$isfeat" | ml -%]

[% 'vgift.display.label.cost' | ml %] [% vg.display_cost %]

[%- END -%] [%- END -%] [%- BLOCK imgform; # requires $id from caller -%] [% form.radio( name = id, value = 'file', id = "${id}_file", selected = 1, accesskey = dw.ml( '.label.fromfile.key' ) ) %]
[% form.radio( name = id, value = 'url', id = "${id}_url", accesskey = dw.ml( '.label.fromurl.key' ) ) %] [% form.textbox( name = "url_$id", size = 25 ) %] [%- END -%] [%# for inactive %] [%- BLOCK display_privtags; # requires $vg from caller -%] [%- FOREACH t IN vg.tags.sort; tagname = t | url; taghtml = t | html; url = dw.create_url( 'tags', args => { tag => tagname, mode => 'view' } ); txt = "$taghtml"; privtext = ''; UNLESS nonpriv.t; # asterisk tags with privileges txt = txt _ ' [*]'; privtext = '.note.privstar' | ml; END; print_tags.push(txt); END -%] [%- IF print_tags.size -%] [% 'vgift.display.label.tags' | ml %] [% print_tags.join(', ') %]   [% privtext %] [%- END -%] [%- END; # BLOCK display_privtags -%] [%- BLOCK display_gift; # requires $vg from caller -%]
[% form.checkbox( label = dw.ml( '.label.activate' ), value = 1, name = "${vg.id}_activate", id = "${vg.id}_activate" ) %] [% form.hidden( name = "${vg.id}_chksum", value = vg.checksum ) %] [% vg.display_summary %] [% PROCESS display_privtags %] [%- editurl = dw.create_url( '/admin/vgifts/', args => { id => vg.id, mode => 'review', title => 'inactive' } ) -%]

[% '.linktext.edit' | ml( name = vg.name_ehtml) %]

[%- END; # BLOCK display_gift -%] [%# for tags %] [%- BLOCK printtags; # requires $tagcounts from caller -%] [%- IF tagcounts.size -%] [%- ELSE -%] [% '.queue.empty' | ml %] [%- END -%] [%- END; # BLOCK printtags -%] [%- BLOCK linkreset -%]

<< [% '.linktext.back' | ml( title = dw.ml( '.title' ) ) %]

[%- END -%]