| 1 |
<?php |
| 2 |
/** |
| 3 |
* Appointment Services permanent-deletion review WP template. |
| 4 |
* |
| 5 |
* @package Booking Calendar |
| 6 |
* @since 11.6.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
?> |
| 13 |
<script type="text/html" id="tmpl-wpbc-appointment-services-delete-review"> |
| 14 |
<form id="wpbc_appointment_services_delete_review_form" class="wpbc_appointment_services__delete_review wpbc_ui_catalog_delete_review" data-wpbc-ui-catalog-delete-review-form data-mode="delete_review"> |
| 15 |
<div class="wpbc_bfb__inspector__head"><div class="header_container"><div class="header_title_content"> |
| 16 |
<h3 class="title" tabindex="-1" data-wpbc-ui-catalog-delete-review-heading>{{ data.title }}</h3> |
| 17 |
<span class="wpbc_ui_catalog_delete_review__context">{{ data.selection_label }}</span> |
| 18 |
<p class="desc">{{ data.description }}</p> |
| 19 |
</div></div></div> |
| 20 |
<div class="wpbc_ui_catalog_delete_review__body"> |
| 21 |
<p class="description">{{ data.pending_message }}</p> |
| 22 |
<# if ( data.warning && ! data.can_apply ) { #> |
| 23 |
<div class="wpbc_ui_catalog_delete_review__warning is-blocked" role="status"> |
| 24 |
<span class="wpbc-bi-shield-exclamation" aria-hidden="true"></span> |
| 25 |
<p>{{ data.warning }}</p> |
| 26 |
</div> |
| 27 |
<# } #> |
| 28 |
<h2>{{ data.items_heading }}</h2> |
| 29 |
<# if ( data.can_apply ) { #> |
| 30 |
<label class="wpbc_ui_catalog_delete_review__acknowledgement is-attention" for="wpbc_appointment_services_delete_acknowledge"> |
| 31 |
<input id="wpbc_appointment_services_delete_acknowledge" type="checkbox" data-wpbc-ui-catalog-delete-acknowledgement> |
| 32 |
<span>{{ data.acknowledgement }}</span> |
| 33 |
</label> |
| 34 |
<# } #> |
| 35 |
<# _.each( data.items || [], function ( service ) { #> |
| 36 |
<section class="wpbc_ui_catalog_delete_review__card"> |
| 37 |
<h3>{{ service.title }}</h3> |
| 38 |
<p>{{ data.id_label }}: {{ service.id }}</p> |
| 39 |
<# if ( service.notes && service.notes.length ) { #><ul><# _.each( service.notes, function ( note ) { #><li>{{ note }}</li><# } ); #></ul><# } #> |
| 40 |
<# if ( service.actions && service.actions.length ) { #> |
| 41 |
<div class="wpbc_ui_catalog_delete_review__actions"> |
| 42 |
<h4>{{ data.actions_heading }}</h4> |
| 43 |
<ul><# _.each( service.actions, function ( action ) { #><li><a href="{{ action.url }}">{{ action.label }}</a><# if ( action.description ) { #><span class="description">{{ action.description }}</span><# } #></li><# } ); #></ul> |
| 44 |
</div> |
| 45 |
<# } #> |
| 46 |
</section> |
| 47 |
<# } ); #> |
| 48 |
<# if ( data.warning && data.can_apply ) { #> |
| 49 |
<div class="wpbc_ui_catalog_delete_review__warning" role="status"> |
| 50 |
<span class="wpbc-bi-exclamation-triangle" aria-hidden="true"></span> |
| 51 |
<p>{{ data.warning }}</p> |
| 52 |
</div> |
| 53 |
<# } #> |
| 54 |
</div> |
| 55 |
</form> |
| 56 |
</script> |
| 57 |
|