我正在添加复选框backoffice PrestaShop,但是复选框位于面板后面

时间:2019-07-01 17:06:41

标签: php prestashop

p

enter image description here

我在PrestaShop中添加了带有foreach循环的复选框,但是复选框像照片1一样位于面板后面,但是当我将尺寸调整为照片2的一半时,所有复选框都会出现。 代码:

    return $this->display(__FILE__,'views/templates/admin/a.tpl').
           $this->displayForm().
           $this->display(__FILE__,'views/templates/admin/b.tpl');
  }

  public function displayForm()
  { 
    $data_array[]=null;
  ...
              foreach ($XMLRSString->Families->Family as $family)
              {   
                $data_array[] = array(
                  'check_id' => (int)$family->Code,
                  'name' => $family->Designation,
              );

              }

    // Get default language
    $default_lang = (int)Configuration::get('PS_LANG_DEFAULT');

    // Init Fields form array
    $fields_form = array();
    $fields_form[0]['form'] = array(
        'legend' => array(
            'title' => $this->l('WEBSERVICE TO PRESTASHOP'),
        ),
        'input' => array(
            array(
              'type' => 'checkbox',
                       'label' => $this->l('Escolha as categorias que deseja:'),
                       'hint'=>$this->l('Preecher informaçoes sobre a Empresa'),
                       'name' => 'google_recaptcha_check',
                       'values' => array(
                           'query' => $data_array,
                           'id' => 'check_id',
                           'name' => 'name',
            )             
          )
        ),
        'submit' => array(
            'title' => $this->l('Save'),
            'class' => 'btn btn-default pull-right'
        )
    );

...+helper

0 个答案:

没有答案