|
|
@ -26,17 +26,17 @@ |
|
|
|
<div style="margin-top: 15px; "></div> |
|
|
|
<div style="margin-top: 15px; "></div> |
|
|
|
<% } %> |
|
|
|
<% } %> |
|
|
|
<label for="title">题目名称</label> |
|
|
|
<label for="title">题目名称</label> |
|
|
|
<input type="text" id="title" name="title" value="<%= problem.title %>"> |
|
|
|
<input class="font-content" type="text" id="title" name="title" value="<%= problem.title %>"> |
|
|
|
<label style="margin-top: 15px; " for="description">题目描述</label> |
|
|
|
<label style="margin-top: 15px; " for="description">题目描述</label> |
|
|
|
<textarea rows="15" id="description" name="description"><%= problem.description %></textarea> |
|
|
|
<textarea class="font-content" rows="15" id="description" name="description"><%= problem.description %></textarea> |
|
|
|
<label style="margin-top: 15px; " for="input_format">输入格式</label> |
|
|
|
<label style="margin-top: 15px; " for="input_format">输入格式</label> |
|
|
|
<textarea rows="3" id="input" name="input_format"><%= problem.input_format %></textarea> |
|
|
|
<textarea class="font-content" rows="3" id="input" name="input_format"><%= problem.input_format %></textarea> |
|
|
|
<label style="margin-top: 15px; " for="output_format">输出格式</label> |
|
|
|
<label style="margin-top: 15px; " for="output_format">输出格式</label> |
|
|
|
<textarea rows="3" id="output" name="output_format"><%= problem.output_format %></textarea> |
|
|
|
<textarea class="font-content" rows="3" id="output" name="output_format"><%= problem.output_format %></textarea> |
|
|
|
<label style="margin-top: 15px; ">样例</label> |
|
|
|
<label style="margin-top: 15px; ">样例</label> |
|
|
|
<textarea rows="15" id="example" name="example"><%= problem.example %></textarea> |
|
|
|
<textarea class="font-content" rows="15" id="example" name="example"><%= problem.example %></textarea> |
|
|
|
<label style="margin-top: 15px; ">数据范围与提示</label> |
|
|
|
<label style="margin-top: 15px; ">数据范围与提示</label> |
|
|
|
<textarea rows="10" id="hint" name="limit_and_hint"><%= problem.limit_and_hint %></textarea> |
|
|
|
<textarea class="font-content" rows="10" id="hint" name="limit_and_hint"><%= problem.limit_and_hint %></textarea> |
|
|
|
<label style="margin-top: 15px; ">标签</label> |
|
|
|
<label style="margin-top: 15px; ">标签</label> |
|
|
|
<select class="ui fluid search dropdown" multiple="" id="search_tags" name="tags"> |
|
|
|
<select class="ui fluid search dropdown" multiple="" id="search_tags" name="tags"> |
|
|
|
<% for (let tag of problem.tags) { %> |
|
|
|
<% for (let tag of problem.tags) { %> |
|
|
@ -48,15 +48,15 @@ |
|
|
|
<div class="ui bottom attached tab segment" data-tab="preview" id="preview"> |
|
|
|
<div class="ui bottom attached tab segment" data-tab="preview" id="preview"> |
|
|
|
<h1 class="ui header problem_header" id="pv-title"></h1> |
|
|
|
<h1 class="ui header problem_header" id="pv-title"></h1> |
|
|
|
<h2 class="ui header">题目描述</h2> |
|
|
|
<h2 class="ui header">题目描述</h2> |
|
|
|
<div id="pv-description"></div> |
|
|
|
<div class="font-content" id="pv-description"></div> |
|
|
|
<h2 class="ui header">输入格式</h2> |
|
|
|
<h2 class="ui header">输入格式</h2> |
|
|
|
<div id="pv-input"></div> |
|
|
|
<div class="font-content" id="pv-input"></div> |
|
|
|
<h2 class="ui header">输出格式</h2> |
|
|
|
<h2 class="ui header">输出格式</h2> |
|
|
|
<div id="pv-output"></div> |
|
|
|
<div class="font-content" id="pv-output"></div> |
|
|
|
<h2 class="ui header">样例</h2> |
|
|
|
<h2 class="ui header">样例</h2> |
|
|
|
<div id="pv-example"></div> |
|
|
|
<div class="font-content" id="pv-example"></div> |
|
|
|
<h2 class="ui header">数据范围与提示</h2> |
|
|
|
<h2 class="ui header">数据范围与提示</h2> |
|
|
|
<div id="pv-hint"></div> |
|
|
|
<div class="font-content" id="pv-hint"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% if (problem.allowedEdit) { %> |
|
|
|
<% if (problem.allowedEdit) { %> |
|
|
|
<button type="submit" class="ui button">提交</button> |
|
|
|
<button type="submit" class="ui button">提交</button> |
|
|
|