Skip to content

Commit

Permalink
Merge pull request #1933 from ikedas/issue-1932 by ikedas
Browse files Browse the repository at this point in the history
Broken "distribute" confirmation (#1932)
ikedas authored Jan 28, 2025
2 parents e6e824f + 5e04519 commit 1b60ea7
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions default/web_tt2/confirm_action.tt2
Original file line number Diff line number Diff line change
@@ -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' ~%]

0 comments on commit 1b60ea7

Please sign in to comment.