Browse Source

Fix submissions page element size

pull/6/head
Menci 7 years ago
parent
commit
790e0cd788
  1. 10
      views/contest_submissions.ejs
  2. 4
      views/submissions.ejs

10
views/contest_submissions.ejs

@ -4,19 +4,19 @@
<div class="padding"> <div class="padding">
<form action="<%= syzoj.utils.makeUrl(['contest', contest.id, 'submissions']) %>" class="ui mini form" method="get" role="form" id="form" onsubmit="return checkSubmit()"> <form action="<%= syzoj.utils.makeUrl(['contest', contest.id, 'submissions']) %>" class="ui mini form" method="get" role="form" id="form" onsubmit="return checkSubmit()">
<div class="inline fields" style="margin-bottom: 25px; "> <div class="inline fields" style="margin-bottom: 25px; ">
<label style="font-size: 1.2em; margin-right: 3px; ">题目 ID:</label> <label style="font-size: 1.2em; margin-right: 1px; ">题目:</label>
<div class="field"><input id="problem_id" style="width: 50px; " type="text" value="<%= this.alpha(form.problem_id) %>"></div> <div class="field"><input id="problem_id" style="width: 50px; " type="text" value="<%= this.alpha(form.problem_id) %>"></div>
<input type="hidden" name="problem_id" id="problem_id_hidden"> <input type="hidden" name="problem_id" id="problem_id_hidden">
<label style="font-size: 1.2em; margin-right: 3px; ">提交者:</label> <label style="font-size: 1.2em; margin-right: 1px; ">提交者:</label>
<div class="field"><input name="submitter" style="width: 100px; " type="text" value="<%= form.submitter %>"></div> <div class="field"><input name="submitter" style="width: 100px; " type="text" value="<%= form.submitter %>"></div>
<% if ((typeof contest === 'undefined' || !contest) || contest.ended || contest.type !== 'noi' || (user && user.is_admin)) { %> <% if ((typeof contest === 'undefined' || !contest) || contest.ended || contest.type !== 'noi' || (user && user.is_admin)) { %>
<% if ((typeof contest === 'undefined' || !contest) || !((!user || !user.is_admin) && !contest.ended && contest.type === 'acm')) { %> <% if ((typeof contest === 'undefined' || !contest) || !((!user || !user.is_admin) && !contest.ended && contest.type === 'acm')) { %>
<label style="font-size: 1.2em; margin-right: 3px; ">分数:</label> <label style="font-size: 1.2em; margin-right: 1px; ">分数:</label>
<div class="field" style="padding-right: 6px; "><input name="min_score" style="width: 45px; " type="text" value="<%= form.min_score || 0 %>"></div> <div class="field" style="padding-right: 6px; "><input name="min_score" style="width: 45px; " type="text" value="<%= form.min_score || 0 %>"></div>
<label style="font-size: 1.2em; margin-right: 7px; ">~</label> <label style="font-size: 1.2em; margin-right: 7px; ">~</label>
<div class="field"><input name="max_score" style="width: 45px; " type="text" value="<%= form.max_score || 100 %>"></div> <div class="field"><input name="max_score" style="width: 45px; " type="text" value="<%= form.max_score || 100 %>"></div>
<% } %> <% } %>
<label style="font-size: 1.2em; margin-right: 3px; ">语言:</label> <label style="font-size: 1.2em; margin-right: 1px; ">语言:</label>
<div class="field"> <div class="field">
<div class="ui fluid selection dropdown" id="select_language" style="width: 110px; "> <div class="ui fluid selection dropdown" id="select_language" style="width: 110px; ">
<input type="hidden" name="language" value="<%= form.language %>"> <input type="hidden" name="language" value="<%= form.language %>">
@ -30,7 +30,7 @@
</div> </div>
</div> </div>
</div> </div>
<label style="font-size: 1.2em; margin-right: 3px; ">状态:</label> <label style="font-size: 1.2em; margin-right: 1px; ">状态:</label>
<div class="field"> <div class="field">
<div class="ui fluid selection dropdown" id="select_status" style="width: 210px; "> <div class="ui fluid selection dropdown" id="select_status" style="width: 210px; ">
<input type="hidden" name="status" value="<%= form.status %>"> <input type="hidden" name="status" value="<%= form.status %>">

4
views/submissions.ejs

@ -10,9 +10,9 @@
<label style="font-size: 1.2em; margin-right: 1px; ">提交者:</label> <label style="font-size: 1.2em; margin-right: 1px; ">提交者:</label>
<div class="field"><input name="submitter" style="width: 100px; " type="text" value="<%= form.submitter %>"></div> <div class="field"><input name="submitter" style="width: 100px; " type="text" value="<%= form.submitter %>"></div>
<label style="font-size: 1.2em; margin-right: 1px; ">分数:</label> <label style="font-size: 1.2em; margin-right: 1px; ">分数:</label>
<div class="field" style="padding-right: 6px; "><input name="min_score" style="width: 48px; " type="text" value="<%= form.min_score || 0 %>"></div> <div class="field" style="padding-right: 6px; "><input name="min_score" style="width: 45px; " type="text" value="<%= form.min_score || 0 %>"></div>
<label style="font-size: 1.2em; margin-right: 7px; ">~</label> <label style="font-size: 1.2em; margin-right: 7px; ">~</label>
<div class="field"><input name="max_score" style="width: 48px; " type="text" value="<%= form.max_score || 100 %>"></div> <div class="field"><input name="max_score" style="width: 45px; " type="text" value="<%= form.max_score || 100 %>"></div>
<label style="font-size: 1.2em; margin-right: 1px; ">语言:</label> <label style="font-size: 1.2em; margin-right: 1px; ">语言:</label>
<div class="field"> <div class="field">
<div class="ui fluid selection dropdown" id="select_language" style="width: 110px; "> <div class="ui fluid selection dropdown" id="select_language" style="width: 110px; ">

Loading…
Cancel
Save