<td class="action payments"> <?php echo gButton(__("Invoices"), array('id' => 'load-invoices-for-' . $id, 'type' => 'button', 'class' => 'invoices action-clear', 'href' => '@invoices?search[customer_id]=' . $id)); ?> </td> </tr> <?php } ?> </tbody> <tfoot> <tr class="noborder"> <td colspan="10" class="listing-options"> <?php echo gButton_to_function(__("Delete"), "do_batch('delete')", array('class' => 'batch delete action-clear', 'confirm' => __('Are you sure?'))); ?> </td> </tr> </tfoot> </table> </form> <?php include_partial('global/pager', array('pager' => $pager, 'route' => '@customers')); ?> <?php } else { ?>
?> <?php echo $tag . ($ctags == ++$i ? null : ', '); ?> <?php } ?> </p> </div> <?php } ?> </div> <div id="saving-options"> <?php echo gButton_to_function(__('Print'), "Tools.popup(siwapp_urls.printHtml + '?ids[]=" . $invoice->getId() . "')", 'class=action print'); ?> <?php echo gButton_to_function(__('Save PDF'), "window.location=siwapp_urls.printPdf + '?ids[]=" . $invoice->getId() . "'", 'class=action pdf'); ?> <?php echo gButton_to(__('Send'), 'invoices/send?id=' . $invoice->getId(), 'class=action send'); ?> <?php echo gButton_to(__('Edit'), 'invoices/edit?id=' . $invoice->getId(), 'class=action edit'); ?> </div> </div>
<?php include_partial('common/items', array('invoice' => $invoice, 'invoiceForm' => $invoiceForm, 'currency' => $currency)); ?> </div> <!-- div#payment-data --> <?php include_partial('common/termsAndNotes', array('invoiceForm' => $invoiceForm)); ?> <?php include_partial('common/tagsDataBlock', array('invoice' => $invoice, 'invoiceForm' => $invoiceForm)); ?> <div id="saving-options" class="block"> <?php if ($invoice->getId()) { echo gButton_to(__('Delete'), "invoices/delete?id=" . $invoice->getId(), array('class' => 'action delete', 'post' => true, 'confirm' => __('Are you sure?')), 'button=false') . " "; } if (!$invoice->isNew()) { echo gButton_to_function(__('Print'), "Tools.popup(siwapp_urls.printHtml + '?ids[]=" . $invoice->getId() . "')", 'class=action print') . " "; echo gButton_to_function(__('PDF'), "window.location=siwapp_urls.printPdf + '?ids[]=" . $invoice->getId() . "'", 'class=action pdf') . " "; } if ($invoice->isNew() || $db_draft) { echo gButton_to_function(__('Save as draft'), "\$('form.invoice').saveInvoiceAsDraft()", 'class=action save-draft', 'button=true') . " "; } echo gButton_to_function(__('Save and send by e-mail'), "\$('form.invoice').saveInvoiceAndEmail();", 'class=action send save-email', 'button=true') . " "; echo gButton(__('Save'), 'type=submit class=action primary save', 'button=true'); ?> </div> </form> </div>
<?php use_helper('JavascriptBase'); ?> <div id="tags_data" class="block"> <h3><?php echo __('Tags'); ?> </h3> <?php echo $invoiceForm['tags']; echo ' ' . gButton_to_function(__('Add'), "\$('#invoice_tags_input').trigger('ComputeTags')", 'class=action-clear addTag'); echo $invoiceForm['tags']->renderError(); $tagTemplate = esc_js_no_entities(get_partial('common/tagSpan', array('tag' => '#{tag}'))); echo javascript_tag("\n \$('#invoice_tags').tagSelector({\n autocompletionUrl : '" . url_for('common/ajaxTagsAutocomplete') . "',\n tagsContainer : 'the_tags_div',\n tagTemplate : '{$tagTemplate}'\n });\n "); ?> <div id="the_tags_div" class="taglist"> <?php foreach ($invoice->getTags() as $tag) { ?> <?php include_partial('common/tagSpan', array('tag' => $tag)); ?> <?php } ?> </div> </div>
<?php echo gButton_to_function(__("Delete"), "do_batch('delete')", array('class' => 'batch delete action-clear', 'confirm' => __('Are you sure?'))); echo gButton_to_function(__("Print"), "", 'class=batch print action-clear rel=print:html'); echo gButton_to_function(__("PDF"), "", 'class=batch pdf action-clear rel=print:pdf'); echo gButton_to_function(__("Send"), "", 'class=batch send action-clear rel=batch:email'); echo gButton_to(__("Download as CSV"), '@invoices_export', 'class="csv action-clear"');