<div id="private_note_edit_modal">
	<div id="tt_body" class="admin_fields clearfix">
		<?php 
sa_admin_fields($fields, 'note');
?>
	</div><!-- #tt_body -->
	<div id="tt_save">
		<p>
			<button id="save_edit_private_note" class="button button-primary" data-id="<?php 
echo $record_id;
?>
"><?php 
self::_e('Edit');
?>
</button>
		</p>
	</div><!-- #tt_save -->
</div><!-- #private_note_edit_modal -->

<script type="text/javascript">
	jQuery(function() {
		jQuery('#sa_note_note').redactor();
	});
</script>
Пример #2
0
<div id="send_doc_options_wrap" class="admin_fields clearfix">
	<?php 
sa_admin_fields($fields, 'send_metabox');
?>
	<div id="quick_send_option" class="form-group">
		<span class="label_wrap">&nbsp;</span>
		<div class="input_wrap">
			<a href="javascript:void(0)" class="button" id="send_doc_notification"><?php 
si_e('Send Estimate');
?>
</a> <span class="helptip" title="<?php 
si_e("Make sure to save all information before sending your estimate.");
?>
"></span>
		</div>
	</div>
	
</div>
<div id="time_tracker_wrap">
	<div id="tt_body" class="admin_fields clearfix">
		<?php 
sa_admin_fields($fields, 'time');
?>
	</div><!-- #tt_body -->
	<div id="tt_save">
		<p>
			<button href="javascript:void(0)" id="create_time_entry" class="button button-large button-primary"><?php 
_e('Log Time', 'sprout-invoices');
?>
</button>
		</p>
	</div><!-- #tt_save -->
</div><!-- #time_tracker_wrap -->
<div id="time_creation_modal">
	<div id="tt_body" class="admin_fields clearfix">
		<?php 
sa_admin_fields($fields, 'item');
?>
	</div><!-- #tt_body -->
	<div id="tt_save">
		<p>
			<a href="javascript:void(0)" id="create_predefined_item" class="button button-large button-primary"><?php 
_e('Create Item', 'sprout-invoices');
?>
</a>
			<a href="javascript:void(0)" id="manage_items" class="button" data-item-id="0"><?php 
_e('Manage Items', 'sprout-invoices');
?>
</a>
		</p>

	</div><!-- #tt_save -->

</div><!-- #time_creation_modal -->

<script type="text/javascript">
	jQuery(function() {
		jQuery('#sa_item_description').redactor();
	});
</script>
Пример #5
0
<div id="project_fields" class="admin_fields clearfix">
	<?php 
sa_admin_fields($fields);
?>
</div>


<h3><?php 
_e('Project Brief', 'sprout-invoices');
?>
 <span class="helptip" title="<?php 
_e("General project brief.", 'sprout-invoices');
?>
"></span></h3>
<?php 
$editor_settings = array('media_buttons' => false, 'textarea_rows' => 4, 'theme_styles' => false);
wp_editor_styleless($project->get_content(), 'content', $editor_settings);
Пример #6
0
<div id="recurring_invoice_options_wrap" class="admin_fields clearfix">
	<?php 
sa_admin_fields($fields, 'recurring_invoice');
?>
</div>

