[%# View and manage pending invite code requests. # # Authors: # Afuna -- original page # Jen Griffin -- TT conversion # # Copyright (c) 2009-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 %]
[%- dw.form_auth -%] [%- FOREACH req = outstanding; ctid = "ct_${req.id}"; uid = req.userid; u = users.$uid; UNLESS sysbanned( u ) -%] [%- END; END -%]
[% '.col.user' | ml %] [% '.col.timegen' | ml %] [% '.col.pc' | ml %] [% '.col.count' | ml %] [% '.col.give' | ml %] [% '.col.reason' | ml %]
[% u.ljuser_display %] [% time_to_http( req.timegenerate ) %] [% pc_accts( u ) %] [% counts.$uid %] [%- IF r.did_post; ct = r.post_args.$ctid; IF ct.defined && ct.match('^\d\d?$'); IF ct > 0; req.accept( num_invites = ct ); dw.ml( '.req.gave', { count => ct } ); ELSE; req.reject; dw.ml( '.req.denied' ); END; ELSE; '---'; END; ELSE; form.textbox( name = ctid, size = 2, maxlength = 2 ); END -%] [% reason_link( u, reason_text( req ) ) %]

[%- UNLESS r.did_post -%]

[% form.submit( value = dw.ml( ".btn.do" ) ) %]

[% '.whatdo' | ml %]

[%- END -%]