<?php
//no direct access
defined('_JEXEC') or die('Restricted access.'); ?>

<div v-show="current_action == 'edit'">
  <div class="btn-group pull-left">

    <button type="button"
    		class="btn btn-primary "
    		id="savebutton_inline"
    		data-loading-text="<?php echo JText::_('SAVING'); ?>"
    		@click.prevent="saveInvoice()"
    ><?php echo JText::_('SAVE_INVOICE'); ?>
	</button>

  </div>
  <div class="btn-group pull-left">
  		<button type="button"
      			class="btn btn-default "
      			id="savebutton_preview_inline"
      			data-loading-text="<?php echo JText::_('SAVING'); ?>"
      			@click.prevent="save_and_preview()"
	      ><?php echo JText::_('SAVE_AND_PREVIEW'); ?>
  		</button>
  </div>
  <div class="btn-group pull-right">

    <button type="button"
    		class="btn btn-link btn_no_underline maindeletebutton"
    		id="deletebutton_inline"
    		data-loading-text="<?php echo JText::_('DELETING_INVOICE'); ?>"
    		@click.prevent="delete_invoice()"
    >
    	<span class="dlt-item"><?php echo JText::_('DELETE_INVOICE');?></span>
    </button>

  </div>
</div>
