make 'other' field optional and add inactivate/activate button

This commit is contained in:
2025-08-16 16:03:27 +02:00
parent 2f67319cdc
commit d0d19b8b4e
4 changed files with 104 additions and 80 deletions

View File

@@ -0,0 +1,17 @@
<?php
if ($this->is_id()) {
$user_kid = new user_kid();
$user_kid->set_user_data_by_id($this->get_id());
$activityToSet = $user_kid->get_uk_is_active() == 1 ? 0 : 1;
$sql->update_table('user_kid', [
'uk_is_active' => $activityToSet
], [
'uk_id' => $this->get_id()
]);
header("Location: /admin/members/" . $this->get_id());
}