Skip to content

Commit

Permalink
- fixed layout on payment popup on Invoice/Creditmemo
Browse files Browse the repository at this point in the history
  • Loading branch information
24198 committed Apr 19, 2021
1 parent f17b373 commit 22397d3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ operations:
options:
width: 2000
show_dialog: true
template: MarelloPaymentBundle:Action:payment_popup.html.twig
preactions:
- '@call_service_method':
service: marello_invoice.provider.invoice_paid_amount
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% extends 'OroActionBundle:Operation:form.html.twig' %}

{% block form %}
{% set buttonOptions = operation.definition.buttonOptions %}
<div class="widget-content">
{{ form_start(form, {'action': app.request.uri, 'attr': {'id': form.vars.id, 'data-collect': 'true', 'class': 'form-dialog'}}) }}
<div class="form-horizontal">
{{ form_row(form.payment_method) }}
{{ form_row(form.payment_date) }}
{{ form_row(form.payment_reference) }}
{{ form_row(form.payment_details) }}
{{ form_row(form.total_paid) }}
</div>
<div class="widget-actions">
<button class="btn" type="reset">{{ (options.cancelText|default('Cancel'))|trans }}</button>
<button class="btn btn-success" type="submit">{{ (options.okText|default('Submit'))|trans }}</button>
</div>
{{ form_rest(form) }}
{{ form_end(form) }}
{{ oro_form_js_validation(form) }}
</div>
{% endblock %}

0 comments on commit 22397d3

Please sign in to comment.