[%# views/entry/module-journal.tt Module for the journal we're posting as/to 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 %]

[% IF remote %]
[% ".label.post_as" | ml %] [%- form.hidden( id = "poster_remote", name = "poster_remote", value = remote.user ) -%]
  • [%- form.radio( label = remote.user name = "post_as" id = "post_as_remote" value = "remote" default = ( post_as == "remote" ) ) -%]
  • [%- post_as_other_label = ".label.post_as_other" | ml; form.radio( label = post_as_other_label name = "post_as" id = "post_as_other" value = "other" default = ( post_as == "other" ) ) -%]
[% ELSE %] [%- form.hidden( name = "post_as" id = "post_as_other" value = "other" ) -%] [% END %]
[% IF remote %]
[%- IF journallist.size > 1 %] [%- journalselect = []; FOREACH journal IN journallist; IF journal.equals( remote ); journalselect.push( "", journal.user ); ELSE; journalselect.push( journal.user, journal.user ); END; END -%] [% form.select( name = "usejournal" id = "usejournal" items = journalselect ) -%] [% ELSE %] [% journallist.first.ljuser_display%] [% form.hidden( name = "usejournal", id = "usejournal", value = journallist.first.user ) %] [% END %]
[% END %]
[% ".header.post_as" | ml %]
  • [%- postas_username_label = ".label.post_as_username" | ml; form.textbox( label = postas_username_label name = "username" id = "post_username" ) -%]
  • [%- postas_password_label = ".label.post_as_password" | ml; form.password( label = postas_password_label name = "password" id = "password" ) -%]
  • [% IF usejournal %] [% usejournal.ljuser_display %] [% ELSE %] [% form.textbox( name = "postas_usejournal", id = "postas_usejournal" ) %] [% END %]