diff options
author | msquare <msquare@notrademark.de> | 2016-12-13 17:55:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-13 17:55:26 +0100 |
commit | e7767af4c1551dacbeb1ef22ab193e334826c81e (patch) | |
tree | 1bce73a6f803792dcef5196aefe52a45fb4a46a3 /includes/controller | |
parent | 39f9c2e34cd2fb44a3ea66e363045b250a0e4b07 (diff) | |
parent | 6a591e7557e5a2b9c14dec7abb75f09249df9b6d (diff) |
Merge pull request #285 from jwacalex/gh_issue_253_disallow_selfsignup_for_shifts
Issue #253 disallow selfsignup for shifts
Diffstat (limited to 'includes/controller')
-rw-r--r-- | includes/controller/angeltypes_controller.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/controller/angeltypes_controller.php b/includes/controller/angeltypes_controller.php index 7af05175..cd2aa3e4 100644 --- a/includes/controller/angeltypes_controller.php +++ b/includes/controller/angeltypes_controller.php @@ -118,6 +118,8 @@ function angeltype_edit_controller() { } $angeltype['restricted'] = isset($_REQUEST['restricted']); + $angeltype['no_self_signup'] = isset($_REQUEST['no_self_signup']); + $angeltype['requires_driver_license'] = isset($_REQUEST['requires_driver_license']); } @@ -192,6 +194,8 @@ function angeltypes_list_controller() { } $angeltype['restricted'] = $angeltype['restricted'] ? glyph('lock') : ''; + $angeltype['no_self_signup'] = $angeltype['no_self_signup'] ? '' : glyph('share'); + $angeltype['name'] = '<a href="' . page_link_to('angeltypes') . '&action=view&angeltype_id=' . $angeltype['id'] . '">' . $angeltype['name'] . '</a>'; $angeltype['actions'] = table_buttons($actions); |