{% load assets %}

{% get_asset cell=cell type='picture' as asset %}


{% block cell-content %}
<a class="wcs-form-{{slug}} cell-icon--wrapper" href="{{ url }}">
	{% if asset %}
	<div
		class="cell-icon--icon"
		style="background-image: url({{asset.asset.url}})"
	></div>
	{% endif %}

	<h2 class="cell-icon--title">{{ title }}</h2>

	{% if cell.cached_json.description %}
	<div class="cell-icon--text">
	{{ cell.cached_json.description|safe }}
	</div>
	{% endif %}
</a>
{% endblock %}
