Skip to content

Commit

Permalink
Merge pull request #861 from CruGlobal/849-always-show-promo-code
Browse files Browse the repository at this point in the history
[EVENT-849] Always show promo code box
  • Loading branch information
canac authored Oct 31, 2024
2 parents c70f987 + 755443f commit 9f67495
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions app/views/reviewRegistration.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,31 +344,30 @@ <h2 class="page-title border" translate>Summary</h2>
</tr>
</table>

<a
href=""
ng-click="showPromoInput = true"
ng-show="!currentRegistration.completed && currentRegistration.remainingBalance > 0 && conference.promotions.length && !showPromoInput"
<div
ng-show="!currentRegistration.completed && currentRegistration.remainingBalance > 0 && conference.promotions.length"
>
<i class="fa fa-plus"></i> <translate>Add Promotion Code</translate>
</a>
<div class="input-group" ng-show="showPromoInput">
<input
type="text"
class="form-control"
ng-model="promoInput"
ng-enter="validatePromo(promoInput)"
/>
<span class="input-group-btn">
<button
type="button"
class="btn btn-default"
ng-click="validatePromo(promoInput)"
ng-disabled="addingPromoCode"
translate
>
Validate
</button>
</span>
<label translate for="promo-code">Add Promotion Code</label>
<div class="input-group">
<input
id="promo-code"
type="text"
class="form-control"
ng-model="promoInput"
ng-enter="validatePromo(promoInput)"
/>
<span class="input-group-btn">
<button
type="button"
class="btn btn-default"
ng-click="validatePromo(promoInput)"
ng-disabled="addingPromoCode"
translate
>
Validate
</button>
</span>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 9f67495

Please sign in to comment.