ComunicWeb/assets/templates/pages/groups/sections/GroupConversationsSettings.html

59 lines
2.3 KiB
HTML

<!-- Group conversations settings -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Group conversations</h3>
</div>
<!-- /.box-body -->
<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>
<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>
<td>
<a style="color: white;" @click="deleteConv(conv.id)"><i class="fa fa-trash"></i></a>
</td>
</tr>
</tbody></table>
</div>
<!-- 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">
</div>
</div>
<div class="col-xs-4">
<div class="form-group">
<label>tr("Visibility")</label>
<select class="form-control" v-model="newConvVisibility">
<option value="member">tr("Members")</option>
<option value="moderator">tr("Moderators")</option>
<option value="administrator">tr("Administrators")</option>
</select>
</div>
</div>
<div class="col-xs-2">
<label style="display: block;">&nbsp;</label>
<button type="button" class="btn btn-primary" @click="createNewConv">tr("Create")</button>
</div>
</div>
</div>
</div>