mourningdove/views/tracking/settings-interface.tt

69 lines
2.2 KiB
Text
Raw Normal View History

2026-05-24 01:03:05 +00:00
[%# HTML fragment for the notification subscription interface on /manage/settings
#
# Authors:
# Jen Griffin <kareila@livejournal.com>
#
# 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" ) -%]
<div class='settings_content'>
<div class='notifications'>
[% IF has_admin_form %]
<div id='settings_save' class='action-bar'>
<form action='[% site.root %]/manage/settings/' method='get'>
[% 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" ) ) %]
</form>
</div>
[% END %]
[% IF has_user_form %]
<form class='table-form' id='settings_form' action='[% post_action %]' method='post'>
[% 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
-%]
<div id='settings_save' class='action-bar'>
[% IF has_user_form; form.submit( value = dw.ml( ".btn.save" ) ); END %]&nbsp;
[% del_btn %]
</div>
[%- END -%]
<div id='manageSettings'>
[% subscribe_interface %]
</div>
<br />
</div>
</div>
<div id='settings_save' class='action-bar'>
[% IF has_user_form; form.submit( value = dw.ml( ".btn.save" ) ); END %]&nbsp;
[% IF viewing_self; del_btn; END %]
</div>
[% IF has_user_form; "</form>"; END %]