{{ content_text }}
{% if warning_text %} {% endif %}{% load trans blocktrans from i18n %} {% comment "rst" %} Remove button ============= Use in a list display to add a remove icon button. The remove icon button is responsible for activating a modal on click that will confirm the removal and submit the remove form to a view URL. This removes the need to have a separate view just for removal, or a removal hidden in the edit form. How this works is each list item would output the ``
`` element, and when the corresponding remove button is clicked, the correct modal element is targetted and is shown to the user. Template parameters ------------------- .. describe:: id Object id/pk for the modal. This is used to create a unique modal element for each list item. .. describe:: form_url URL for the form post. This should normally be the delete/remove view for the model being listed. .. describe:: field_name Optional form field name for hidden field .. describe:: field_value Optional form field value for hidden field .. describe:: action_text Header and button text for modal .. describe:: action_name Form button name, ie: .. code:: html .. describe:: content_text Modal content text .. describe:: warning_text Optional warning text .. describe:: is_disabled Show the button as disabled {% endcomment %}