Skip to content

Broken "distribute" confirmation (#1932) #1933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions default/web_tt2/confirm_action.tt2
Original file line number Diff line number Diff line change
Expand Up @@ -473,16 +473,24 @@
[% IF topic_required ~%]
<h3>[%|loc%]This list is configured to require topic(s).[%END%]</h3>
[%~ END %]
<p>[%|loc%]Please select one or more topic(s) that corresponds to the messages you wish to distribute:[%END%]</p>
<ul>
[% IF listconf.msg_topic && listconf.msg_topic.size ~%]
<p>[%|loc%]Please select one or more topic(s) that corresponds to the messages you wish to distribute:[%END%]</p>
<ul>
[% FOREACH t = listconf.msg_topic ~%]
[% NEXT UNLESS t && t.name ~%]
<li>
<input type="checkbox" name="topic" id="topic_[%t.name%]" value="[% t.name %]" />
<label for="topic_[%t.name%]">[% t.title %] </label>
</li>
<li>
<input type="checkbox" name="topic" id="topic_[%t.name%]"
value="[% t.name %]"
[%~ IF topic && topic.size ~%]
[% FOREACH tp = topic ~%]
[% IF t.name == tp %] checked[% END %]
[%~ END %]
[%~ END %] />
<label for="topic_[%t.name%]">[% t.title %] </label>
</li>
[%~ END %]
</ul>
</ul>
[% END %]
[%~ ELSIF confirm_action == 'd_admin' && d_admin == 'delete' ~%]
<input type="hidden" name="d_admin" value="[% d_admin %]" />
[%~ ELSIF confirm_action == 'd_delete' ~%]
Expand Down
Loading