GrafiteInc / CMS

Decoupled CMS for any Laravel app, gain control of: pages, blogs, galleries, events, images, custom modules and more.
https://cms.grafite.ca
MIT License
495 stars 104 forks source link

Make Crud: New template is different than installed templates #161

Closed yapsr closed 6 years ago

yapsr commented 6 years ago

Describe the bug When running a make:crud command, the newly created CRUD pages in the cms admin dashboard look and behave differently than the pages that come with the initial installed modules of the CMS (i.e. blog).

image

To Reproduce Steps to reproduce the behavior:

  1. php artisan crud:make tablename
  2. browse and log in to cms admin dashboard http://domain.ltd/cms/tablename

Expected behavior I would expect the newly created module to be behaving exactly similar to the alreay existing modules:

image

Additional context It seems that templates used for this console command in vendor/grafite/cms/src/Templates/CRUD/Views/*.txt are different from the templates used in the core modules in vendor/grafite/cms/src/Views/*.blade.php

It also seems that these templates are different from the templates used for the separate package grafite/crudmaker.

This is also the case for the generated (or missing) service, cms backend controller, frontend controller, facade etc. It looks like the templates are some versions behind compared to the core modules.

It would be really nice (and less confusing) if all these templates are the same.

Versions grafite/cms 3.1.6 grafite/crudmaker 1.4.3

mlantz commented 6 years ago

The templates should certainly look mostly the same, I'll need to review that, that screen above doesn't look right at all

mlantz commented 6 years ago

Updated and corrected in the latest release

yapsr commented 6 years ago

@mlantz Thank you!