Hello,
I fixed some page admin with bootstrap theme
- admin/reports/status
- admin/config
- views edit button add

Here is some screen shot
views

config

report

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lazzyvn created an issue. See original summary.

lazzyvn’s picture

Fix textarea, fieldset height for form container :
- remove class "form-control" in div warraper for textarea
- change div id wrapper fieldset if it have same id with fieldset id

markhalliwell’s picture

Project: Bootstrap » Bootstrap Admin
Version: 7.x-3.15 » 7.x-3.x-dev
Category: Support request » Feature request
Priority: Major » Normal

This project is not an admin theme, it's a base theme. Moving to the appropriate queue.

That being said, I really don't know when I can get to this. It isn't exactly high on my priority list at the moment, especially since it's 7.x.

lazzyvn’s picture

Yes i know it a base theme. but i got somme bug in my custom theme exemple
form element have type container and his children is (textarea or fieldset)
- div wrapper of textarea have class form-control bootstrap version 3.3.7 height of form-control is always 34px .form-control { height: 34px;}
- div wrapper of fieldset have same id of fieldset
function bootstrap_container($variables) in bootstrap/templates/system/container.func.php produit this issue.
i suggest this code to fix it


    if (isset($element['#type'])) {
        // Remove class form-control in div warraper for textarea
        if ($element['#type'] == 'textarea' && !empty($element['#attributes']['class'])) {
            foreach ($element['#attributes']['class'] as $i => $class_name) {
                if ($class_name == 'form-control') {
                    unset($element['#attributes']['class'][$i]);
                }
            }
        }
        // Change id if it exist same #id in children fieldset
        if ($element['#type'] == 'fieldset' && !empty($element['#attributes']['id']) && strpos($element['#children'], 'id="' . $element['#attributes']['id'] . '"') !== false) {
            $element['#attributes']['id'] = $element['#id'] . '_' . 'wrapper';
        }
    }
lazzyvn’s picture

FileSize
18.95 KB

My new patch it fix a lots of bug drupal admin default