| 1 |
<?php |
| 2 |
/** |
| 3 |
* Booking Resource create-inspector 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-booking-resource-inspector-create"> |
| 14 |
<form id="wpbc_catalog_booking_resource_inspector_form" class="wpbc_catalog_booking_resources__editor" data-wpbc-catalog-resource-inspector-form data-mode="create"> |
| 15 |
<div class="wpbc_bfb__inspector__head wpbc_ui_catalog_inspector__header"><div class="header_container"><div class="header_title_content"><h3 class="title">{{ data.schema.title }}</h3><span class="wpbc_ui_catalog_inspector__context wpbc_catalog_booking_resources__editor_context">{{ data.schema.context }}</span><div class="desc">{{ data.schema.description }}</div></div></div></div> |
| 16 |
<div class="notice inline" data-wpbc-catalog-resource-inspector-message hidden role="status"><p></p></div> |
| 17 |
<# if ( ! data.schema.can_create ) { #><div class="notice inline notice-warning"><p>{{ data.i18n.create_unavailable }}</p></div><# } #> |
| 18 |
<# if ( data.schema.shared_notice ) { #><div class="wpbc_catalog_booking_resources__create_shared_notice">{{ data.schema.shared_notice }}</div><# } #> |
| 19 |
<div class="wpbc_catalog_booking_resources__editor_sections"> |
| 20 |
<# _.each( data.schema.sections || [], function ( section ) { print( wp.template( 'wpbc-booking-resource-inspector-group' )( { section: section, i18n: data.i18n, mode: 'create' } ) ); } ); #> |
| 21 |
</div> |
| 22 |
</form> |
| 23 |
</script> |
| 24 |
|