mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-22 17:03:30 +00:00
c33efce63c
Merge Request: 替换掉商业版的 formvalidation,修改admin中js与html中的问题 Created By: @hohoTT Accepted By: @virusdefender URL: https://coding.net/u/virusdefender/p/qduoj/git/merge/93?tab=files
67 lines
2.7 KiB
HTML
67 lines
2.7 KiB
HTML
<div ms-controller="groupDetail" class="col-md-9">
|
|
<nav>
|
|
<ul class="pager">
|
|
<li class="previous" ms-click="showGroupListPage()"><a href="javascript:void(0)"><span
|
|
aria-hidden="true">←</span> 返回</a></li>
|
|
</ul>
|
|
</nav>
|
|
<h1>小组成员管理</h1>
|
|
<table class="table table-striped">
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>用户名</th>
|
|
<th>真实姓名</th>
|
|
<th>加入时间</th>
|
|
<th></th>
|
|
</tr>
|
|
<tr ms-repeat="memberList">
|
|
<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">
|
|
页数:{{ page }}/{{ totalPage }}
|
|
<button ms-attr-class="getBtnClass('pre')" ms-click="getPrevious">上一页</button>
|
|
<button ms-attr-class="getBtnClass('next')" ms-click="getNext">下一页</button>
|
|
</div>
|
|
<h1>修改小组信息</h1>
|
|
|
|
<form id="edit_group_form">
|
|
<div class="col-md-12">
|
|
<div class="form-group"><label>小组名</label>
|
|
<input type="text" name="name" class="form-control" ms-duplex="name"
|
|
data-error="请填写小组名(名称不能超过20字)" maxlength="20" required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="form-group"><label>描述</label>
|
|
<textarea rows="3" name="description" class="form-control" ms-duplex="description"
|
|
data-error="请填写描述" maxlength="300" required>
|
|
</textarea>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="form-group">
|
|
|
|
<label>加入小组设置</label>
|
|
<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">不允许任何人加入
|
|
|
|
</div>
|
|
<button class="btn btn-primary" type="submit">提交</button>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
<script src="/static/js/app/admin/group/groupDetail.js"></script>
|