GUI for Participant management

This commit is contained in:
2026-04-07 22:27:47 +02:00
parent 653e85b781
commit e6bd8c684d
20 changed files with 965 additions and 153 deletions

View File

@@ -140,11 +140,18 @@ class EventParticipant extends InstancedModel
return sprintf('%1$s %2$s', $this->firstname, $this->lastname);
}
public function getFullname() : string {
return sprintf('%1$1s %2$s %3$s',
public function getFullName() : string {
if ($this->nickname === null) {
return sprintf('%1$s %2$s', $this->firstname, $this->lastname)
|>trim(...);
}
return sprintf('%1$1s%2$s(%3$s %4$s)',
$this->nickname,
'<br />',
$this->firstname,
$this->lastname,
$this->nickname !== null ? '(' . $this->nickname . ')' : '',
)
|>trim(...);
}