src/UserPanel/Modules/OnlineService/Templates/Creator/partials/form.html.twig line 1
{% form_theme form 'Form/fields.html.twig' %}{{ form_start(form, { 'attr': { 'id': 'creator_form' } }) }}<div class="row g-4"><div class="col-lg-8">{% for itemForm in form.items %}{% set item = null %}{% for choice in form.items.vars.choices %}{% if choice.data.id == itemForm.vars.value %}{% set item = choice.data %}{% endif %}{% endfor %}<div class="item_container glass-card service-row p-4 mb-3 d-flex align-items-center justify-content-between {{ itemForm.vars.checked ? 'selected' : '' }}" data-id="{{ item.id }}" data-required="{{ item.isRequired ? 'true' : 'false' }}">{{ form_widget(itemForm, { 'attr': { 'style': 'display: none' } }) }}<div class="d-flex align-items-center"><div class="me-3"><div class="checkbox-box border" style="{{ itemForm.vars.checked ? 'background: #0d6efd; border-color: #0d6efd' : 'background: #fff; border-color: #cbd5e1' }}"><i class="check_icon bi bi-check-lg {{ itemForm.vars.checked ? 'text-white' : 'text-dark' }}" {% if not itemForm.vars.checked %}style="display: none"{% endif %}></i></div></div><div><div class="d-flex align-items-center gap-2"><h6 class="fw-bold mb-0 text-dark">{{ item.priceListItem.name }}</h6></div>{% if item.priceListItem.description != '' %}<p class="small text-muted mb-0 mt-1">{{ item.priceListItem.description }}</p>{% endif %}</div></div><div class="text-end"><div class="fw-bold text-dark fs-5">{{ item.priceListItem.price|formatPrice }}</div><div class="text-muted" style="font-size: 0.7rem;">netto / m-c</div></div></div>{% endfor %}</div><div class="col-lg-4"><div class="glass-card p-4 sidebar-summary shadow-lg border-primary border-opacity-10 aos-init aos-animate" data-aos="fade-left"><h5 class="fw-bold mb-4 d-flex align-items-center"><i class="bi bi-calculator text-primary me-2"></i> Podsumowanie oferty</h5>{% if form.items.vars.data|length %}<div class="mb-4">{% for item in form.items.vars.data %}<div class="d-flex justify-content-between mb-2 small animate__animated animate__fadeIn"><span class="text-muted">{{ item.priceListItem.name }}</span><span class="fw-semibold">{{ item.priceListItem.price|formatPrice }}</span></div>{% endfor %}</div>{% endif %}<div class="{{ form.items.vars.data|length ? 'border-top pt-3' : '' }}"><div class="d-flex justify-content-between align-items-center mb-1"><span class="text-muted fw-medium">Suma netto/mc</span><span class="fs-3 fw-bold text-dark">{{ formType.summaryData.total_price|formatPrice }}</span></div><div class="d-flex justify-content-between align-items-center text-muted small mb-4"><span>+ {{ formType.summaryData.vat }}% VAT</span><span>{{ (formType.summaryData.total_gross_price - formType.summaryData.total_price)|formatPrice }}</span></div></div><button class="btn btn-primary-custom w-full d-flex align-items-center justify-content-center gap-2 text-white w-100" {% if form.items.vars.data|length == 0 %}disabled="disabled"{% endif %}><span>Dodaj do koszyka</span><i class="bi bi-arrow-right"></i></button><div class="text-center mt-4"><small class="text-uppercase fw-bold text-muted" style="font-size: 10px; letter-spacing: 1px;">Gwarancja staĆej ceny przez 12 m-cy</small></div></div></div></div>{{ form_end(form) }}