Initial commit: Grav CMS setup with HTML reference material

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-18 23:38:26 +02:00
commit a9be15caf3
2261 changed files with 418989 additions and 0 deletions
@@ -0,0 +1,27 @@
{% embed "forms/fields/select/select.html.twig" %}
{% block input %}
{% set input_value = value is iterable ? value|join(',') : value|string %}
{% if not field.options and value %}
{% if value is iterable %}
{% set options = {} %}
{% for val in value %}
{% set options = options|merge({(val): val}) %}
{% endfor %}
{% else %}
{% set options = {(value): value} %}
{% endif %}
{% set field = field|merge({options: options}) %}
{% endif %}
{{ parent() }}
{% endblock %}
{% block global_attributes %}
data-grav-filepicker
data-name="{{ field.name }}"
{% if field.preview_images %}data-preview-images{% endif %}
{% if field.on_demand %}data-ondemand{% endif %}
data-value="{{ input_value }}"
{{ parent() }}
{% endblock %}
{% endembed %}