|
|
@ -211,46 +211,47 @@
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if request.user.can_admin_current_org %}
|
|
|
|
|
|
|
|
{% if user_object.can_user_current_org or user_object.can_admin_current_org %}
|
|
|
|
|
|
|
|
<div class="panel panel-info">
|
|
|
|
|
|
|
|
<div class="panel-heading">
|
|
|
|
|
|
|
|
<i class="fa fa-info-circle"></i> {% trans 'User group' %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
|
|
|
<table class="table group_edit">
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<form>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td colspan="2" class="no-borders">
|
|
|
|
|
|
|
|
<select data-placeholder="{% trans 'Join user groups' %}" id="groups_selected" class="select2" style="width: 100%" multiple="" tabindex="4">
|
|
|
|
|
|
|
|
{% for group in groups %}
|
|
|
|
|
|
|
|
<option value="{{ group.id }}" id="opt_{{ group.id }}" >{{ group.name }}</option>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td colspan="2" class="no-borders">
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-info btn-small" id="btn_join_group">{% trans 'Join' %}</button>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
{% if user_object.is_current_org_admin %}
|
|
|
|
{% for group in user_object.groups.all %}
|
|
|
|
<div class="panel panel-info">
|
|
|
|
<tr>
|
|
|
|
<div class="panel-heading">
|
|
|
|
<td >
|
|
|
|
<i class="fa fa-info-circle"></i> {% trans 'User group' %}
|
|
|
|
<b class="bdg_group" data-gid={{ group.id }}>{{ group.name }}</b>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<button class="btn btn-danger pull-right btn-xs btn_leave_group" type="button"><i class="fa fa-minus"></i></button>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
{% endif %}
|
|
|
|
<table class="table group_edit">
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<form>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td colspan="2" class="no-borders">
|
|
|
|
|
|
|
|
<select data-placeholder="{% trans 'Join user groups' %}" id="groups_selected" class="select2" style="width: 100%" multiple="" tabindex="4">
|
|
|
|
|
|
|
|
{% for group in groups %}
|
|
|
|
|
|
|
|
<option value="{{ group.id }}" id="opt_{{ group.id }}" >{{ group.name }}</option>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td colspan="2" class="no-borders">
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-info btn-small" id="btn_join_group">{% trans 'Join' %}</button>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% for group in user_object.groups.all %}
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td >
|
|
|
|
|
|
|
|
<b class="bdg_group" data-gid={{ group.id }}>{{ group.name }}</b>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<button class="btn btn-danger pull-right btn-xs btn_leave_group" type="button"><i class="fa fa-minus"></i></button>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|