| 1 |
<?php |
| 2 |
/** |
| 3 |
* Appointment Services safe bulk-field editor WP template. |
| 4 |
* |
| 5 |
* @package Booking Calendar |
| 6 |
* @since 11.6.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { exit; } |
| 10 |
?> |
| 11 |
<script type="text/html" id="tmpl-wpbc-appointment-services-bulk-edit"> |
| 12 |
<div class="wpbc_appointment_services__operation"> |
| 13 |
<h2>{{ data.title }}</h2> |
| 14 |
<p>{{ data.description }}</p> |
| 15 |
<# _.each( data.fields, function ( field ) { #> |
| 16 |
<label class="wpbc_appointment_services__bulk_field"> |
| 17 |
<span><input type="checkbox" data-wpbc-appointment-services-bulk-enable="{{ field.key }}"> <strong>{{ field.label }}</strong></span> |
| 18 |
<# if ( 'select' === field.type ) { #> |
| 19 |
<select data-wpbc-appointment-services-bulk-value="{{ field.key }}" disabled> |
| 20 |
<# _.each( field.options, function ( option ) { #><option value="{{ option.value }}">{{ option.label }}</option><# } ); #> |
| 21 |
</select> |
| 22 |
<# } else { #> |
| 23 |
<input type="{{ field.type }}" value="{{ field.default_value }}" min="{{ field.min }}" max="{{ field.max }}" step="{{ field.step }}" data-wpbc-appointment-services-bulk-value="{{ field.key }}" disabled> |
| 24 |
<input type="range" value="{{ field.default_value }}" min="{{ field.min }}" max="{{ field.max }}" step="{{ field.step }}" data-wpbc-appointment-services-bulk-range="{{ field.key }}" aria-label="{{ field.label }}" disabled> |
| 25 |
<# } #> |
| 26 |
</label> |
| 27 |
<# } ); #> |
| 28 |
</div> |
| 29 |
</script> |
| 30 |
|