Skip to content

Commit

Permalink
#464 remove term and condition links from reservation-page + handle t…
Browse files Browse the repository at this point in the history
…hem correctly after paypal redirect
  • Loading branch information
syjer committed Jun 26, 2018
1 parent 46775ca commit bb8f4a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
9 changes: 0 additions & 9 deletions src/main/java/alfio/controller/ReservationController.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,6 @@ public String showBookingPage(@PathVariable("eventName") String eventName,
.addAttribute("billingAddressLabel", invoiceAllowed ? "reservation-page.billing-address" : "reservation-page.receipt-address")
.addAttribute("customerReferenceEnabled", configurationManager.getBooleanConfigValue(partialConfig.apply(ENABLE_CUSTOMER_REFERENCE), false));

boolean includeStripe = !orderSummary.getFree() && activePaymentMethods.contains(PaymentProxy.STRIPE);
model.addAttribute("includeStripe", includeStripe);
if (includeStripe) {
model.addAttribute("stripe_p_key", paymentManager.getStripePublicKey(event));
}
Map<String, Object> modelMap = model.asMap();
modelMap.putIfAbsent("paymentForm", paymentForm);
modelMap.putIfAbsent("hasErrors", false);
Expand Down Expand Up @@ -615,10 +610,6 @@ public String handleReservation(@PathVariable("eventName") String eventName,
sendReservationCompleteEmailToOrganizer(request, event, reservation);
//

if(paymentForm.getPaymentMethod() != PaymentProxy.PAYPAL) {
//assignTickets(eventName, reservationId, paymentForm, bindingResult, request, paymentForm.getPaymentMethod() == PaymentProxy.OFFLINE, false);
}

return "redirect:/event/" + eventName + "/reservation/" + reservationId + "/success";
}

Expand Down
4 changes: 3 additions & 1 deletion src/main/webapp/WEB-INF/templates/event/overview.ms
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
</div>
{{/event.privacyPolicyLinkOrNull}}

{{/paypalCheckoutConfirmation}}


<div class="checkbox wMarginTop wMarginBottom">
<label>
Expand All @@ -179,6 +179,8 @@
</label>
</div>

{{/paypalCheckoutConfirmation}}


{{#orderSummary.free}}
<div class="row">
Expand Down
18 changes: 0 additions & 18 deletions src/main/webapp/WEB-INF/templates/event/reservation-page.ms
Original file line number Diff line number Diff line change
Expand Up @@ -166,24 +166,6 @@
</div>
<div class="clearfix"></div>

<hr/>

{{#event.privacyPolicyLinkOrNull}}
<div class="checkbox wMarginTop wMarginBottom">
<label>
<input type="checkbox" required name="privacyPolicyAccepted" value="true">
{{#i18n}}reservation-page.privacy.prefix{{/i18n}} <a href="{{event.privacyPolicyLinkOrNull}}" target="_blank">{{#i18n}}reservation-page.privacy.link.text{{/i18n}}</a>{{#i18n}}reservation-page.privacy.suffix{{/i18n}}
</label>
</div>
{{/event.privacyPolicyLinkOrNull}}

<div class="checkbox wMarginTop wMarginBottom">
<label>
<input type="checkbox" required name="termAndConditionsAccepted" value="true">
{{#i18n}}reservation-page.tc.prefix{{/i18n}} <a href="{{event.termsAndConditionsUrl}}" target="_blank">{{#i18n}}reservation-page.tc.link.text{{/i18n}}</a>{{#i18n}}reservation-page.tc.suffix{{/i18n}}
</label>
</div>

<div class="row">
<div class="col-md-4 col-md-push-8 col-xs-12 wMarginBottom"><button type="submit" class="btn btn-success btn-block" id="continue-button">{{#i18n}}reservation-page.continue{{/i18n}}</button></div>
<div class="col-md-4 col-md-pull-4 col-xs-12"><button type="submit" class="btn btn-default btn-block" id="cancel-reservation">{{#i18n}}reservation-page.cancel{{/i18n}}</button></div>
Expand Down

0 comments on commit bb8f4a9

Please sign in to comment.