PluginProbe ʕ •ᴥ•ʔ
Appointment Booking Plugin – LatePoint | Calendar & Scheduling for WordPress / 5.6.8
Appointment Booking Plugin – LatePoint | Calendar & Scheduling for WordPress v5.6.8
5.6.8 5.6.7 5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.2 5.5.1 5.5.0 5.4.2 trunk 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.1.91 5.1.92 5.1.93 5.1.94 5.2.0 5.2.1 5.2.10 5.2.11 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.0 5.3.1 5.3.2 5.4.0 5.4.1
latepoint / lib / views / invoices / new_form.php
latepoint / lib / views / invoices Last commit date
payment_form 1 year ago edit_data.php 4 months ago email_form.php 1 week ago new_form.php 4 months ago payment_form.php 1 year ago summary_before_payment.php 1 year ago view.php 1 year ago view_by_key.php 1 year ago
new_form.php
49 lines
1 <?php
2 /*
3 * Copyright (c) 2023 LatePoint LLC. All rights reserved.
4 */
5
6 /* @var $invoice OsInvoiceModel */
7 ?>
8 <div class="invoice-settings-wrapper" data-route="<?php echo esc_attr(OsRouterHelper::build_route_name('invoices', 'create')); ?>">
9 <?php
10 echo OsFormHelper::hidden_field('invoice[order_id]', $invoice->order_id);
11 echo OsFormHelper::hidden_field('invoice[payment_portion]', $invoice->payment_portion);
12 // Add protection nonce.
13 wp_nonce_field( 'create_invoice', '_wpnonce', false );
14 ?>
15 <div class="invoice-settings-heading">
16 <div><?php esc_html_e( 'Invoice Settings', 'latepoint' ); ?></div>
17 <a href="#" class="invoice-settings-close"><i class="latepoint-icon latepoint-icon-x"></i></a>
18 </div>
19 <div class="invoice-settings-body">
20 <div class="invoice-setting-column">
21 <?php
22 echo '<div class="label-for-select">' . esc_html__( 'Amount', 'latepoint' ) . '</div>';
23 echo '<div class="custom-charge-amount-wrapper">';
24 echo OsFormHelper::money_field( 'invoice[charge_amount]', false, 0, [ 'class' => 'size-small', 'theme' => 'simple' ] );
25 echo '</div>';
26 ?>
27 </div>
28 <div class="invoice-setting-column">
29 <?php
30 echo '<div class="label-for-select">' . esc_html__( 'Due On', 'latepoint' ) . '</div>';
31 echo OsFormHelper::date_picker_field( 'invoice[due_at]', OsTimeHelper::get_readable_date_from_string( OsTimeHelper::today_date( 'Y-m-d' ) ), OsTimeHelper::today_date( 'Y-m-d' ), [
32 'class' => 'size-small',
33 'theme' => 'simple'
34 ] );
35 ?>
36 </div>
37 <div class="invoice-setting-column">
38 <?php
39 echo '<div class="label-for-select">' . esc_html__( 'Status', 'latepoint' ) . '</div>';
40 echo '<div class="custom-charge-amount-wrapper">';
41 echo OsFormHelper::select_field( 'invoice[status]', false, OsInvoicesHelper::list_of_statuses_for_select(), LATEPOINT_INVOICE_STATUS_DRAFT, [ 'class' => 'size-small', 'theme' => 'simple' ] );
42 echo '</div>';
43 ?>
44 </div>
45 </div>
46 <div class="invoice-settings-buttons">
47 <a href="#" class="latepoint-btn latepoint-btn-sm latepoint-btn-primary create-invoice-button"><?php esc_html_e( 'Create Invoice', 'latepoint' ); ?></a>
48 </div>
49 </div>