|
|
@ -20,22 +20,19 @@ function UserAngelType_update_view($user_angeltype, $user, $angeltype, $supporte
|
|
|
|
$angeltype['name'],
|
|
|
|
$angeltype['name'],
|
|
|
|
User_Nick_render($user)
|
|
|
|
User_Nick_render($user)
|
|
|
|
), true),
|
|
|
|
), true),
|
|
|
|
|
|
|
|
form([
|
|
|
|
buttons([
|
|
|
|
buttons([
|
|
|
|
button(
|
|
|
|
button(
|
|
|
|
page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']]),
|
|
|
|
page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype['id']]),
|
|
|
|
glyph('remove') . __('cancel')
|
|
|
|
glyph('remove') . __('cancel')
|
|
|
|
),
|
|
|
|
),
|
|
|
|
button(
|
|
|
|
form_submit('submit', glyph('ok') . __('yes'), 'btn-primary', false),
|
|
|
|
page_link_to('user_angeltypes', [
|
|
|
|
]),
|
|
|
|
|
|
|
|
], page_link_to('user_angeltypes', [
|
|
|
|
'action' => 'update',
|
|
|
|
'action' => 'update',
|
|
|
|
'user_angeltype_id' => $user_angeltype['id'],
|
|
|
|
'user_angeltype_id' => $user_angeltype['id'],
|
|
|
|
'supporter' => ($supporter ? '1' : '0'),
|
|
|
|
'supporter' => ($supporter ? '1' : '0'),
|
|
|
|
'confirmed' => 1,
|
|
|
|
])),
|
|
|
|
]),
|
|
|
|
|
|
|
|
glyph('ok') . __('yes'),
|
|
|
|
|
|
|
|
'btn-primary'
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -48,6 +45,7 @@ function UserAngelTypes_delete_all_view($angeltype)
|
|
|
|
return page_with_title(__('Deny all users'), [
|
|
|
|
return page_with_title(__('Deny all users'), [
|
|
|
|
msg(),
|
|
|
|
msg(),
|
|
|
|
info(sprintf(__('Do you really want to deny all users for %s?'), $angeltype['name']), true),
|
|
|
|
info(sprintf(__('Do you really want to deny all users for %s?'), $angeltype['name']), true),
|
|
|
|
|
|
|
|
form([
|
|
|
|
buttons([
|
|
|
|
buttons([
|
|
|
|
button(
|
|
|
|
button(
|
|
|
|
page_link_to(
|
|
|
|
page_link_to(
|
|
|
@ -56,15 +54,9 @@ function UserAngelTypes_delete_all_view($angeltype)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
glyph('remove') . __('cancel')
|
|
|
|
glyph('remove') . __('cancel')
|
|
|
|
),
|
|
|
|
),
|
|
|
|
button(
|
|
|
|
form_submit('deny_all', glyph('ok') . __('yes'), 'btn-primary', false)
|
|
|
|
page_link_to(
|
|
|
|
]),
|
|
|
|
'user_angeltypes',
|
|
|
|
], page_link_to('user_angeltypes', ['action' => 'delete_all', 'angeltype_id' => $angeltype['id']])),
|
|
|
|
['action' => 'delete_all', 'angeltype_id' => $angeltype['id'], 'confirmed' => 1]
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
glyph('ok') . __('yes'),
|
|
|
|
|
|
|
|
'btn-primary'
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -77,15 +69,12 @@ function UserAngelTypes_confirm_all_view($angeltype)
|
|
|
|
return page_with_title(__('Confirm all users'), [
|
|
|
|
return page_with_title(__('Confirm all users'), [
|
|
|
|
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),
|
|
|
|
|
|
|
|
form([
|
|
|
|
buttons([
|
|
|
|
buttons([
|
|
|
|
button(angeltype_link($angeltype['id']), glyph('remove') . __('cancel')),
|
|
|
|
button(angeltype_link($angeltype['id']), glyph('remove') . __('cancel')),
|
|
|
|
button(
|
|
|
|
form_submit('confirm_all', glyph('ok') . __('yes'), 'btn-primary', false),
|
|
|
|
page_link_to('user_angeltypes',
|
|
|
|
]),
|
|
|
|
['action' => 'confirm_all', 'angeltype_id' => $angeltype['id'], 'confirmed' => 1]),
|
|
|
|
], page_link_to('user_angeltypes', ['action' => 'confirm_all', 'angeltype_id' => $angeltype['id']])),
|
|
|
|
glyph('ok') . __('yes'),
|
|
|
|
|
|
|
|
'btn-primary'
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -104,17 +93,12 @@ function UserAngelType_confirm_view($user_angeltype, $user, $angeltype)
|
|
|
|
User_Nick_render($user),
|
|
|
|
User_Nick_render($user),
|
|
|
|
$angeltype['name']
|
|
|
|
$angeltype['name']
|
|
|
|
), true),
|
|
|
|
), true),
|
|
|
|
|
|
|
|
form([
|
|
|
|
buttons([
|
|
|
|
buttons([
|
|
|
|
button(angeltype_link($angeltype['id']), glyph('remove') . __('cancel')),
|
|
|
|
button(angeltype_link($angeltype['id']), glyph('remove') . __('cancel')),
|
|
|
|
button(
|
|
|
|
form_submit('confirm_user', glyph('ok') . __('yes'), 'btn-primary', false),
|
|
|
|
page_link_to(
|
|
|
|
]),
|
|
|
|
'user_angeltypes',
|
|
|
|
], page_link_to('user_angeltypes', ['action' => 'confirm', 'user_angeltype_id' => $user_angeltype['id']])),
|
|
|
|
['action' => 'confirm', 'user_angeltype_id' => $user_angeltype['id'], 'confirmed' => 1]
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
glyph('ok') . __('yes'),
|
|
|
|
|
|
|
|
'btn-primary'
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -133,15 +117,12 @@ function UserAngelType_delete_view($user_angeltype, $user, $angeltype)
|
|
|
|
User_Nick_render($user),
|
|
|
|
User_Nick_render($user),
|
|
|
|
$angeltype['name']
|
|
|
|
$angeltype['name']
|
|
|
|
), true),
|
|
|
|
), true),
|
|
|
|
|
|
|
|
form([
|
|
|
|
buttons([
|
|
|
|
buttons([
|
|
|
|
button(angeltype_link($angeltype['id']), glyph('remove') . __('cancel')),
|
|
|
|
button(angeltype_link($angeltype['id']), glyph('remove') . __('cancel')),
|
|
|
|
button(
|
|
|
|
form_submit('delete', glyph('ok') . __('yes'), 'btn-primary', false),
|
|
|
|
page_link_to('user_angeltypes',
|
|
|
|
]),
|
|
|
|
['action' => 'delete', 'user_angeltype_id' => $user_angeltype['id'], 'confirmed' => 1]),
|
|
|
|
], page_link_to('user_angeltypes', ['action' => 'delete', 'user_angeltype_id' => $user_angeltype['id']])),
|
|
|
|
glyph('ok') . __('yes'),
|
|
|
|
|
|
|
|
'btn-primary'
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -189,16 +170,14 @@ function UserAngelType_join_view($user, $angeltype)
|
|
|
|
User_Nick_render($user),
|
|
|
|
User_Nick_render($user),
|
|
|
|
$angeltype['name']
|
|
|
|
$angeltype['name']
|
|
|
|
), true),
|
|
|
|
), true),
|
|
|
|
|
|
|
|
form([
|
|
|
|
buttons([
|
|
|
|
buttons([
|
|
|
|
button(angeltype_link($angeltype['id']), glyph('remove') . __('cancel')),
|
|
|
|
button(angeltype_link($angeltype['id']), glyph('remove') . __('cancel')),
|
|
|
|
button(
|
|
|
|
form_submit('submit', glyph('ok') . __('save'), 'btn-primary', false)
|
|
|
|
page_link_to(
|
|
|
|
]),
|
|
|
|
|
|
|
|
], page_link_to(
|
|
|
|
'user_angeltypes',
|
|
|
|
'user_angeltypes',
|
|
|
|
['action' => 'add', 'angeltype_id' => $angeltype['id'], 'user_id' => $user->id, 'confirmed' => 1]
|
|
|
|
['action' => 'add', 'angeltype_id' => $angeltype['id'], 'user_id' => $user->id]
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
glyph('ok') . __('save'),
|
|
|
|
|
|
|
|
'btn-primary'
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|