|
|
@ -21,8 +21,7 @@ function UserAngelType_update_view($user_angeltype, $user, $angeltype, $supporte
|
|
|
|
buttons([
|
|
|
|
buttons([
|
|
|
|
button(
|
|
|
|
button(
|
|
|
|
page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']]),
|
|
|
|
page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']]),
|
|
|
|
_('cancel'),
|
|
|
|
glyph('remove') . _('cancel')
|
|
|
|
'cancel'
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
button(
|
|
|
|
button(
|
|
|
|
page_link_to('user_angeltypes', [
|
|
|
|
page_link_to('user_angeltypes', [
|
|
|
@ -31,8 +30,8 @@ function UserAngelType_update_view($user_angeltype, $user, $angeltype, $supporte
|
|
|
|
'supporter' => ($supporter ? '1' : '0'),
|
|
|
|
'supporter' => ($supporter ? '1' : '0'),
|
|
|
|
'confirmed' => 1,
|
|
|
|
'confirmed' => 1,
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
_('yes'),
|
|
|
|
glyph('ok') . _('yes'),
|
|
|
|
'ok'
|
|
|
|
'btn-primary'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
])
|
|
|
|
])
|
|
|
|
]);
|
|
|
|
]);
|
|
|
@ -53,16 +52,15 @@ function UserAngelTypes_delete_all_view($angeltype)
|
|
|
|
'angeltypes',
|
|
|
|
'angeltypes',
|
|
|
|
['action' => 'view', 'angeltype_id' => $angeltype['id']]
|
|
|
|
['action' => 'view', 'angeltype_id' => $angeltype['id']]
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_('cancel'),
|
|
|
|
glyph('remove') . _('cancel')
|
|
|
|
'cancel'
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
button(
|
|
|
|
button(
|
|
|
|
page_link_to(
|
|
|
|
page_link_to(
|
|
|
|
'user_angeltypes',
|
|
|
|
'user_angeltypes',
|
|
|
|
['action' => 'delete_all', 'angeltype_id' => $angeltype['id'], 'confirmed' => 1]
|
|
|
|
['action' => 'delete_all', 'angeltype_id' => $angeltype['id'], 'confirmed' => 1]
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_('yes'),
|
|
|
|
glyph('ok') . _('yes'),
|
|
|
|
'ok'
|
|
|
|
'btn-primary'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
])
|
|
|
|
])
|
|
|
|
]);
|
|
|
|
]);
|
|
|
@ -78,13 +76,12 @@ function UserAngelTypes_confirm_all_view($angeltype)
|
|
|
|
msg(),
|
|
|
|
msg(),
|
|
|
|
info(sprintf(_('Do you really want to confirm all users for %s?'), $angeltype['name']), true),
|
|
|
|
info(sprintf(_('Do you really want to confirm all users for %s?'), $angeltype['name']), true),
|
|
|
|
buttons([
|
|
|
|
buttons([
|
|
|
|
button(page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']]), _('cancel'),
|
|
|
|
button(angeltype_link($angeltype['id']), glyph('remove') . _('cancel')),
|
|
|
|
'cancel'),
|
|
|
|
|
|
|
|
button(
|
|
|
|
button(
|
|
|
|
page_link_to('user_angeltypes',
|
|
|
|
page_link_to('user_angeltypes',
|
|
|
|
['action' => 'confirm_all', 'angeltype_id' => $angeltype['id'], 'confirmed' => 1]),
|
|
|
|
['action' => 'confirm_all', 'angeltype_id' => $angeltype['id'], 'confirmed' => 1]),
|
|
|
|
_('yes'),
|
|
|
|
glyph('ok') . _('yes'),
|
|
|
|
'ok'
|
|
|
|
'btn-primary'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
])
|
|
|
|
])
|
|
|
|
]);
|
|
|
|
]);
|
|
|
@ -102,18 +99,14 @@ function UserAngelType_confirm_view($user_angeltype, $user, $angeltype)
|
|
|
|
msg(),
|
|
|
|
msg(),
|
|
|
|
info(sprintf(_('Do you really want to confirm %s for %s?'), User_Nick_render($user), $angeltype['name']), true),
|
|
|
|
info(sprintf(_('Do you really want to confirm %s for %s?'), User_Nick_render($user), $angeltype['name']), true),
|
|
|
|
buttons([
|
|
|
|
buttons([
|
|
|
|
button(
|
|
|
|
button(angeltype_link($angeltype['id']), glyph('remove') . _('cancel')),
|
|
|
|
page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']]),
|
|
|
|
|
|
|
|
_('cancel'),
|
|
|
|
|
|
|
|
'cancel'
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
button(
|
|
|
|
button(
|
|
|
|
page_link_to(
|
|
|
|
page_link_to(
|
|
|
|
'user_angeltypes',
|
|
|
|
'user_angeltypes',
|
|
|
|
['action' => 'confirm', 'user_angeltype_id' => $user_angeltype['id'], 'confirmed' => 1]
|
|
|
|
['action' => 'confirm', 'user_angeltype_id' => $user_angeltype['id'], 'confirmed' => 1]
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_('yes'),
|
|
|
|
glyph('ok') . _('yes'),
|
|
|
|
'ok'
|
|
|
|
'btn-primary'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
])
|
|
|
|
])
|
|
|
|
]);
|
|
|
|
]);
|
|
|
@ -131,16 +124,12 @@ function UserAngelType_delete_view($user_angeltype, $user, $angeltype)
|
|
|
|
msg(),
|
|
|
|
msg(),
|
|
|
|
info(sprintf(_('Do you really want to delete %s from %s?'), User_Nick_render($user), $angeltype['name']), true),
|
|
|
|
info(sprintf(_('Do you really want to delete %s from %s?'), User_Nick_render($user), $angeltype['name']), true),
|
|
|
|
buttons([
|
|
|
|
buttons([
|
|
|
|
button(
|
|
|
|
button(angeltype_link($angeltype['id']), glyph('remove') . _('cancel')),
|
|
|
|
page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']]),
|
|
|
|
|
|
|
|
_('cancel'),
|
|
|
|
|
|
|
|
'cancel'
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
button(
|
|
|
|
button(
|
|
|
|
page_link_to('user_angeltypes',
|
|
|
|
page_link_to('user_angeltypes',
|
|
|
|
['action' => 'delete', 'user_angeltype_id' => $user_angeltype['id'], 'confirmed' => 1]),
|
|
|
|
['action' => 'delete', 'user_angeltype_id' => $user_angeltype['id'], 'confirmed' => 1]),
|
|
|
|
_('yes'),
|
|
|
|
glyph('ok') . _('yes'),
|
|
|
|
'ok'
|
|
|
|
'btn-primary'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
])
|
|
|
|
])
|
|
|
|
]);
|
|
|
|
]);
|
|
|
@ -187,18 +176,14 @@ function UserAngelType_join_view($user, $angeltype)
|
|
|
|
msg(),
|
|
|
|
msg(),
|
|
|
|
info(sprintf(_('Do you really want to add %s to %s?'), User_Nick_render($user), $angeltype['name']), true),
|
|
|
|
info(sprintf(_('Do you really want to add %s to %s?'), User_Nick_render($user), $angeltype['name']), true),
|
|
|
|
buttons([
|
|
|
|
buttons([
|
|
|
|
button(
|
|
|
|
button(angeltype_link($angeltype['id']), glyph('remove') . _('cancel')),
|
|
|
|
page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']]),
|
|
|
|
|
|
|
|
_('cancel'),
|
|
|
|
|
|
|
|
'cancel'
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
button(
|
|
|
|
button(
|
|
|
|
page_link_to(
|
|
|
|
page_link_to(
|
|
|
|
'user_angeltypes',
|
|
|
|
'user_angeltypes',
|
|
|
|
['action' => 'add', 'angeltype_id' => $angeltype['id'], 'user_id' => $user['UID'], 'confirmed' => 1]
|
|
|
|
['action' => 'add', 'angeltype_id' => $angeltype['id'], 'user_id' => $user['UID'], 'confirmed' => 1]
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_('save'),
|
|
|
|
glyph('ok') . _('save'),
|
|
|
|
'ok'
|
|
|
|
'btn-primary'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
])
|
|
|
|
])
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|