Make the referee level form full width
Dropped the max-w-3xl cap (matching sponsor_form.html's own full-width card) and gave the teams multi-select the full row -- cramped at half width, same col-span-2-for-wide-fields convention sponsor_form.html already uses for its own textarea/file fields. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ECGMEwrc2k4D8VQuwjstj9
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
{% block heading %}{% if update_view %}{% blocktrans %}Edit {{ object }}{% endblocktrans %}{% else %}{% trans "New referee level" %}{% endif %}{% endblock heading %}
|
{% block heading %}{% if update_view %}{% blocktrans %}Edit {{ object }}{% endblocktrans %}{% else %}{% trans "New referee level" %}{% endif %}{% endblock heading %}
|
||||||
|
|
||||||
{% block panel %}
|
{% block panel %}
|
||||||
<div class="card max-w-3xl">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
@@ -17,7 +17,9 @@
|
|||||||
|
|
||||||
<div class="grid grid-cols-2 items-start gap-4">
|
<div class="grid grid-cols-2 items-start gap-4">
|
||||||
{% for field in form %}
|
{% for field in form %}
|
||||||
|
<div class="{% if field.widget_type == "selectmultiple" %}col-span-2{% endif %}">
|
||||||
{% form_field field %}
|
{% form_field field %}
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user