2017-11-13 05:20:42 +01:00
<div id="user-groups-admin" class="settings-section" data-name="user-groups-admin">
2021-06-03 15:47:03 +02:00
{{ # if ( eq realm_user_group_edit_policy policy_values .by_members .code ) }}
<div class="tip"> {{ t 'Only group members, organization administrators and moderators can modify a group.' }} </div>
{{ else if ( eq realm_user_group_edit_policy policy_values .by_full_members .code ) }}
<div class="tip"> {{ t 'Only full members belonging to the group, organization administrators and moderators can modify a group.' }} </div>
{{ else if ( eq realm_user_group_edit_policy policy_values .by_moderators_only .code ) }}
<div class="tip"> {{ t 'Only organization administrators and moderators can modify user groups in this organization.' }} </div>
2021-06-30 18:15:14 +02:00
{{ else }}
<div class="tip"> {{ t 'Only organization administrators can modify user groups in this organization.' }} </div>
{{ / if }}
2019-11-02 17:58:55 +01:00
2018-06-14 08:35:05 +02:00
{{ # unless is_guest }}
2019-11-02 17:58:55 +01:00
<p>
2021-04-14 03:04:02 +02:00
{{ # tr }}
2021-04-10 05:53:13 +02:00
User groups allow you to <z-link>mention</z-link> multiple users at once. When you mention a user group, everyone in the group is notified as if they were individually mentioned.
{{ #*inline "z-link" }} <a href="/help/mention-a-user-or-group" target="_blank" rel="noopener noreferrer"> {{ > @partial-block }} </a> {{ / inline }}
{{ / tr }}
2019-11-02 17:58:55 +01:00
</p>
2021-06-03 15:47:03 +02:00
{{ # if can_edit_user_groups }}
2019-11-02 17:58:55 +01:00
<form class="form-horizontal admin-user-group-form">
<div class="add-new-user-group-box grey-box">
<div class="new-user-group-form">
<div class="settings-section-title new-user-group-section-title no-padding"> {{ t "Add a new user group" }} </div>
<div class="alert" id="admin-user-group-status"></div>
<div class="inline-block">
<label for="user_group_name"> {{ t "Name" }} </label>
<input type="text" name="name" id="user_group_name" maxlength="100" placeholder=" {{ t 'marketing' }} " />
</div>
<div class="inline-block">
<label for="user_group_description"> {{ t "Description" }} </label>
<input type="text" name="description" id="user_group_description" maxlength="300" placeholder=" {{ t 'Marketing team' }} " />
</div>
<button type="submit" class="button rounded sea-green">
{{ t 'Save' }}
</button>
2017-11-17 04:31:37 +01:00
</div>
</div>
2019-11-02 17:58:55 +01:00
</form>
2020-02-21 20:13:14 +01:00
{{ / if }}
2018-06-14 08:35:05 +02:00
{{ / unless }}
2017-11-17 04:31:37 +01:00
2018-08-22 00:31:48 +02:00
<div id="user-groups" class="new-style"></div>
2017-11-13 05:20:42 +01:00
</div>