2021-04-05 12:59:57 +00:00
|
|
|
<!-- Group conversations settings -->
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Group conversations</h3>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- /.box-body -->
|
2021-04-05 13:16:37 +00:00
|
|
|
<div class="box-body no-padding">
|
|
|
|
<table class="table">
|
|
|
|
<tbody><tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Visibility</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
<tr v-for="conv in conversations">
|
|
|
|
<td>{{ conv.name }}</td>
|
2021-04-05 13:27:56 +00:00
|
|
|
<td>
|
|
|
|
<select class="form-control" v-model="conv.group_min_membership_level" style="height: 26px;line-height: 7px;padding: 2px;" @change="changeVisibility(conv)">
|
|
|
|
<option value="member">tr("Members")</option>
|
|
|
|
<option value="moderator">tr("Moderators")</option>
|
|
|
|
<option value="administrator">tr("Administrators")</option>
|
|
|
|
</select>
|
|
|
|
</td>
|
2021-04-05 13:16:37 +00:00
|
|
|
<td>
|
|
|
|
<a style="color: white;" @click="deleteConv(conv.id)"><i class="fa fa-trash"></i></a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody></table>
|
|
|
|
</div>
|
2021-04-05 12:59:57 +00:00
|
|
|
|
|
|
|
<!-- Create a new conversation-->
|
|
|
|
<div class="box-footer">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-5">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="newConvName">tr("Name")</label>
|
|
|
|
<input type="text" class="form-control" id="newConvName" placeholder="tr("Conversation name")" v-model="newConvName">
|
2021-04-05 13:16:37 +00:00
|
|
|
</div>
|
2021-04-05 12:59:57 +00:00
|
|
|
</div>
|
2021-04-05 13:16:37 +00:00
|
|
|
|
2021-04-05 12:59:57 +00:00
|
|
|
<div class="col-xs-4">
|
|
|
|
<div class="form-group">
|
|
|
|
<label>tr("Visibility")</label>
|
|
|
|
<select class="form-control" v-model="newConvVisibility">
|
2021-04-05 13:16:37 +00:00
|
|
|
<option value="member">tr("Members")</option>
|
|
|
|
<option value="moderator">tr("Moderators")</option>
|
|
|
|
<option value="administrator">tr("Administrators")</option>
|
2021-04-05 12:59:57 +00:00
|
|
|
</select>
|
2021-04-05 13:16:37 +00:00
|
|
|
</div>
|
2021-04-05 12:59:57 +00:00
|
|
|
</div>
|
2021-04-05 13:16:37 +00:00
|
|
|
|
2021-04-05 12:59:57 +00:00
|
|
|
<div class="col-xs-2">
|
|
|
|
<label style="display: block;"> </label>
|
|
|
|
<button type="button" class="btn btn-primary" @click="createNewConv">tr("Create")</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|