[%# views/entry/module-crosspost.tt Module to control crosspost behavior Authors: Afuna Copyright (c) 2011-2014 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'. %] [% IF remote %] [%- IF crosspostlist.size > 0 -%] [%- dw.need_res( { group => "foundation" }, "js/md5.js" "js/components/jquery.crosspost.js" ) -%] [%- END -%]

[% ".header" | ml %]

[%- IF crosspostlist.size == 0 -%] [%- ELSE -%]
[%- INCLUDE "components/icon-link-decorative.tt" link = { url = crosspost_url newwindow = 1 } icon = "wrench" text = dw.ml( ".settings.link" ) -%] [%- form.checkbox_nested( label = dw.ml(".label.crosspost_entry") name ="crosspost_entry" id = "js-crosspost-entry" value = 1 default = crosspost_entry ) -%]
[% ".header.accounts" | ml %] [% crosspost_password_label = ".label.password" | ml %]
    [% FOREACH account IN crosspostlist %]
  • [%- form.checkbox_nested( label = account.name name = "crosspost" value = account.id default = account.selected ) -%] [% IF account.need_password %]
    [%- form.password( label = crosspost_password_label name = "crosspost_password_$account.id" class = "crosspost-password" ) -%]
    [%# we don't want these to be carried over between posts %]
    [%- END -%]
  • [%- END -%]
[%- END -%]
[% END %]