Skip to content

Commit

Permalink
Prepare edit form for uncrispyfying
Browse files Browse the repository at this point in the history
  • Loading branch information
podliashanyk committed Sep 19, 2024
1 parent 807deb4 commit 008598a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions python/nav/web/templates/seeddb/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,14 @@ <h4>{{ title }}
<form class="seeddb-edit" action="" method="post">
<fieldset>
<legend>Attributes</legend>
{% block crispyfields %}
{{ form|crispy }}
{% endblock %}
{% if form.no_crispy %}
{% block formfields %}
{% endblock %}
{% else %}
{% block crispyfields %}
{{ form|crispy }}
{% endblock %}
{% endif %}
</fieldset>
<input type="submit" name="submit" value="Save {{ verbose_name }}" class="submit button small left" id="submit-id-submit">
</form>
Expand Down

0 comments on commit 008598a

Please sign in to comment.