$Issue->author ? " door <strong>{$Issue->author}</strong>" : '',
showdate(preg_split('/\D/', $Issue->created))
);
+ if ($Issue->assign) {
+ printf('<p><em>%s</em> aan <strong>%s</strong></p>'."\n",
+ 'Toegewezen', htmlspecialchars($Issue->assign)
+ );
+ }
if ($Issue->closed) {
printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
'Opgelost', '',
closed timestamptz DEFAULT now(),
updated timestamptz NOT NULL DEFAULT now(),
author text,
+ assign text,
id serial NOT NULL PRIMARY KEY
);
if (isset($Issue)) {
$row = ['updated' => ['now()']];
+ foreach (['assign'] as $col) {
+ if (!isset($_POST[$col])) continue;
+ $row[$col] = $_POST[$col] ?: NULL;
+ }
$Db->set('issues', $row, ['id = ?', $Issue->id]);
}
$_POST['reply'] = NULL;
if ($User) {
print '<li>';
print '<form method="post" action="">';
+ if (isset($Issue) and $User->admin("edit $Page")) {
+ print '<p>';
+ printf(
+ '<label for="%s">%s:</label> '
+ . '<input id="%1$s" name="%1$s" value="%s" />'."\n",
+ 'assign',
+ 'Toegewezen aan',
+ htmlspecialchars($Issue->assign ?? '')
+ );
+ print "</p>\n";
+ }
printf('<textarea id="%s" name="%1$s" cols=60 rows=3 placeholder="%s">%s</textarea>'."\n",
'reply',
"Bericht van {$User->login}",