<form role="form" method="post">
    <div class="form-group">
        <label class="control-label">
            <?php echo __('Access Key'); ?>
        </label>
        <input value="<?php echo getKbPostVar('amazon.accessKey', getKbAmz()->getOption('amazon.accessKey'));?>" type="text" name="amazon[accessKey]" class="form-control">
    </div>
    
    <div class="form-group">
        <label class="control-label">
            <?php echo __('Secret Key'); ?>
        </label>
        <input value="<?php echo getKbPostVar('amazon.secretKey', getKbAmz()->getOption('amazon.secretKey'));?>" type="text" name="amazon[secretKey]" class="form-control">
    </div>
    
    <div class="form-group">
        <label class="control-label">
            <?php echo __('Country'); ?>
        </label>
        
        <select name="amazon[country]" class="form-control"  value="<?php echo getKbPostVar('amazon.country', getKbAmz()->getOption('amazon.country', 'com'));?>">
            <?php echo kbAmzSelect($this->groups, getKbPostVar('amazon.country', getKbAmz()->getOption('amazon.country', 'com'))); ?>
        </select>
    </div>
    
    <div class="form-group">
        <label class="control-label">
            <?php echo __('Associate Tag'); ?>
        </label>
        <input value="<?php echo getKbPostVar('amazon.associateTag', getKbAmz()->getOption('amazon.associateTag'));?>" type="text" name="amazon[associateTag]" class="form-control">
    </div>
    
    <div class="form-group">
        <label class="control-label" for="amazonApiRequestPerSec" style="width: 100%;">
            <?php echo __('Requests per second. This option will lower the Amazon API Exception: `You are submitting requests too quickly. Please retry your requests at a slower rate.`'); ?>
            <a href="https://affiliate-program.amazon.com/gp/advertising/api/detail/faq.html" target="_blank"><span aria-hidden="true" class="glyphicon glyphicon-question-sign"></span></a>
        </label>
        <select value="<?php echo getKbPostVar('amazonApiRequestPerSec', getKbAmz()->getOption('amazonApiRequestPerSec'));?>" name="amazonApiRequestPerSec" class="form-control">
            <?php echo kbAmzSelect(array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10), getKbPostVar('amazonApiRequestPerSec', getKbAmz()->getOption('amazonApiRequestPerSec'))); ?>
        </select>
    </div>
    
    
    <div class="form-group">
        <button type="submit" class="btn btn-primary" name="submit"><?php echo __('Update'); ?></button>
    </div>
</form>
