Skip to content

Commit

Permalink
Broken "distribute" confirmation (sympa-community#1932)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedas committed Jan 25, 2025
1 parent afbc496 commit 5e04519
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
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

0 comments on commit 5e04519

Please sign in to comment.