summaryrefslogtreecommitdiff
path: root/includes/view/AngelTypes_view.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-23 11:59:13 +0100
committermsquare <msquare@notrademark.de>2017-12-23 11:59:13 +0100
commitfbbea4eb5f8e72386a78c3b4639147b6e82a8535 (patch)
tree2d4b4b6f0aee8c69c3c9828cd03d292b5fefb8ae /includes/view/AngelTypes_view.php
parent16a8b0e2fabe3dc632ae2e8dfcf9cc7a6f0c6aaa (diff)
add show on dashboard flag for angeltypes
Diffstat (limited to 'includes/view/AngelTypes_view.php')
-rw-r--r--includes/view/AngelTypes_view.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/includes/view/AngelTypes_view.php b/includes/view/AngelTypes_view.php
index a8b34df8..a5c10a38 100644
--- a/includes/view/AngelTypes_view.php
+++ b/includes/view/AngelTypes_view.php
@@ -84,6 +84,10 @@ function AngelType_edit_view($angeltype, $supporter_mode)
$supporter_mode
? form_info(_('Restricted'), $angeltype['restricted'] ? _('Yes') : _('No'))
: form_checkbox('restricted', _('Restricted'), $angeltype['restricted']),
+ form_info(
+ '',
+ _('Restricted angel types can only be used by an angel if enabled by a supporter (double opt-in).')
+ ),
$supporter_mode
? form_info(_('No Self Sign Up'), $angeltype['no_self_signup'] ? _('Yes') : _('No'))
: form_checkbox('no_self_signup', _('No Self Sign Up'), $angeltype['no_self_signup']),
@@ -92,12 +96,10 @@ function AngelType_edit_view($angeltype, $supporter_mode)
: form_checkbox(
'requires_driver_license',
_('Requires driver license'),
- $angeltype['requires_driver_license']
- ),
- form_info(
- '',
- _('Restricted angel types can only be used by an angel if enabled by a supporter (double opt-in).')
- ),
+ $angeltype['requires_driver_license']),
+ $supporter_mode
+ ? form_info(_('Show on dashboard'), $angeltype['show_on_dashboard'] ? _('Yes') : _('No'))
+ : form_checkbox('show_on_dashboard', _('Show on dashboard'), $angeltype['show_on_dashboard']),
form_textarea('description', _('Description'), $angeltype['description']),
form_info('', _('Please use markdown for the description.')),
heading(_('Contact'), 3),