Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix checkin/out button on Reservation page #458

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tpl/Reservation/edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@
</div>


{if $CheckInRequired && (!checkinAdminOnly || $CanViewAdmin)}
{if $CheckInRequired && (!$checkinAdminOnly || $CanViewAdmin)}
<button type="button" class="btn btn-sm btn-warning btnCheckin"><i class="bi bi-box-arrow-in-right"></i>
{translate key=CheckIn}
<span class="autoReleaseButtonMessage" data-autorelease-minutes="{$AutoReleaseMinutes}"> -
{translate key=ReleasedIn} <span class="autoReleaseMinutes"></span> {translate key=minutes}</span></button>
{/if}
{if $CheckOutRequired && (!checkoutAdminOnly || $CanViewAdmin)}
{if $CheckOutRequired && (!$checkoutAdminOnly || $CanViewAdmin)}
<button type="button" class="btn btn-sm btn-warning btnCheckout"><i class="bi bi-box-arrow-in-right"></i>
{translate key=CheckOut}</button>
{/if}
Expand Down Expand Up @@ -220,4 +220,4 @@
</div>
</form>
</div>
{/block}
{/block}
6 changes: 3 additions & 3 deletions tpl/Reservation/view.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,14 @@
{/block}

{block name="submitButtons"}
{if $CheckInRequired && (!checkinAdminOnly || $CanViewAdmin)}
{if $CheckInRequired && (!$checkinAdminOnly || $CanViewAdmin)}
<button type="button" class="btn btn-warning btnCheckin"><i
class="bi bi-box-arrow-in-right"></i>
{translate key=CheckIn}<span class="autoReleaseButtonMessage"
data-autorelease-minutes="{$AutoReleaseMinutes}"> - {translate key=ReleasedIn}
<span class="autoReleaseMinutes"></span> {translate key=minutes}</span></button>
{/if}
{if $CheckOutRequired && (!checkoutAdminOnly || $CanViewAdmin)}
{if $CheckOutRequired && (!$checkoutAdminOnly || $CanViewAdmin)}
<button type="button" class="btn btn-warning btnCheckout"><i
class="bi bi-box-arrow-in-left"></i>
{translate key=CheckOut}</button>
Expand Down Expand Up @@ -433,4 +433,4 @@
$.blockUI.defaults.css.left = '20%';
});
</script>
{include file='globalfooter.tpl'}
{include file='globalfooter.tpl'}
Loading