diff --git a/Generator/Action/Batch/DeleteAction.php b/Generator/Action/Batch/DeleteAction.php index b674d9ef..dcdbf202 100644 --- a/Generator/Action/Batch/DeleteAction.php +++ b/Generator/Action/Batch/DeleteAction.php @@ -16,7 +16,7 @@ public function __construct($name, BaseBuilder $builder) { parent::__construct($name, 'batch'); - $this->setIcon('glyphicon-remove'); + $this->setIcon('fa-times'); $this->setLabel('action.batch.delete.label'); $this->setConfirm('action.batch.delete.confirm'); $this->setCsrfProtected(true); diff --git a/Generator/Action/Generic/ExcelAction.php b/Generator/Action/Generic/ExcelAction.php index c6c46440..c6ff520e 100644 --- a/Generator/Action/Generic/ExcelAction.php +++ b/Generator/Action/Generic/ExcelAction.php @@ -18,7 +18,7 @@ public function __construct($name, BaseBuilder $builder) parent::__construct($name, 'generic'); $this->setClass('btn-primary'); - $this->setIcon('glyphicon-white glyphicon-print'); + $this->setIcon('fa-print'); $this->setLabel('action.generic.excel'); } } diff --git a/Generator/Action/Generic/ListAction.php b/Generator/Action/Generic/ListAction.php index fe016ad2..0315309d 100644 --- a/Generator/Action/Generic/ListAction.php +++ b/Generator/Action/Generic/ListAction.php @@ -16,7 +16,7 @@ public function __construct($name, BaseBuilder $builder) { parent::__construct($name, 'generic'); - $this->setIcon('glyphicon-list-alt'); + $this->setIcon('fa-list-alt'); $this->setLabel('action.generic.list'); } } diff --git a/Generator/Action/Generic/NewAction.php b/Generator/Action/Generic/NewAction.php index f55d4ddb..291c5e0d 100644 --- a/Generator/Action/Generic/NewAction.php +++ b/Generator/Action/Generic/NewAction.php @@ -17,7 +17,7 @@ public function __construct($name, BaseBuilder $builder) parent::__construct($name, 'generic'); $this->setClass('btn-primary'); - $this->setIcon('glyphicon-white glyphicon-plus'); + $this->setIcon('fa-plus'); $this->setLabel('action.generic.new'); } } diff --git a/Generator/Action/Generic/SaveAction.php b/Generator/Action/Generic/SaveAction.php index e44100f9..1c9915f5 100644 --- a/Generator/Action/Generic/SaveAction.php +++ b/Generator/Action/Generic/SaveAction.php @@ -17,7 +17,7 @@ public function __construct($name, BaseBuilder $builder) $this->setSubmit(true); $this->setClass('btn-success'); - $this->setIcon('glyphicon-ok glyphicon-white'); + $this->setIcon('fa-check'); $this->setLabel('action.generic.save'); } } diff --git a/Generator/Action/Generic/SaveAndAddAction.php b/Generator/Action/Generic/SaveAndAddAction.php index 9dc6078d..c65c7440 100644 --- a/Generator/Action/Generic/SaveAndAddAction.php +++ b/Generator/Action/Generic/SaveAndAddAction.php @@ -17,7 +17,7 @@ public function __construct($name, BaseBuilder $builder) $this->setSubmit(true); $this->setClass('btn-primary'); - $this->setIcon('glyphicon-plus glyphicon-white'); + $this->setIcon('fa-check'); $this->setLabel('action.generic.save-and-add'); } } diff --git a/Generator/Action/Generic/SaveAndListAction.php b/Generator/Action/Generic/SaveAndListAction.php index 677bb01a..b143ebf8 100644 --- a/Generator/Action/Generic/SaveAndListAction.php +++ b/Generator/Action/Generic/SaveAndListAction.php @@ -17,7 +17,7 @@ public function __construct($name, BaseBuilder $builder) $this->setSubmit(true); $this->setClass('btn-info'); - $this->setIcon('glyphicon-list-alt glyphicon-white'); + $this->setIcon('fa-check'); $this->setLabel('action.generic.save-and-list'); } } diff --git a/Generator/Action/Object/DeleteAction.php b/Generator/Action/Object/DeleteAction.php index 3e080e56..6023f6ae 100644 --- a/Generator/Action/Object/DeleteAction.php +++ b/Generator/Action/Object/DeleteAction.php @@ -17,7 +17,7 @@ public function __construct($name, BaseBuilder $builder) { parent::__construct($name, 'object'); - $this->setIcon('glyphicon-remove'); + $this->setIcon('fa-times'); $this->setLabel('action.object.delete.label'); $this->setConfirm('action.object.delete.confirm'); $this->setCsrfProtected(true); diff --git a/Generator/Action/Object/EditAction.php b/Generator/Action/Object/EditAction.php index e7cc7699..8c536ae5 100644 --- a/Generator/Action/Object/EditAction.php +++ b/Generator/Action/Object/EditAction.php @@ -16,7 +16,7 @@ public function __construct($name, BaseBuilder $builder) { parent::__construct($name, 'object'); - $this->setIcon('glyphicon-edit'); + $this->setIcon('fa-edit'); $this->setLabel('action.object.edit.label'); $this->setRoute($builder->getBaseActionsRoute().'_edit'); diff --git a/Generator/Action/Object/ShowAction.php b/Generator/Action/Object/ShowAction.php index 0de1f94a..fb5b9d23 100644 --- a/Generator/Action/Object/ShowAction.php +++ b/Generator/Action/Object/ShowAction.php @@ -16,7 +16,7 @@ public function __construct($name, BaseBuilder $builder) { parent::__construct($name, 'object'); - $this->setIcon('glyphicon-eye-open'); + $this->setIcon('fa-eye'); $this->setLabel('action.object.show.label'); $this->setRoute($builder->getBaseActionsRoute().'_show'); diff --git a/Menu/DefaultMenuBuilder.php b/Menu/DefaultMenuBuilder.php index 49811b65..6339f075 100644 --- a/Menu/DefaultMenuBuilder.php +++ b/Menu/DefaultMenuBuilder.php @@ -12,7 +12,7 @@ class DefaultMenuBuilder extends AdmingeneratorMenuBuilder public function navbarMenu(FactoryInterface $factory, array $options) { $menu = $factory->createItem('root'); - $menu->setChildrenAttributes(array('id' => 'main_navigation', 'class' => 'nav')); + $menu->setChildrenAttributes(array('id' => 'main_navigation', 'class' => 'nav navbar-nav')); $overwrite = $this->addDropdown($menu, 'Replace this menu'); diff --git a/Resources/doc/cookbook/menu.md b/Resources/doc/cookbook/menu.md index b73c771c..3a39dc3c 100644 --- a/Resources/doc/cookbook/menu.md +++ b/Resources/doc/cookbook/menu.md @@ -99,10 +99,7 @@ public function navbarMenu(FactoryInterface $factory, array $options) // create root item $menu = $factory->createItem('root'); // set id for root item, and class for nice twitter bootstrap style - $menu->setChildrenAttributes(array('id' => 'main_navigation', 'class' => 'nav')); - - // add "navbar-nav" class for Twitter Bootstrap3 theme - //$menu->setChildrenAttributes(array('id' => 'main_navigation', 'class' => 'nav navbar-nav')); + $menu->setChildrenAttributes(array('id' => 'main_navigation', 'class' => 'nav navbar-nav')); // add links $menu $this->addLinkURI($menu, 'Item1', 'http://www.google.com'); diff --git a/Resources/doc/support-and-contribution/submitting-issues.md b/Resources/doc/support-and-contribution/submitting-issues.md index 414062d9..d5dd55c4 100644 --- a/Resources/doc/support-and-contribution/submitting-issues.md +++ b/Resources/doc/support-and-contribution/submitting-issues.md @@ -37,10 +37,10 @@ While writing your issue please use Github Flavored Markdown to make it more rea If you paste any code **wrap it in github's code block!** To do that start with 3 **```** characters, then name language you're useing, for example **yaml**: -> **```**yaml - +> **```yaml** +> > my.yaml_code: is here - +> > **```** will resuilt in: diff --git a/Resources/public/css/bootstrap-extended.css b/Resources/public/css/bootstrap-extended.css index 37483e77..9e97a483 100644 --- a/Resources/public/css/bootstrap-extended.css +++ b/Resources/public/css/bootstrap-extended.css @@ -168,18 +168,15 @@ input.btn.btn-reset, input.btn.btn-reset:hover { display: inline-block; padding: 4px 6px; -/* height: 20px;*/ - margin-right: 1px; line-height: 20px; background: #FFFFFF; box-shadow: none; text-align: left; - font-size: 14px; color: #555555; cursor: text; } -.list_scope_group .btn [class^="glyphicon-"] { +.list_scope_group .btn [class^="fa-"] { font-size: 12px; } @@ -189,21 +186,26 @@ input.btn.btn-reset:hover { font-size: 14px; } +/* Fix active link */ +li.active > a { + color: #fff; +} + /* Fix cursor */ -a:hover > [class^="glyphicon-"]:before, -a:hover > [class*=" glyphicon-"]:before, -button:hover > [class^="glyphicon-"]:before, -button:hover > [class*=" glyphicon-"]:before { +a:hover > [class^="fa-"]:before, +a:hover > [class*=" fa-"]:before, +button:hover > [class^="fa-"]:before, +button:hover > [class*=" fa-"]:before { cursor: pointer; } /* Fix icons */ -[class^="glyphicon-"], -[class*=" glyphicon-"], -[class^="glyphicon-"]:focus, -[class*=" glyphicon-"]:focus, -*:focus > [class^="glyphicon-"], -*:focus > [class*=" glyphicon-"] { +[class^="fa-"], +[class*=" fa-"], +[class^="fa-"]:focus, +[class*=" fa-"]:focus, +*:focus > [class^="fa-"], +*:focus > [class*=" fa-"] { background-image: none !important; } diff --git a/Resources/public/css/general.css b/Resources/public/css/general.css index 43dcb3a1..c3873c8e 100644 --- a/Resources/public/css/general.css +++ b/Resources/public/css/general.css @@ -36,8 +36,12 @@ body { border-color: #0B6CBC; } +.navbar-blue .navbar-nav > li > .btn { + margin-top: 8px; + margin-bottom: 8px; +} + .navbar-blue .navbar-brand { - padding: 10px 20px; color: #FFFFFF; text-shadow: 0 1px 0 #777777; @@ -97,6 +101,7 @@ body { text-shadow: 0 1px 0 #777777, 0 1px 5px rgba(255, 255, 255, 0.9); } +.navbar-blue .dropdown-menu li.active > a, .navbar-blue .dropdown-menu li > a:hover, .navbar-blue .dropdown-menu li > a:focus, .navbar-blue .dropdown-submenu:hover > a { @@ -107,7 +112,12 @@ body { background-image: -o-linear-gradient(top, #438EB9, #62A8D1); background-image: linear-gradient(to bottom, #438EB9, #62A8D1); background-repeat: repeat-x; - filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff438EB9', endColorstr='#ff62A8D1', GradientType=0); + filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff438EB9', endColorstr='#ff62A8D1', GradientType=0); + color: white; +} + +.navbar-blue .dropdown-menu li.active > a { + font-weight: bold; } div[class^='object-actions-'],div[class*=' object-actions-'] {margin-bottom: 10px} diff --git a/Resources/public/css/profile.css b/Resources/public/css/profile.css index d891432c..62b1766a 100644 --- a/Resources/public/css/profile.css +++ b/Resources/public/css/profile.css @@ -45,9 +45,6 @@ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff438EB9', endColorstr='#ff62A8D1', GradientType=0); filter: progid:dximagetransform.microsoft.gradient(enabled=false); - - margin-top: 10px; - margin-bottom: 10px; } .btn.btn-profile:hover, diff --git a/Resources/templates/CommonAdmin/ListTemplate/FiltersBuilderTemplate.php.twig b/Resources/templates/CommonAdmin/ListTemplate/FiltersBuilderTemplate.php.twig index eff9a891..39f89a4b 100644 --- a/Resources/templates/CommonAdmin/ListTemplate/FiltersBuilderTemplate.php.twig +++ b/Resources/templates/CommonAdmin/ListTemplate/FiltersBuilderTemplate.php.twig @@ -7,15 +7,15 @@ {{ echo_twig("form_errors(form)") }} {% for field in builder.filterColumns %} {% if builder.filterColumns[field.name].credentials %} - {{ echo_if_granted(builder.filterColumns[field.name].credentials) }} + {{ echo_if_granted(builder.filterColumns[field.name].credentials) }} {% endif %} -