后台使用封装好的 web 组件

This commit is contained in:
virusdefender
2015-10-18 11:13:44 +08:00
parent 50880e1f36
commit ad73a36944
9 changed files with 86 additions and 94 deletions

View File

@@ -38,7 +38,7 @@
ms-duplex="newTitle"></div>
<div class="form-group">
<label>内容</label>
<textarea id="edit-announcement-editor" data-autosave="edit-announcement-editor"></textarea>
<ms:editor $id="editAnnouncementEditor" config="editAnnouncementEditor"></ms:editor>
</div>
<div class="form-group">
<label>可见 <input ms-duplex-checked="announcementVisible" type="checkbox"/></label>
@@ -62,8 +62,8 @@
</div>
<div class="form-group">
<label>内容</label>
<textarea id="create-announcement-editor" placeholder="公告内容" maxlength="10000" data-autosave="create-announcement-editor" required>
</textarea>
<ms:editor $id="createAnnouncementEditor" config="createAnnouncementEditor"></ms:editor>
<div class="help-block with-errors"></div>
</div>

View File

@@ -10,8 +10,7 @@
<div class="form-group col-md-12">
<label>题目描述</label>
<textarea id="problemDescription" placeholder="这里输入内容(此内容不能为空)" ms-duplex="description"></textarea>
<p class="error-info" ms-visible="description==''">请填写题目描述</p>
<ms:editor $id="problemDescriptionEditor" config="problemDescriptionEditor"></ms:editor>
</div>
@@ -126,7 +125,7 @@
</div>
<div class="form-group col-md-12">
<label>提示</label>
<textarea id="hint" placeholder="这里输入内容" ms-duplex="hint"></textarea>
<ms:editor $id="problemHintEditor" config="problemHintEditor"></ms:editor>
</div>
<div class="form-group col-md-12">
<label>来源</label>

View File

@@ -16,8 +16,7 @@
<div class="form-group col-md-12">
<label>题目描述</label>
<textarea id="problemDescription" placeholder="这里输入内容(此内容不能为空)" ms-duplex="description"></textarea>
<p class="error-info" ms-visible="description==''">请填写题目描述</p>
<ms:editor $id="problemDescriptionEditor" config="problemDescriptionEditor"></ms:editor>
</div>
@@ -132,7 +131,7 @@
</div>
<div class="form-group col-md-12">
<label>提示</label>
<textarea id="hint" placeholder="这里输入内容" ms-duplex="hint"></textarea>
<ms:editor $id="problemHintEditor" config="problemHintEditor"></ms:editor>
</div>
<div class="form-group col-md-12">
<label>来源</label>

View File

@@ -27,9 +27,7 @@
</tr>
</table>
<div class="text-right">
页数:{{ page }}/{{ totalPage }}&nbsp;&nbsp;
<button ms-attr-class="getBtnClass('pre')" ms-click="getPrevious">上一页</button>
<button ms-attr-class="getBtnClass('next')" ms-click="getNext">下一页</button>
<ms:pager $id="submissionsListPager" config="pager"></ms:pager>
</div>
</div>
<script src="/static/js/app/admin/problem/submissionList.js"></script>