Skip to content

Commit

Permalink
Add book on detail functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
georgmaisser committed Jul 15, 2024
1 parent 665f401 commit 0aa2699
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions templates/mod_booking/bookingoption_description_view.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

<div class="container-fluid">
<div class="col-md-9 m-auto">
<div class="row">
<div class="row mod-booking-row">
<div class="col-md-7">
<div class="d-flex mb-3 align-items-center justify-content-start">
<span class="mr-2">{{{ bookings }}}</span>
Expand Down Expand Up @@ -296,7 +296,7 @@
</div>
{{/imageurl}}
<div class="card-body">
<div class="row">
<div class="row mod-booking-row">
<div class="col-md-11 m-auto">
<p class="mb-1 font-weight-bold">{{#str}} aboutoffer, local_berta {{/str}}</p>
{{#dayofweektime}}
Expand Down Expand Up @@ -372,7 +372,7 @@
</span>
</div>
{{/bookingclosingtime}}
<div class="row mt-3">
{{{ bookitsection }}}
</div>
Expand Down
6 changes: 3 additions & 3 deletions templates/mod_booking/bookit_button.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
<div class="booking-button-subarea h5 mb-1 mt-1 p-1 {{class}} mr-auto font-weight-normal d-flex align-items-center" role="{{role}}">
{{{label}}}
</div>
{{/sub}}
{{/sub}}
{{#main}}
{{#link}}
<a class="booking-button-mainarea bertabutton p-1 {{class}}" role="{{role}}" href="{{link}}">
{{{label}}}
<a class="booking-button-mainarea bertabutton p-1 {{class}}" role="{{role}}" href="{{link}}" data-action="bookondetail">
{{{label}}}
{{#showicon}} <i class="fa-solid {{{showicon}}} ml-2"></i> {{/showicon}}
</a>
{{/link}}
Expand Down
2 changes: 2 additions & 0 deletions templates/mod_booking/bookit_price.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@
{{price}} {{currency}}
</span>
{{#shoppingcartisavailable}}
{{#link}}<a href="{{link}}" target="_blank" data-action='bookondetails'>{{/link}}
<div class="bookit-addtocartbtn-area">
{{> local_shopping_cart/addtocartdb }}
</div>
{{#link}}</a>{{/link}}
{{/shoppingcartisavailable}}
{{#priceitems}}
<p><i>{{pricecategoryname}}</i></p>
Expand Down

0 comments on commit 0aa2699

Please sign in to comment.