phalcon-devtools icon indicating copy to clipboard operation
phalcon-devtools copied to clipboard

Phalcon Devtools Version 3.4 use of Bootstrap 4.0 breaks scaffolded views use of pager class

Open eokenned opened this issue 8 years ago • 3 comments

Questions should go to https://forum.phalconphp.com Documentation issues should go to https://github.com/phalcon/docs/issues

Expected and Actual Behavior

Upgrade to boostrap 4.0 in devtools 3.4 does not take account of some changes in bootstrap from versrion 3 to version 4.

The pager class is no longer supported so the next and previous buttons on the search page and other pagination buttons on other scaffolded pages do not work.

This breaks the all the scaffolded pages and distorts them with the header floating over the "next" and "previous" links and also over the search results table.

Phalcon scaffolded pages now look like this image

The problem can be resolved by reverting to bootstrap v 3.3.7 in app/views/index.phtml

If updating to bootstrap v4.0 it looks like you would need to use the pagination - page-item and page-link classes with something along the following lines

image

Details

  • Phalcon Framework version: 3.4.1
  • Phalcon Devtools version 3.4
  • PHP Version: 7.1.4
  • Operating System: Windows 10
  • Server: Apache

eokenned avatar Sep 28 '18 15:09 eokenned

@montaccep Could you please take a look

sergeyklay avatar Nov 10 '18 10:11 sergeyklay

@sergeyklay In Bootstrap 3, a pagination component was created by applying the pagination class to any ul element. However Bootstrap 4 demands one to properly indicate pagination and link items using page-item as well as page-link class.

Check out the bootstrap docs: https://getbootstrap.com/docs/4.0/getting-started/introduction/

ghost avatar Nov 12 '18 14:11 ghost

Fixed in the 3.4.x branch. Feel free to open a new issue if the problem appears again. Thank you for contributing.

sergeyklay avatar Mar 11 '19 12:03 sergeyklay