[%# HTML fragment for the notification subscription interface on /manage/settings # # Authors: # Jen Griffin # # Copyright (c) 2023 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( "jquery" ) -%] [%- dw.need_res( { group => "jquery" }, "js/notifications.js", "js/components/jquery.select-all-special.js", "stc/css/components/select-all.css" ) -%]
[% IF has_admin_form %]
[% IF get_args.authas; form.hidden( name = 'authas', value = get_args.authas ); END %] [% form.hidden( name = 'cat', value = "notifications" ) %] [% form.textbox( label = dw.ml( '.user' ), name = 'user', id = 'user', size = 15, maxlength = site.maxlength_user, value = get_args.user ) %] [% form.submit( value = dw.ml( ".user.submit" ) ) %]
[% END %] [% IF has_user_form %]
[% dw.form_auth %] [% END %] [%- btn_txt = '.btn.deleteinactive' | ml; del_conf = '.confirm.deleteinactive' | ml; del_btn = form.submit( name = 'deleteinactive', value = btn_txt, title = btn_txt, class => 'btn', onclick = "return confirm( '$del_conf' )" ) -%] [%- UNLESS has_admin_form; # reprint the save buttons here -%]
[% IF has_user_form; form.submit( value = dw.ml( ".btn.save" ) ); END %]  [% del_btn %]
[%- END -%]
[% subscribe_interface %]

[% IF has_user_form; form.submit( value = dw.ml( ".btn.save" ) ); END %]  [% IF viewing_self; del_btn; END %]
[% IF has_user_form; ""; END %]