{% import "_includes/forms" as forms %} {{ driverHtml|raw }}

{{ 'Blitz Actions'|t('blitz') }}

{% set cols = { form: { type: 'html', heading: 'Action'|t('blitz'), }, } %} {% set rows = [] %} {% for action in actions %} {% if currentUser.can('blitz:' ~ action.id) %} {% set form %}
{{ redirectInput('utilities/blitz-cache') }} {{ csrfInput() }}

{{ action.instructions|t('blitz') }}

{% if action.id == 'refresh-urls' %} {{ forms.editableTableField({ name: 'urls', id: 'urls', cols: [{ type: 'singleline', heading: 'URLs'|t('blitz'), placeholder: siteUrl('page'), code: true, }], addRowLabel: "Add a URL"|t('blitz'), first: true, }) }} {% elseif action.id == 'refresh-tagged' %} {{ forms.editableTableField({ name: 'tags', id: 'tags', cols: [{ type: 'singleline', heading: 'Tags'|t('blitz'), placeholder: 'tag-name', suggestions: tagSuggestions, code: true, }], addRowLabel: "Add a Tag"|t('blitz'), first: true, }) }} {% endif %}
{% endset %} {% set rows = rows|merge([{ form: form, }]) %} {% endif %} {% endfor %} {% if rows|length %} {{ forms.editableTableField({ name: 'actions', id: 'actions', cols: cols, rows: rows, staticRows: true, }) }} {% endif %}