<?php

/*------------------------------------------------------------------------
# com_invoices - Invoice Manager for Joomla
# ------------------------------------------------------------------------
# author				Germinal Camps
# copyright 			Copyright (C) 2012 - 2016 JoomlaThat.com. All Rights Reserved.
# @license				http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: 			http://www.joomlathat.com
# Technical Support:	Forum - http://www.joomlathat.com/support
-------------------------------------------------------------------------*/

//no direct access
defined('_JEXEC') or die('Restricted access.'); 

$params = JComponentHelper::getParams( 'com_invoices' );
?>
<div class=" invoice-manager">
  <form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data" class="form-horizontal">

    <div class="form-group">
      <label class="control-label col-md-3" for="name"> <?php echo JText::_( 'NAME' ); ?></label>
      <div class="controls col-md-9">
        <input class="form-control" type="text" name="name" id="name" size="80" maxlength="250" value="<?php echo $this->item->name;?>" />
      </div>
    </div>

    <div class="form-group">
      <label class="control-label col-md-3" for="sku"> <?php echo JText::_( 'SKU' ); ?></label>
      <div class="controls col-md-9">
        <input class="form-control" type="text" name="sku" id="sku" size="80" maxlength="250" value="<?php echo $this->item->sku;?>" />
      </div>
    </div>

    <div class="form-group">
      <label class="control-label col-md-3" for="desc"> <?php echo JText::_( 'DESCRIPTION' ); ?></label>
      <div class="controls col-md-9">
        <input class="form-control" type="text" name="desc" id="desc" size="80" maxlength="250" value="<?php echo $this->item->desc;?>" />
      </div>
    </div>

    <div class="form-group">
      <label class="control-label col-md-3" for="value"> <?php echo JText::_( 'VALUE' ); ?></label>
      <div class="controls col-md-9">

        <div class="input-group">
          <span class="input-group-addon currency_before"><?php echo $params->get("currency_before");?></span>
          <input class="form-control" type="text" name="value" id="value" size="6" maxlength="14" value="<?php echo $this->item->value;?>" />
          <span class="input-group-addon currency_after"><?php echo $params->get("currency_after");?></span>
        </div>

      </div>
    </div>

    <div class="form-group">
      <label class="control-label col-md-3" for="amount"> <?php echo JText::_( 'QUANTITY' ); ?></label>
      <div class="controls col-md-9">
        <input class="form-control" type="text" name="amount" id="amount" size="6" maxlength="14" value="<?php echo $this->item->amount;?>" />
      </div>
    </div>

    <div class="form-group">
      <label class="control-label col-md-3" for="tax"> <?php echo JText::_( 'TAX' ); ?></label>
      <div class="controls col-md-9">
        
        <div class="input-group">
          
          <input class="form-control" type="text" name="tax" id="tax" maxlength="14" value="<?php echo $this->item->tax;?>" />
          <span class="input-group-addon currency_after">%</span>
        </div>

      </div>
    </div>

    <input type="hidden" name="option" value="com_invoices" />
    <input type="hidden" name="id" value="<?php echo $this->item->id; ?>" />
    <input type="hidden" name="task" value="" />
    <input type="hidden" name="controller" value="templateitem" />
  </form>
</div>
