Skip to content

Commit

Permalink
#464 invoice available mode: invoice details section, initial work
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Jul 2, 2018
1 parent 1ad11d1 commit c07d710
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/resources/alfio/i18n/public.properties
Original file line number Diff line number Diff line change
Expand Up @@ -371,4 +371,5 @@ common.back=Back
reservation-page.address-line-1=Address Line 1
reservation-page.address-line-2=Address Line 2
reservation-page.zip-postal-code=Zip/Postal Code
reservation-page.city=City
reservation-page.city=City
reservation-page.invoice-details=Invoice details
9 changes: 9 additions & 0 deletions src/main/webapp/WEB-INF/templates/event/reservation-page.ms
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,15 @@
{{#i18n}}reservation-page.i-need-an-invoice{{/i18n}}
</label>
</div>

<div class="hidden-xs hidden-sm hidden-md hidden-lg invoice-details-section">
<div class="page-header">
<h2>{{#i18n}}reservation-page.invoice-details{{/i18n}}</h2>
</div>
<div>
</div>
</div>

{{/onlyInvoice}}
{{/invoiceIsAllowed}}
{{/orderSummary.free}}
Expand Down
9 changes: 9 additions & 0 deletions src/main/webapp/resources/js/event/reservation-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,15 @@
}
});


$("#invoice-requested").change(function() {
if($("#invoice-requested:checked").length) {
$(".invoice-details-section").removeClass(hiddenClasses)
} else {
$(".invoice-details-section").addClass(hiddenClasses)
}
});

});

/*window.recaptchaLoadCallback = function() {
Expand Down

0 comments on commit c07d710

Please sign in to comment.