+ print '<form method="post" action="" enctype="multipart/form-data">';
+ if (isset($Issue) and $User->admin("edit {$Page->link}")) {
+ print "<aside>\n";
+ print '<p>';
+ printf(
+ '<label for="%s">%s:</label> '
+ . '<input id="%1$s" name="%1$s" value="%s" />'."\n",
+ 'subject',
+ $journalcol['subject'],
+ htmlspecialchars($Issue->subject ?? '')
+ );
+ print "</p>\n";
+
+ print '<p>';
+ printf(
+ '<label for="%s">%s:</label> '
+ . '<input id="%1$s" name="%1$s" value="%s" />'."\n",
+ 'assign',
+ $journalcol['assign'],
+ htmlspecialchars($Issue->assign ?? '')
+ );
+ printf(
+ '<input type="hidden" name="%s" value="" />' .
+ '<input type="checkbox" id="%1$s" name="%1$s" value="%s"%s />'
+ . '<label for="%1$s"> %s</label>'."\n",
+ 'status',
+ 'resolved',
+ isset($Issue->closed) ? ' checked' : '',
+ 'Gesloten'
+ );
+ print "</p>\n";
+ print "</aside>\n";
+ }
+ {
+ print '<p>';
+ printf(
+ '<input type="hidden" name="%s" value="" />'
+ . "Geplaatste berichten zijn hier direct zichtbaar voor bewoners.\n"
+ . '<input type="checkbox" id="%1$s" name="%1$s" value="%s"%s%s />'
+ . '<label for="%1$s"> %s</label>'."\n",
+ 'announce',
+ '1',
+ ($_POST['announce'] ?? TRUE) ? ' checked' : '',
+ ' onclick="this.nextSibling.hidden = !this.checked"',
+ "De eerste regel wordt ook weergegeven op het scherm in de hal."
+ );
+ print "</p>\n";
+ }
+ if (isset($Issue)) {
+ printf(
+ '<p><label for="%s">%s:</label> '
+ . '<input id="%1$s" name="%1$s" value=""%s /></p>'."\n",
+ 'image', 'Beeldmateriaal', ' type="file" accept="image/*"'
+ );
+ }