posts as $i => $p) {
$fields .= $this->hiddenFieldTag("posts[{$p->id}]", str_pad($i, 5, STR_PAD_LEFT));
$thumbnails .= $this->print_preview($p, ['onclick' => "return removePost({$p->id})"]);
}
?>
= $this->checkBoxTag("delete-mode") ?>
= $this->contentTag('label', "Remove posts", ['onclick' => "Element::toggle('delete-mode-help')", 'for' => "delete-mode"]) ?>
= $this->contentTag('p', $this->contentTag('em', "When delete mode is enabled, clicking on a thumbnail will remove that post from the import."), ['style' => "display: none;", 'id' => "delete-mode-help"]) ?>
= $fields ?>
= $thumbnails ?>