Skip to content

Commit

Permalink
fix: Mobile col widths
Browse files Browse the repository at this point in the history
  • Loading branch information
worldbeater committed Jun 7, 2024
1 parent 368f06f commit e47d38f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions webapp/templates/teacher/dashboard.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,18 @@
{% endif %}
</div>
{% endif %}

<div class="col-12 mb-3">
<b class="card-title d-block">Разрешённые IP-адреса</b>
<p>Оставьте список пустым, чтобы разрешить отправку решений с любого IP-адреса.</p>
<div class="row">
{% for ip in ips %}
<div class="col-7 mb-2">
<div class="col-md-7 mb-2">
<input class="form-control" type="text" value="{{ ip.ip }}" readonly>
</div>
<div class="col-3 mb-2">
<div class="col-md-3 mb-2">
<input class="form-control" type="text" value="{{ ip.label }}" readonly>
</div>
<div class="col-2 mb-2">
<div class="col-md-2 mb-2">
<form action="/teacher/ips/disallow/{{ ip.id }}" method="GET">
<button type="submit" class="btn btn-danger w-100">
Удалить
Expand All @@ -110,13 +109,13 @@
{% endfor %}
</div>
<form class="row" action="/teacher/ips/allow" method="GET">
<div class="col-7">
<div class="col-md-7 mb-2">
<input class="form-control" type="text" placeholder="IP-адрес" name="ip">
</div>
<div class="col-3">
<div class="col-md-3 mb-2">
<input class="form-control" type="text" placeholder="Пометка" name="label">
</div>
<div class="col-2">
<div class="col-md-2 mb-2">
<button type="submit" class="btn btn-primary w-100">
Добавить
</button>
Expand Down

0 comments on commit e47d38f

Please sign in to comment.