[%# views/entry/module-age_restriction.tt Module for age restriction level in the entry form Authors: Afuna Copyright (c) 2011 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'. -%]

[% ".header" | ml %]

[%- levelselect = []; FOREACH opt IN [ "" ".option.adultcontent.default" "none" ".option.adultcontent.none" "discretion" ".option.adultcontent.discretion" "restricted" ".option.adultcontent.restricted" ]; IF loop.count % 2 == 0; opt = opt | ml; END; levelselect.push( opt ); END -%] [%- form.select( label = dw.ml( ".label.age_restriction" ) name = "age_restriction" id = "age_restriction" class = "draft-autosave" items = levelselect ) -%]
[%- form.textbox( label = dw.ml( ".label.age_restriction_reason" ) name = "age_restriction_reason" id = "age_restriction_reason" class = "draft-autosave" size = "20" maxlength = "255" ) -%]