{% extends "::base.html.twig" %} {% block collection_widget %} {% spaceless %} {% if prototype is defined %} {% set attr = attr|merge({'data-prototype': block('collection_item_widget') }) %} {% endif %} {% set attr = attr|merge({'data-allow-add': allow_add ? 1 : 0}) %} {% set attr = attr|merge({'data-allow-remove': allow_delete ? 1 : 0 }) %} {% set attr = attr|merge({'data-name-prefix': full_name}) %} {% for rows in form %} {# Though form_row can be used, its styling needs to be worked on first #} {% endfor %}
Requisition Line Amount
{{ form_widget(rows.requisitionLine) }}{{ form_errors(rows.requisitionLine) }} {{ form_widget(rows.amount) }}{{ form_errors(rows.amount) }}
Total 0.00
{% endspaceless %} {% endblock collection_widget %} {% block collection_item_widget %} {% spaceless %} {# Though form_row can be used, its styling needs to be worked on first #} {{ form_widget(prototype.requisitionLine) }}{{ form_errors(prototype.requisitionLine) }} {{ form_widget(prototype.amount) }}{{ form_errors(prototype.amount) }} {% endspaceless %} {% endblock collection_item_widget %} {% block button_widget %} {% spaceless %} {% if label is empty %} {% set label = name|humanize %} {% endif %} {% if add_cancel_btn %} {{ cancel_label|title }} {% endif %} {% if add_antispam_button %} {% endif %} {% endspaceless %} {% endblock button_widget %} {% form_theme form _self %} {% form_theme form.reqnLines 'AlsuiteAssetsBundle:Form:collection-theme.html.twig' _self %} {% block title 'Upload a Receipt' %} {% block content %}
Upload a Receipt
{{ form_start(form) }} {{ form_row(form.title) }} {{ form_row(form.file) }}
To add Requisition Lines, click Line
{{ form_row(form.reqnLines) }}
{{ form_end(form) }}
{% endblock %} {% block javascripts %} {{ form_javascript(form) }} {% endblock %}