[%# export/index.tt Journal export functionality Authors: Mark Smith Copyright (c) 2015 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'. %] [%- CALL dw.active_resource_group( "foundation" ) -%] [%- sections.title = '.title' | ml -%] [%- authas_form -%]

[% '.description' | ml %]

[% dw.form_auth %]
[% '.label.export' | ml %]
[%- form.textbox( label = dw.ml('.label.year') name = 'year' hint = dw.ml('.hint.year') placeholder = 'yyyy' maxlength = 4 "aria-required" = "true" ) -%]
[%- form.textbox( label = dw.ml('.label.month') name = 'month' hint = dw.ml('.hint.month') placeholder = 'mm' maxlength = 2 "aria-required" = "true" ) -%]
[%- form.select( name = 'format' label = dw.ml('.label.format') items = ['csv', dw.ml('.format.csv'), 'xml', dw.ml('.format.xml')] ) -%]

[% form.checkbox( label = dw.ml( '.label.csv_header' ), name = "csv_header", id = "csv_header", selected = 1, value = 1 ) %]

[%- form.select( name = 'encid' label = dw.ml('.label.encoding') selected = 'UTF-8' hint = dw.ml('.hint.encoding') items = encodings ) -%]

[% '.label.choices' | ml %]