{#
	One Configure topic from the configuration to-do, opened over its list. Each thing that calls the topic out heads
	it as a card, as the dashboard's status card is: the topic's icon coloured by its level, what to do with the level
	beside it, what's wrong that no setting here puts right, and why it matters. Then come only the settings that put
	it right, each with its own reason as in Configure, and the way to the rest. Each class is written in full so the
	build keeps its style.
#}
<div class="actions-queue-drawer actions-queue-config">
	{% if vars.callouts is empty %}
		<p class="configure-home__none"><i class="bi bi-check-circle-fill" aria-hidden="true"></i>{{ strings.resolved }}</p>
	{% endif %}

	{% for callout in vars.callouts %}
		{% set level = { critical: { card: 'actions-queue-config__callout--critical', accent: 'status-critical', tile: 'status-critical', badge: 'badge-critical' },
						 warning: { card: 'actions-queue-config__callout--warning', accent: 'status-warning', tile: 'status-warning', badge: 'badge-warning' } }[ callout.status ] %}
		<section class="shield-card actions-queue-config__callout {{ level.card }}">
			<div class="shield-card-accent {{ level.accent }}"></div>
			<span class="shield-status-tile {{ level.tile }}" aria-hidden="true"><i class="{{ vars.icon_class }}"></i></span>
			<div class="actions-queue-config__copy">
				<div class="actions-queue-config__heading">
					<h3 class="actions-queue-config__title">{{ callout.action }}</h3>
					<span class="shield-badge {{ level.badge }}">{{ attribute( strings, callout.status ) }}</span>
				</div>
				{% for reason in callout.reasons %}
					<p class="actions-queue-config__reason">{{ reason }}</p>
				{% endfor %}
				{% if callout.why is not empty %}
					<p class="actions-queue-config__why">{{ callout.why }}</p>
				{% endif %}
			</div>
		</section>
	{% endfor %}

	{% if vars.form is not empty %}
		<section class="shield-card actions-queue-config__settings">{{ vars.form|raw }}</section>
	{% endif %}

	<p class="actions-queue-config__more">
		<a href="{{ hrefs.configure }}" class="actions-queue-section__config"><i class="bi bi-sliders" aria-hidden="true"></i>{{ strings.configure }}</a>
	</p>
</div>
