Skip to content

Commit

Permalink
mark radio buttons in setup utility as required
Browse files Browse the repository at this point in the history
Otherwise it's possible to submit the form without selecting e.g. any
flavor, which would need additional handling on the server side.
  • Loading branch information
lub committed Oct 27, 2020
1 parent 966383c commit 708e316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/templates/macros.html
Expand Up @@ -12,7 +12,7 @@ <h3 class="panel-title">{{ title }}</h3>
{% macro radio(name, value, emph, text, current) %}
<div class="radio">
<label>
<input type="radio" name="{{ name }}" value="{{ value }}"{% if current == value %} checked="checked"{% endif %}>
<input type="radio" name="{{ name }}" value="{{ value }}"{% if current == value %} checked="checked"{% endif %} required="required">
{% if emph %}
<strong>{{ emph }}</strong>,
{% endif %}
Expand Down

0 comments on commit 708e316

Please sign in to comment.