Skip to content

Commit

Permalink
Fix HTML on the migration target form.
Browse files Browse the repository at this point in the history
The radio choice widget doesn't form valid HTML inside a Form.as_p. I
think I've talked about using as_div in future, but for now this'll do.
  • Loading branch information
colons committed Mar 10, 2024
1 parent baf4185 commit 47172f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 7 additions & 6 deletions nkdsu/static/less/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -881,12 +881,13 @@ form {
}

&.migrate-away-from {
label {
float: none;
}
> div > div {
display: block;
text-align: left;
> ul > li > div {
padding: .5em 0;

> div {
display: block;
text-align: left;
}
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions nkdsu/templates/migrate_away_from.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ <h2 class=message>Migrate away from <a href="{{ track.get_absolute_url }}">{{ tr

<form method="post" action="." class="migrate-away-from">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="submit">
<ul>
{{ form.as_ul }}
</ul>
<input type="submit" value="submit" class="button">
</form>
{% endblock %}

0 comments on commit 47172f4

Please sign in to comment.