{% extends "admin/submit_line.html" %} {% load admin_urls i18n subadmin_tags unfold %} {% block submit-row %} {% if show_save %} {% component "unfold/components/button.html" with submit=1 form=opts.model_name|add:"_form" name="_save" class="w-full lg:w-auto" %}{% translate "Save" %}{% endcomponent %} {% endif %} {% for action in actions_submit_line %} {% component "unfold/components/button.html" with submit=1 form=opts.model_name|add:"_form" name=action.attrs.name|default:action.action_name variant="default" class="w-full lg:w-auto" attrs=action.attrs %} {% if action.icon %}{{ action.icon }}{% endif %} {{ action.description }} {% endcomponent %} {% endfor %} {% if show_save_and_continue %} {% component "unfold/components/button.html" with submit=1 form=opts.model_name|add:"_form" name="_continue" variant="default" class="w-full lg:w-auto" %}{% if can_change %}{% translate "Save and continue editing" %}{% else %}{% translate "Save and view" %}{% endif %}{% endcomponent %} {% endif %} {% if show_save_and_add_another %} {% component "unfold/components/button.html" with submit=1 form=opts.model_name|add:"_form" name="_addanother" variant="default" class="w-full lg:w-auto" %}{% translate "Save and add another" %}{% endcomponent %} {% endif %} {% if show_save_as_new %} {% component "unfold/components/button.html" with submit=1 form=opts.model_name|add:"_form" name="_saveasnew" variant="default" class="w-full lg:w-auto" %}{% translate "Save as new" %}{% endcomponent %} {% endif %}