<?php
/**
 * aheadWorks Co.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://ecommerce.aheadworks.com/LICENSE-M1.txt
 *
 * @category   AW
 * @package    AW_Mobile
 * @copyright  Copyright (c) 2010-2011 aheadWorks Co. (http://www.aheadworks.com)
 * @license    http://ecommerce.aheadworks.com/LICENSE-M1.txt
 */
?>
<?php
/**
 * @see Enterprise_GiftCardAccount_Block_Check
 */
?>
<div class="giftcard-status">
    <div class="page-title">
        <h1><?php echo Mage::helper('enterprise_giftcardaccount')->__('Gift Card status'); ?></h1>
    </div>

<?php if ($this->getCode()): ?>
    <?php echo $this->getChildHtml('check_result') ?>
<?php endif; ?>
    <form method="post" id="codeForm">
        <fieldset>
            <ul class="form-list">
                <li>
                    <label for="code"><?php echo Mage::helper('enterprise_giftcardaccount')->__('Enter Gift Card code'); ?></label>
                    <div class="input-box">
                        <input type="text" class="input-text required-entry" name="giftcard_code" id="code" value="<?php echo $this->htmlEscape($this->getCode()) ?>" />
                    </div>
                </li>
            </ul>
        </fieldset>
        <div class="buttons-set form-buttons btn-only">
             <button class="button" type="button" onclick="cForm.submit()"><span><span><?php echo Mage::helper('enterprise_giftcardaccount')->__('Check'); ?></span></span></button>
        </div>
    </form>
    <script type="text/javascript">
    var cForm = new VarienForm('codeForm');
    </script>
</div>
