Skip to content

Commit

Permalink
add a new box for the promotional code
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellone committed Nov 9, 2014
1 parent b980e2c commit cc7a2a7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/main/resources/io/bagarino/i18n/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ show-event.sales-end=Sales end {0}
show-event.soldout=Sold-out
show-event.not-available=N/A
show-event.timezone.warn=Dates and times are in the local time zone of the event''s venue ({0})
show-event.promo-code=Apply promotional code
show-event.promo-code=Do you have any promotional code?
show-event.promo-code-insert=Insert it here:
show-event.promo-code.apply=Apply

#reservation-page.ms
Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/io/bagarino/i18n/application_it.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ show-event.sales-end=Acquistabile fino al {0}
show-event.soldout=Esaurito
show-event.not-available=Non disponibile
show-event.timezone.warn=Le date e gli orari sono nel fuso orario della sede dell''evento ({0}).
show-event.promo-code=Inserisci codice promozionale
show-event.promo-code.apply=Inserisci
show-event.promo-code=Hai un codice promozionale?
show-event.promo-code-insert=Inseriscilo qui:
show-event.promo-code.apply=Applica


#reservation-page.ms
Expand Down
28 changes: 21 additions & 7 deletions src/main/webapp/WEB-INF/templates/event/show-event.ms
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,29 @@
{{/ticketCategories}}
</ul>

<div class="row wMarginBottom">
<div class="col-sm-9 col-sm-offset-3">
{{#hasAccessRestrictedCategory}}
<div class="form-inline text-center">
<label>{{#i18n}}show-event.promo-code{{/i18n}}: <input name="promoCodes" autocomplete="off" class="form-control" id="promo-code"></label> <button class="btn btn-default" type="button" id="apply-promo-codes">{{#i18n}}show-event.promo-code.apply{{/i18n}}</button>
</div>
{{/hasAccessRestrictedCategory}}
<div class="wMarginBottom"></div>
{{#hasAccessRestrictedCategory}}
<div id="accessRestrictedTokens" class="wMarginBottom">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<i class="fa fa-gift"></i>
<a data-toggle="collapse" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
{{#i18n}}show-event.promo-code{{/i18n}}
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<div class="form-inline text-center">
<label>{{#i18n}}show-event.promo-code-insert{{/i18n}} <input name="promoCodes" autocomplete="off" class="form-control" id="promo-code"></label>
<button class="btn btn-success" type="button" id="apply-promo-codes">{{#i18n}}show-event.promo-code.apply{{/i18n}}</button>
</div>
</div>
</div>
</div>
</div>
{{/hasAccessRestrictedCategory}}

<hr/>

Expand Down

0 comments on commit cc7a2a7

Please sign in to comment.