{% load i18n %} {% comment %} One layout fieldset (`item`). With a save button, it is wrapped with the button in a container the JS replaces after saving; keep its id, the data-fieldset-save-url attribute and the data-fieldset-save button. With autosave (data-fieldset-autosave), the same container, without a button: it saves itself as its fields change. {% endcomment %} {% with fieldset=item.fieldset %} {% if item.save_url %}