<div class="row">
  <div class="col-md-9">

    <div class="form-group">
      <label class="col-sm-3 control-label" for="entry-module-title"><?php echo $entry_title; ?></label>
      <div class="col-sm-9">
        <?php foreach ($languages as $lang) { ?>
          <div class="input-group" style="margin-bottom:5px;">
            <div class="input-group-addon"><img src="<?php echo $lang['flag_url']; ?>" title="<?php echo $lang['name']; ?>"></div>
            <input type="text" id="entry-module-title" name="<?php echo $module_setting; ?>[module][title][<?php echo $lang['language_id']; ?>]" value="<?php echo !empty($setting['module']['title'][$lang['language_id']]) ? $setting['module']['title'][$lang['language_id']] : ''; ?>" placeholder="Module heading title" class="form-control" />
          </div>
        <?php } ?>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label" for="entry-module-status"><?php echo $entry_status; ?></label>
      <div class="col-sm-6 col-md-3">
        <select id="entry-module-status" name="<?php echo $module_setting; ?>[module][status]" class="form-control">
          <option value="1" <?php echo $setting['module']['status'] == '1' ? 'selected="selected"' : ''; ?>><?php echo $text_enabled; ?></option>
          <option value="0" <?php echo $setting['module']['status'] != '1' ? 'selected="selected"' : ''; ?>><?php echo $text_disabled; ?></option>
        </select>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label" for="entry-module-limit"><?php echo $entry_limit; ?></label>
      <div class="col-sm-1" style="min-width:100px">
        <input type="number" name="<?php echo $module_setting; ?>[module][limit]" value="<?php echo $setting['module']['limit']; ?>" id="entry-module-limit" class="form-control" />
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label" for="entry-module-sort-order"><?php echo $entry_sort_order; ?></label>
      <div class="col-sm-6 col-md-3">
        <select id="entry-module-sort-order" name="<?php echo $module_setting; ?>[module][sort_order]" class="form-control">
          <option value="priority" <?php echo $setting['module']['sort_order'] == 'priority' ? 'selected="selected"' : ''; ?>><?php echo $text_priority; ?></option>
          <option value="random" <?php echo $setting['module']['sort_order'] == 'random' ? 'selected="selected"' : ''; ?>><?php echo $text_random; ?></option>
        </select>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label" for="entry-css"><?php echo $entry_custom_css; ?></label>
      <div class="col-sm-9">
        <textarea class="form-control" name="<?php echo $module_setting; ?>[module][custom_css]" id="entry-css" placeholder="" rows="8"><?php echo $setting['module']['custom_css']; ?></textarea>
      </div>
    </div>

  </div>

  <div class="col-md-3">

    <div class="panel panel-default">
      <div class="panel-heading"><?php echo $text_information; ?></div>

      <div class="panel-body">
        <?php echo $text_info_module_intro; ?>

        <ul class="isl-list">
          <?php foreach ($text_info_module as $info) { ?>
            <li><?php echo $info ?></li>
          <?php } ?>
        </ul>
      </div>

    </div>

  </div>
</div>
