| 1 |
<?php |
| 2 |
/** |
| 3 |
* Complete Appointment Service table-row WP template. |
| 4 |
* |
| 5 |
* Renders the ordered, visible Service fields prepared from the normalized DTO |
| 6 |
* without performing queries, authorization, or mutation work. |
| 7 |
* |
| 8 |
* @package Booking Calendar |
| 9 |
* @since 11.6.0 |
| 10 |
*/ |
| 11 |
if ( ! defined( 'ABSPATH' ) ) { exit; } |
| 12 |
?> |
| 13 |
<script type="text/html" id="tmpl-wpbc-appointment-service-row"> |
| 14 |
<tr class="wpbc_ui_listing__row wpbc_ui_catalog_inline_row wpbc_appointment_services__item<# if ( data.is_inspector_selected ) { #> is-inspector-selected<# } #>" data-service-id="{{ data.service_id }}" data-wpbc-ui-catalog-selectable-row data-wpbc-ui-catalog-selection-checkbox-only data-wpbc-right-sidebar-keep-open="1" tabindex="0" aria-current="{{ data.is_inspector_selected ? 'true' : 'false' }}"> |
| 15 |
<td class="wpbc_ui_listing__selection_column column-selection"><input type="checkbox" value="{{ data.service_id }}" data-wpbc-ui-catalog-select-item aria-label="{{ data.select_label }}"></td> |
| 16 |
<# _.each( data.columns, function ( column ) { #><td class="{{ column.class_name }}" data-label="{{ column.label }}"><# print( data.cells[ column.id ] || '' ); #></td><# } ); #> |
| 17 |
</tr> |
| 18 |
</script> |
| 19 |
|