    <?php
    $information_page = isset($moduleData['information_page']) ? $moduleData['information_page'] : array() ;
    ?>
    <div class="form-group">
      <label class="col-sm-2 control-label" for="input-image"><span data-toggle="tooltip" title="">Promotion view page:</label>
      <div class="col-sm-6">
        <select name="information_page[status]" id="input-info-page" class="form-control">
            <option <?php echo (isset($information_page['status']) && $information_page['status'] == 'yes') ? 'selected="selected"' : ''; ?> value="yes" selected="selected">Enabled</option>
            <option <?php echo (isset($information_page['status']) && $information_page['status'] == 'no' || isset($is_new))  ? 'selected="selected"' : ''; ?> value="no">Disabled</option>
          </select>
      </div>
    </div> 

  <div style="display:none;" data-triggered-from="#input-info-page" class="display_when_enabled">

    <div class="form-group">
       <div class="col-sm-offset-2 col-sm-6">
          <div class="alert alert-info"><i class="fa fa-thumb-tack"></i> Promotion will be listed here: 
              <?php echo HTTP_CATALOG; ?>index.php?route=<?php echo $modulePath; ?>
          </div>
      </div>
    </div>

  <div class="form-group">
    <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="Link ">Display the promotion in a product tab (product page)</label>
    <div class="col-sm-6">
      <select name="information_page[link_promotion]" id="input-link-promo" class="form-control">
          <option <?php echo (isset($information_page['link_promotion']) && $information_page['link_promotion'] == 'yes') ? 'selected="selected"' : ''; ?> value="yes">Yes</option>
          <option <?php echo (isset($information_page['link_promotion']) && $information_page['link_promotion'] == 'no') ? 'selected="selected"' : ''; ?> value="no">No</option>
        </select>
    </div>
  </div> 

  <div class="form-group">
    <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="Link ">Add button link to promotions tab (below add to cart) </label>
    <div class="col-sm-6">
      <select name="information_page[button_link]" id="input-link-promo" class="form-control">
          <option <?php echo (isset($information_page['button_link']) && $information_page['button_link'] == 'yes') ? 'selected="selected"' : ''; ?> value="yes">Yes</option>
          <option <?php echo (isset($information_page['button_link']) && $information_page['button_link'] == 'no') ? 'selected="selected"' : ''; ?> value="no">No</option>
        </select>
    </div>
  </div>

    <div class="form-group">
    <label class="col-sm-2 control-label">Description:</label>
    <div class="col-sm-6">
      <ul class="nav nav-tabs popup_tabs">
        <?php foreach ($languages as $key => $value) { ?>
          <li class="active"><a href="#description_<?php echo $key; ?>" data-toggle="tab"><img src="<?php echo $value['flag_url']; ?>"> <?php echo $value['name']; ?></a></li>
        <?php } ?>
      </ul>
    </div>
  </div>

  <?php foreach ($languages as $key => $value) { ?>
    <div class="form-group">
    <div class="col-sm-offset-2 col-sm-6">
      <textarea name="information_page[description][<?php echo $key; ?>]" placeholder="" id="description_<?php echo $key; ?>">
      <?php echo isset($information_page['description'][$key]) ? $information_page['description'][$key] : ''; ?>
      </textarea>
    </div>
  </div>
  <?php } ?>

  <div class="form-group">
    <label class="col-sm-2 control-label" for="input-image">Main image:</label>
    <div class="col-sm-6">
      <a href="" id="thumb-image" data-toggle="image" class="img-thumbnail"><img src="<?php echo $information_thumb; ?>" alt="" title="" data-placeholder="<?php echo $image_placeholder; ?>" /></a>
      <input type="hidden" name="information_page[image]" value="<?php echo isset($information_page['image']) ? $information_page['image'] : '' ; ?>" id="input-image" />
    </div>
  </div>

    <div class="form-group">
    <label class="col-sm-2 control-label" for="input-image-small-size">Main image size</label>
    <div class="col-sm-6">
      <div class="row">
        <div class="col-sm-6">
          <input type="text" name="information_page[main_image_width]" value="<?php echo isset($information_page['main_image_width']) ? $information_page['main_image_width'] : '500'; ?>" placeholder="Width" class="form-control">
        </div>
        <div class="col-sm-6">
          <input type="text" name="information_page[main_image_height]" value="<?php echo isset($information_page['main_image_height']) ? $information_page['main_image_height'] : '500'; ?>" placeholder="Height" class="form-control">
        </div>
      </div>
    </div>
  </div>

  <div class="form-group">
    <label class="col-sm-2 control-label" for="input-image-small-size">Small image size</label>
    <div class="col-sm-6">
      <div class="row">
        <div class="col-sm-6">
          <input type="text" name="information_page[small_image_width]" value="<?php echo isset($information_page['small_image_width']) ? $information_page['small_image_width'] : '200'; ?>" placeholder="Width" class="form-control">
        </div>
        <div class="col-sm-6">
          <input type="text" name="information_page[small_image_height]" value="<?php echo isset($information_page['small_image_height']) ? $information_page['small_image_height'] : '200'; ?>" placeholder="Height" class="form-control">
        </div>
      </div>
    </div>
  </div>

    <div class="form-group">
    <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="Display the products/categories/brands associated in this promotion">Display the products/categories/brands</label>
    <div class="col-sm-6">
      <select name="information_page[display_products]" id="input-display-products" class="form-control">
          <option <?php echo (isset($information_page['display_products']) && $information_page['display_products'] == 'yes') ? 'selected="selected"' : ''; ?> value="yes">Yes</option>
          <option <?php echo (isset($information_page['display_products']) && $information_page['display_products'] == 'no') ? 'selected="selected"' : ''; ?> value="no">No</option>
        </select>
    </div>
  </div>

</div>

<script type="text/javascript"><!--
<?php foreach ($languages as $key => $value) { ?>
$('#description_<?php echo $key; ?>').summernote({height: 300});
<?php } ?>
//--></script> 