1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

fix issue where select fields with a pre-populated value were reset when forms were submitted, due to having the disabled attribute set.

This commit is contained in:
checktheroads
2021-04-22 15:58:46 -07:00
parent c3c79d3715
commit 21db209f47
8 changed files with 207 additions and 201 deletions

View File

@@ -3,17 +3,11 @@
{% block title %}{% if obj.pk %}Editing {{ obj_type }} {{ obj }}{% else %}Add a new {{ obj_type }}{% endif %}{% endblock %}
{% block controls %}
{% if settings.DOCS_ROOT %}
<button
type="button"
class="btn btn-sm btn-outline-secondary"
data-bs-toggle="modal"
data-bs-target="#docs_modal"
title="Help"
>
<i class="mdi mdi-help-circle"></i>
</button>
{% endif %}
{% if settings.DOCS_ROOT %}
<button type="button" class="btn btn-sm btn-outline-secondary" data-bs-toggle="modal" data-bs-target="#docs_modal" title="Help">
<i class="mdi mdi-help-circle"></i>
</button>
{% endif %}
{% endblock %}
{% block content %}
@@ -26,7 +20,7 @@
{% block form %}
{% if form.Meta.fieldsets %}
{# Render grouped fields accoring to Form #}
{# Render grouped fields according to Form #}
{% for group, fields in form.Meta.fieldsets %}
<div class="field-group">
<h4 class="mb-3">{{ group }}</h4>