<?php 
if (!empty($children)) {
    ?>
	<b><?php 
    _e('Generation History', 'sprout-invoices');
    ?>
</b>
	<ul>
		<?php 
    foreach ($children as $c_invoice_id) {
        ?>
			<li><?php 
        printf('%s &mdash; <a href="%s">%s</a>', get_post_time(get_option('date_format') . ' @ ' . get_option('time_format'), false, $c_invoice_id), get_edit_post_link($c_invoice_id), get_the_title($c_invoice_id));
        ?>
</li>
		<?php 
    }
    ?>
	</ul>
<?php 
} elseif (strtotime($next_time) > current_time('timestamp')) {
    ?>
	<b><?php 
    _e('Generation History', 'sprout-invoices');
    ?>
<div id="time_tracker_toggl_wrap">
	<div id="tt_body" class="admin_fields clearfix">
		<?php 
sa_admin_fields($fields, 'toggl');
?>
	</div><!-- #tt_body -->
</div><!-- #time_tracker_toggl_wrap -->
<?php

if (is_a($recurring_payment, 'SI_Payment')) {
    ?>

	<?php 
    do_action('recurring_payments_profile_info', $recurring_payment);
    ?>

	<p><?php 
    printf('<a class="payments_link button" title="%s" href="%s&s=%s">%s</a>', __('Review Payment', 'sprout-invoices'), get_admin_url('', '/edit.php?post_type=sa_invoice&page=sprout-apps/invoice_payments'), $recurring_payment->get_id(), __('Recurring Payment', 'sprout-invoices'));
    ?>
</p>

<?php 
} else {
    ?>
	<div id="recurring_invoice_options_wrap" class="admin_fields clearfix">
		<?php 
    sa_admin_fields($fields, 'recurring_payments');
    ?>
	</div>
<?php 
}
Пример #9
0
 public static function display_currency_locale_fields()
 {
     $localeconv = self::localeconv_options();
     $fields['int_curr_symbol'] = array('weight' => 1, 'label' => self::__('International Currency Symbol'), 'type' => 'text', 'default' => isset($localeconv['int_curr_symbol']) ? $localeconv['int_curr_symbol'] : '', 'description' => self::__('U.S. default is <code>USD</code>'));
     $fields['currency_symbol'] = array('weight' => 1, 'label' => self::__('Currency Symbol'), 'type' => 'text', 'default' => isset($localeconv['currency_symbol']) ? $localeconv['currency_symbol'] : '', 'description' => self::__('U.S. default is <code>$</code>'));
     $fields['mon_decimal_point'] = array('weight' => 5, 'label' => self::__('Decimal Point'), 'type' => 'text', 'default' => isset($localeconv['mon_decimal_point']) ? $localeconv['mon_decimal_point'] : '.', 'description' => self::__('U.S. default is <code>.</code>'));
     $fields['mon_thousands_sep'] = array('weight' => 10, 'label' => self::__('Thousands Separator'), 'type' => 'text', 'default' => isset($localeconv['mon_thousands_sep']) ? $localeconv['mon_thousands_sep'] : ',', 'description' => self::__('U.S. default is <code>,</code>'));
     $fields['positive_sign'] = array('weight' => 15, 'label' => self::__('Positive Sign'), 'type' => 'text', 'default' => isset($localeconv['positive_sign']) ? $localeconv['positive_sign'] : '', 'description' => self::__('U.S. default is blank'));
     $fields['negative_sign'] = array('weight' => 1, 'label' => self::__('Negative Sign'), 'type' => 'text', 'default' => isset($localeconv['negative_sign']) ? $localeconv['negative_sign'] : '', 'description' => self::__('U.S. default is <code>-</code>'));
     $fields['int_frac_digits'] = array('weight' => 1, 'label' => self::__('Fraction Digits'), 'type' => 'text', 'default' => isset($localeconv['int_frac_digits']) ? $localeconv['int_frac_digits'] : '', 'description' => self::__('U.S. default is <code>2</code>'));
     $fields['mon_grouping'] = array('weight' => 1, 'label' => self::__('Money Grouping'), 'type' => 'checkbox', 'type' => 'text', 'default' => !empty($localeconv['mon_grouping']) ? implode(',', $localeconv['mon_grouping']) : '3, 3', 'description' => self::__('U.S. default is <code>3, 3</code>'));
     $fields['p_cs_precedes'] = array('weight' => 1, 'label' => self::__('Currency Symbol Precedes (Positive)'), 'type' => 'checkbox', 'value' => '1', 'default' => isset($localeconv['p_cs_precedes']) ? $localeconv['p_cs_precedes'] : 1, 'description' => self::__('U.S. default is checked.'));
     $fields['p_sep_by_space'] = array('weight' => 1, 'label' => self::__('Space Separation (Positive)'), 'type' => 'checkbox', 'value' => '1', 'default' => isset($localeconv['p_sep_by_space']) ? $localeconv['p_sep_by_space'] : 0, 'description' => self::__('U.S. default is unchecked.'));
     $fields['p_sign_posn'] = array('weight' => 1, 'label' => self::__('Positive Position'), 'type' => 'checkbox', 'value' => '1', 'default' => isset($localeconv['p_sign_posn']) ? $localeconv['p_sign_posn'] : 1, 'description' => self::__('U.S. default is checked.'));
     $fields['n_cs_precedes'] = array('weight' => 1, 'label' => self::__('Currency Symbol Precedes (Negative)'), 'type' => 'checkbox', 'value' => '1', 'default' => isset($localeconv['n_cs_precedes']) ? $localeconv['n_cs_precedes'] : 1, 'description' => self::__('U.S. default is checked.'));
     $fields['n_sep_by_space'] = array('weight' => 1, 'label' => self::__('Space Separation (Negative)'), 'type' => 'checkbox', 'value' => '1', 'default' => isset($localeconv['n_sep_by_space']) ? $localeconv['n_sep_by_space'] : 0, 'description' => self::__('U.S. default is unchecked.'));
     $fields['n_sign_posn'] = array('weight' => 1, 'label' => self::__('Positive Position'), 'type' => 'checkbox', 'value' => '1', 'default' => isset($localeconv['n_sign_posn']) ? $localeconv['n_sign_posn'] : 1, 'description' => self::__('U.S. default is checked.'));
     echo '<div id="currency_fields" class="split admin_fields clearfix">';
     sa_admin_fields($fields);
     echo '</div>';
 }