Skip to content

Commit 4a2ffb6

Browse files
Let languages wrap in AWS contest edit page
1 parent 96143b3 commit 4a2ffb6

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

cms/server/admin/static/aws_style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,15 @@ table.TaskTypeOptions {
380380
margin: 5px 0px;
381381
}
382382

383+
table td.wrapping-options {
384+
display: flex;
385+
flex-wrap: wrap;
386+
width: 100%;
387+
}
383388

389+
table td.wrapping-options label {
390+
margin-right: 15px;
391+
}
384392

385393

386394
/* TODO */

cms/server/admin/templates/contest.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h1>Contest configuration</h1>
4040
All the allowed languages must have task support, for example in managed tasks."></span>
4141
Allowed programming languages
4242
</td>
43-
<td>
43+
<td class="wrapping-options">
4444
{% for lang in LANGUAGES %}
4545
<label><input type="checkbox" name="languages" value="{{ lang.name }}" {{ "checked" if lang.name in contest.languages else "" }}>{{ lang.name }}</label>
4646
{% endfor %}

0 commit comments

Comments
 (0)