{% extends "base.html" %} {% block content %}
{{ form.name }}

{{ title }}

{% if description %}

{{ description }}

{% endif %}
{% if errors %}
Te rugăm să corectezi:
{% endif %} {% set vals = values or {} %} {% set placeholders = { 'nume_complet_beneficiar': 'ex: Popescu Ion', 'telefon': 'ex: 0722 000 000', 'adresa_e_mail': 'ex: nume@firma.ro', 'cui_entitate': 'ex: 12345678' } %} {% for page in pages %}
{% if page.title %}{{ page.title }}{% endif %} {% if page.description %}

{{ page.description }}

{% endif %} {% for q in page.questions %}
{% if q.description %}

{{ q.description }}

{% endif %} {% if q.type == 'short' %} {% set rule = q.validation %} {% elif q.type == 'paragraph' %} {% elif q.type in ('radio', 'dropdown') %}
{% for opt in q.options %} {% endfor %}
{% elif q.type == 'checkbox' %} {% set selected = (vals.get(q.slug, '')).split('; ') %} {% set other_text = vals.get(q.other_slug, '') %}
{% for opt in q.options %} {% endfor %} {% if q.other %} {% endif %}
{% elif q.type == 'grid' %}
{% for row in q.rows %}
{{ row.label }}
{% for col in q.options %} {% endfor %}
{% endfor %}
{% endif %}
{% endfor %}
{% endfor %}
{% endblock %} {% block scripts %} {% endblock %}