. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 184.94.213.167 / Your IP :
216.73.216.174 [
Web Server : LiteSpeed System : Linux premium282.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : whatdo54321 ( 1549) PHP Version : 8.4.14 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/whatdo54321/y1.bedfun.store/wp-content/plugins/jet-booking/templates/ |
Upload File : |
<div class="jet-abaf-units-manager">
<cx-vui-button
v-if="!loaded"
button-style="accent"
:loading="loading"
@click="loadUnits"
>
<span slot="label">
<?php _e( 'Manage Units', 'jet-booking' ); ?>
</span>
</cx-vui-button>
<div v-else>
<div class="cx-vui-subtitle">
<?php _e( 'Available Units', 'jet-booking' ); ?>
</div>
<cx-vui-list-table
:is-empty="! unitsList.length"
empty-message="<?php _e( 'No units were found for this apartment.', 'jet-booking' ); ?>"
>
<cx-vui-list-table-heading
slot="heading"
:slots="[ 'unit_id', 'name', 'actions' ]"
>
<div slot="unit_id" style="width: 50px;">
<?php _e( 'Unit ID', 'jet-booking' ); ?>
</div>
<div slot="name">
<?php _e( 'Name', 'jet-booking' ); ?>
</div>
<div slot="actions">
<?php _e( 'Actions', 'jet-booking' ); ?>
</div>
</cx-vui-list-table-heading>
<cx-vui-list-table-item
slot="items"
:slots="[ 'unit_id', 'name', 'actions' ]"
v-for="unit in unitsList"
:key="unit.unit_id"
>
<div slot="unit_id" style="width: 50px;">{{ unit.unit_id }}</div>
<div slot="name">
<cx-vui-input
v-if="unitToEdit && unit.unit_id === unitToEdit.unit_id"
:wrapper-css="[ 'equalwidth' ]"
size="fullwidth"
:prevent-wrap="true"
:autofocus="true"
v-model="unitToEdit.unit_title"
@on-keyup.stop.enter="saveUnit"
></cx-vui-input>
<div v-else>
{{ unit.unit_title }}
</div>
</div>
<div slot="actions" class="jet-abaf-unit-actions">
<cx-vui-button
v-if="unitToEdit && unit.unit_id === unitToEdit.unit_id"
button-style="link-accent"
size="link"
@click="saveUnit"
>
<span slot="label">
<?php _e( 'Save', 'jet-booking' ); ?>
</span>
</cx-vui-button>
<cx-vui-button
v-else
button-style="link-accent"
size="link"
@click="unitToEdit = unit"
>
<span slot="label">
<?php _e( 'Edit', 'jet-booking' ); ?>
</span>
</cx-vui-button>
<div class="jet-abaf-delete-unit">
<cx-vui-button
v-if="unitToEdit && unit.unit_id === unitToEdit.unit_id"
button-style="link-error"
size="link"
@click="unitToEdit = null"
>
<span slot="label">
<?php _e( 'Cancel', 'jet-booking' ); ?>
</span>
</cx-vui-button>
<cx-vui-button
v-else
button-style="link-error"
size="link"
@click="unitToDelete = unit.unit_id"
>
<span slot="label">
<?php _e( 'Delete', 'jet-booking' ); ?>
</span>
</cx-vui-button>
<div
v-if="unit.unit_id === unitToDelete"
class="cx-vui-tooltip"
>
<?php _e( 'Are you sure?', 'jet-booking' ); ?>
<br>
<span
class="cx-vui-repeater-item__confrim-del"
@click="deleteUnit"
>
<?php _e( 'Yes', 'jet-booking' ); ?>
</span>
/
<span
class="cx-vui-repeater-item__cancel-del"
@click="unitToDelete = null"
>
<?php _e( 'No', 'jet-booking' ); ?>
</span>
</div>
</div>
</div>
</cx-vui-list-table-item>
</cx-vui-list-table>
<br>
<div class="cx-vui-subtitle">
<?php _e( 'Add Units', 'jet-booking' ); ?>
</div>
<div class="cx-vui-panel">
<cx-vui-input
label="<?php _e( 'Number', 'jet-booking' ); ?>"
description="<?php _e( 'Enter the number of created units.', 'jet-booking' ); ?>"
type="number"
:wrapper-css="[ 'equalwidth' ]"
size="fullwidth"
v-model="newUnitsNum"
></cx-vui-input>
<cx-vui-input
label="<?php _e( 'Title', 'jet-booking' ); ?>"
description="<?php _e( 'Enter the title for created units. If empty, the apartment title will be used.', 'jet-booking' ); ?>"
:wrapper-css="[ 'equalwidth' ]"
size="fullwidth"
v-model="newUnitsTitle"
></cx-vui-input>
</div>
<cx-vui-button
button-style="accent"
@click="insertUnits"
>
<span slot="label">
<?php _e( 'Add Units', 'jet-booking' ); ?>
</span>
</cx-vui-button>
</div>
</div>