Skip to content

Commit

Permalink
Group: Improve form to add users - refs BT#19736
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Feb 23, 2022
1 parent a0baf89 commit 8884d75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions main/admin/add_users_to_usergroup.php
Expand Up @@ -355,7 +355,7 @@ function change_select(reset) {
<div class="col-md-5">
<?php if ($data['group_type'] == UserGroup::SOCIAL_CLASS) {
?>
<select name="relation" id="relation">
<select name="relation" id="relation" class="form-control">
<option value=""><?php echo get_lang('SelectARelationType'); ?></option>
<option value="<?php echo GROUP_USER_PERMISSION_ADMIN; ?>" <?php echo (isset($relation) && $relation == GROUP_USER_PERMISSION_ADMIN) ? 'selected=selected' : ''; ?> >
<?php echo get_lang('Admin'); ?></option>
Expand All @@ -375,14 +375,14 @@ function change_select(reset) {
<b><?php echo get_lang('UsersInPlatform'); ?> :</b>
<div class="input-group">
<input id="first_letter_user" name="firstLetterUser" type="text" class="form-control"
value="<?php echo Security::remove_XSS($first_letter_user) ?>"
placeholder="<?php echo get_lang('Search') ?>">
value="<?php echo Security::remove_XSS($first_letter_user); ?>"
placeholder="<?php echo get_lang('Search'); ?>">
<span class="input-group-btn">
<button class="btn btn-default" type="button" onclick="change_select();">
<?php echo get_lang('Filter') ?>
<?php echo get_lang('Filter'); ?>
</button>
<button class="btn btn-default" type="button" onclick="change_select(true);">
<?php echo get_lang('Reset') ?>
<?php echo get_lang('Reset'); ?>
</button>
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion main/inc/lib/display.lib.php
Expand Up @@ -2091,7 +2091,7 @@ public static function tip($text, $tip, string $tag = 'span')
if (empty($tip)) {
return $text;
}

return self::tag(
$tag,
$text,
Expand Down

0 comments on commit 8884d75

Please sign in to comment.