Files
phelex 0d171915d7 Add Site Studio themes and Theme Manager
Support categorized fragments, theme presets, block widths, and server-backed theme editing with onboarding and preview.

Include Site Studio, design sources, specification and verification reports; remove the legacy studio-site example.
2026-11-13 14:04:49 +03:00

2 lines
1.1 KiB
Django/Jinja

<section class="section" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.heading or 'Связаться' }}</h2>{% if props.description %}<p>{{ props.description }}</p>{% endif %}{% set form = get_form(props.form_id) %}{% if form %}<form class="demo-form" data-form="{{ form.id }}" novalidate>{% for field in form.fields if field.enabled %}<label>{{ field.label }}{% if field.type == 'textarea' %}<textarea name="{{ field.id }}" placeholder="Демонстрационный ввод" {% if field.required %}required{% endif %}></textarea>{% else %}<input type="{{ field.type if field.type in ['email','tel'] else 'text' }}" name="{{ field.id }}" placeholder="Демонстрационный ввод" {% if field.required %}required{% endif %}>{% endif %}</label>{% endfor %}<button type="submit" class="btn">Отправить демо-заявку</button><p class="form-feedback" role="status">Это статическая демонстрация. Заявки не отправляются и не сохраняются.</p></form>{% endif %}</div></section>