OnlineJudge/template/admin/group/group_detail.html

60 lines
2.4 KiB
HTML
Raw Normal View History

2015-08-15 05:54:30 +00:00
<div ms-controller="groupDetail" class="col-md-9">
2015-08-11 11:15:25 +00:00
<h1>小组成员管理</h1>
<table class="table table-striped">
<tr>
<th>ID</th>
<th>用户名</th>
<th>真实姓名</th>
<th>加入时间</th>
<th></th>
</tr>
2015-08-15 05:54:30 +00:00
<tr ms-repeat="memberList">
2015-08-11 11:15:25 +00:00
<td>{{ el.user.id }}</td>
<td>{{ el.user.username }}</td>
<td>{{ el.user.real_name }}</td>
<td>{{ el.join_time|date("yyyy-MM-dd HH:mm:ss")}}</td>
<td>
<button class="btn-sm btn-danger" ms-click="removeMember(el)">移除</button>
</td>
</tr>
</table>
<div class="text-right">
2015-08-15 05:54:30 +00:00
页数:{{ page }}/{{ totalPage }}&nbsp;&nbsp;
<button ms-attr-class="getBtnClass('pre')" ms-click="getPrevious">上一页</button>
<button ms-attr-class="getBtnClass('next')" ms-click="getNext">下一页</button>
2015-08-11 11:15:25 +00:00
</div>
<h1>修改小组信息</h1>
2015-08-12 10:11:00 +00:00
<form id="edit_group_form">
2015-08-11 11:15:25 +00:00
<div class="col-md-12">
<div class="form-group"><label>小组名</label>
2015-08-16 12:53:18 +00:00
<input type="text" name="name" class="form-control" ms-duplex="name"
data-error="请填写小组名" maxlength="20" required>
<div class="help-block with-errors"></div>
2015-08-11 11:15:25 +00:00
</div>
</div>
<div class="col-md-12">
<div class="form-group"><label>描述</label>
2015-08-16 12:53:18 +00:00
<textarea rows="3" name="description" class="form-control" ms-duplex="description"
data-error="请填写描述" maxlength="300" required>
</textarea>
<div class="help-block with-errors"></div>
2015-08-11 11:15:25 +00:00
</div>
</div>
<div class="col-md-12">
<div class="form-group">
2015-08-12 10:11:00 +00:00
2015-08-11 11:15:25 +00:00
<label>加入小组设置</label>
2015-08-15 05:54:30 +00:00
<input type="radio" name="join_group_setting" value="0" ms-duplex-string="checkedSetting">允许任何人加入
<input type="radio" name="join_group_setting" value="1" ms-duplex-string="checkedSetting">提交请求后管理员审核
<input type="radio" name="join_group_setting" value="2" ms-duplex-string="checkedSetting">不允许任何人加入
2015-08-12 10:11:00 +00:00
2015-08-11 11:15:25 +00:00
</div>
2015-08-12 10:11:00 +00:00
<button class="btn btn-primary" type="submit">提交</button>
2015-08-11 11:15:25 +00:00
</div>
2015-08-12 10:11:00 +00:00
</form>
2015-08-11 11:15:25 +00:00
</div>
2015-08-15 05:54:30 +00:00
<script src="/static/js/app/admin/group/groupDetail.js"></script>