Skip to content

Commit

Permalink
Putting field labels above fields
Browse files Browse the repository at this point in the history
  • Loading branch information
altf4arnold authored and jeremystretch committed May 8, 2024
1 parent d7d97b1 commit 6ff349d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion netbox/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,21 @@ <h2 class="text-center mb-4">{% trans "Log In" %}</h2>
<input type="hidden" name="next" value="{{ request.POST.next }}" />
{% endif %}

{% render_form form %}
<div class="form-group">
<label for="id_username" style="font-weight: bold; margin-bottom: 5px;">{{ form.username.label }}</label>
{{ form.username }}
{% for error in form.username.errors %}
<div class="alert alert-danger">{{ error }}</div>
{% endfor %}
</div>

<div class="form-group">
<label for="id_password" style="font-weight: bold; margin-bottom: 5px;">{{ form.password.label }}</label>
{{ form.password }}
{% for error in form.password.errors %}
<div class="alert alert-danger">{{ error }}</div>
{% endfor %}
</div>

<div class="form-footer">
<button type="submit" class="btn btn-primary w-100">
Expand Down

0 comments on commit 6ff349d

Please sign in to comment.